Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
f2877c81
Commit
f2877c81
authored
Oct 13, 2008
by
Mark Olesen
Browse files
xfer: minor name adjustment
parent
b770ddf3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/containers/misc/xfer.H
View file @
f2877c81
...
...
@@ -40,8 +40,8 @@ Description
an operator=() copy method.
Note
The macros xferCopy(T,arg) and xfer
Tmp
(T,arg) can be used as
workarounds
for passing temporaries to copy-constructors.
The macros xferCopy(T,arg) and xfer
Move
(T,arg) can be used as
workarounds
for passing temporaries to copy-constructors.
SourceFiles
xferI.H
...
...
@@ -98,7 +98,7 @@ public:
inline
void
operator
=
(
const
xfer
<
T
>&
);
//- Return a non-const reference to const object
// @sa xfer
Tmp macro for an
alternative for copy-constructors
// @sa xfer
Copy, xferMove macros
alternative
s
for copy-constructors
inline
const
xfer
<
T
>&
operator
()()
const
;
//- Reference to the underlying datatype
...
...
@@ -119,13 +119,13 @@ public:
* Useful for constructors where the argument is temporary.
* This is a workaround for a template resolution issue.
*
* @sa xfer
Tmp
and Foam::xfer
* @sa xfer
Move
and Foam::xfer
*/
#define xferCopy(T,arg) \
(static_cast<const Foam::xfer< T >&>(Foam::xfer< T >(arg)()))
/**
* @def xfer
Tmp
(T,arg)
* @def xfer
Move
(T,arg)
* Construct by transferring the contents of the @a arg
* and return a const reference to an xfer of type \<T\>
*
...
...
@@ -136,12 +136,12 @@ public:
* @code
* List<label> a;
* ...
* List<label> b(xfer
Tmp
(List<label>, a));
* List<label> b(xfer
Move
(List<label>, a));
* @endcode
*
* @sa xferCopy and Foam::xfer
*/
#define xfer
Tmp
(T,arg) \
#define xfer
Move
(T,arg) \
(static_cast<const Foam::xfer< T >&>(Foam::xfer< T >(arg, true)()))
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment