OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

tmp Class Template Reference

Inheritance diagram for tmp:

Inheritance graph
[legend]
Collaboration diagram for tmp:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class T>
class Foam::tmp< T >

Definition at line 62 of file tmp.H.


Public Member Functions

 tmp (T *=0)
 Store object pointer.
 tmp (const T &)
 Store object const reference.
 tmp (const tmp< T > &)
 Construct copy and increment reference count.
 ~tmp ()
 Delete object when reference count == 0.
bool isTmp () const
 Is this really a temporary object.
bool valid () const
 Is this temporary object valid, i.e. is it a reference.
T * ptr () const
 Return tmp pointer for reuse.
void clear ()
 If object pointer points to valid object:.
void clear () const
 If object pointer points to valid object:.
T & operator() ()
 Dereference operator.
const T & operator() () const
 Const dereference operator.
 operator const T & () const
 Const cast to the underlying type reference.
T * operator-> ()
 Return object pointer.
const T * operator-> () const
 Return const object pointer.
void operator= (const tmp< T > &)
 Assignment operator.

Constructor & Destructor Documentation

tmp ( T *  = 0  )  [inline, explicit]

Store object pointer.

Definition at line 42 of file tmpI.H.

tmp ( const T &   )  [inline]

Store object const reference.

Definition at line 51 of file tmpI.H.

tmp ( const tmp< T > &   )  [inline]

Construct copy and increment reference count.

Definition at line 60 of file tmpI.H.

References Foam::abort(), Foam::FatalError, and FatalErrorIn.

Here is the call graph for this function:

~tmp (  )  [inline]

Delete object when reference count == 0.

Definition at line 83 of file tmpI.H.


Member Function Documentation

bool isTmp (  )  const [inline]

Is this really a temporary object.

Definition at line 103 of file tmpI.H.

bool valid (  )  const [inline]

Is this temporary object valid, i.e. is it a reference.

or a temporary that has been allocated

Definition at line 110 of file tmpI.H.

T * ptr (  )  const [inline]

Return tmp pointer for reuse.

Definition at line 117 of file tmpI.H.

References Foam::abort(), Foam::FatalError, and FatalErrorIn.

Here is the call graph for this function:

void clear (  )  [inline]

If object pointer points to valid object:.

delete object and set pointer to NULL

Definition at line 143 of file tmpI.H.

void clear (  )  const [inline]

If object pointer points to valid object:.

delete object and set pointer to NULL

Definition at line 154 of file tmpI.H.

T & operator() (  )  [inline]

Dereference operator.

Definition at line 163 of file tmpI.H.

References Foam::abort(), Foam::FatalError, and FatalErrorIn.

Here is the call graph for this function:

const T & operator() (  )  const [inline]

Const dereference operator.

Definition at line 189 of file tmpI.H.

References Foam::abort(), Foam::FatalError, and FatalErrorIn.

Here is the call graph for this function:

operator const T & (  )  const [inline]

Const cast to the underlying type reference.

Definition at line 210 of file tmpI.H.

T * operator-> (  )  [inline]

Return object pointer.

Definition at line 217 of file tmpI.H.

References Foam::abort(), Foam::FatalError, and FatalErrorIn.

Here is the call graph for this function:

const T * operator-> (  )  const [inline]

Return const object pointer.

Definition at line 238 of file tmpI.H.

void operator= ( const tmp< T > &   )  [inline]

Assignment operator.

Definition at line 245 of file tmpI.H.


The documentation for this class was generated from the following files:
  • src/OpenFOAM/fields/tmp/tmp.H
  • src/OpenFOAM/fields/tmp/tmpI.H
Copyright © 2000-2007 OpenCFD Ltd