Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
2023ab6e
Commit
2023ab6e
authored
Oct 24, 2008
by
Mark Olesen
Browse files
added xfer<T>::null()
parent
8ffa04c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/memory/xfer/xfer.H
View file @
2023ab6e
...
...
@@ -102,6 +102,11 @@ public:
inline
~
xfer
();
// Member Functions
//- Return a null object reference
inline
static
const
xfer
<
T
>&
null
();
// Member Operators
//- Transfer the contents into the object
...
...
src/OpenFOAM/memory/xfer/xferI.H
View file @
2023ab6e
...
...
@@ -77,6 +77,16 @@ inline Foam::xfer<T>::~xfer()
}
// * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * * //
template
<
class
T
>
inline
const
Foam
::
xfer
<
T
>&
Foam
::
xfer
<
T
>::
null
()
{
xfer
<
T
>*
nullPtr
=
reinterpret_cast
<
xfer
<
T
>*>
(
0
);
return
*
nullPtr
;
}
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
template
<
class
T
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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