OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

refCount Class Reference

Reference counter for tmp<field>. More...

Inheritance diagram for refCount:

List of all members.


Public Member Functions

 refCount ()
 Construct null with zero count.
int count () const
 Return the reference count.
bool okToDelete () const
 Return true if the reference count is zero.
void resetRefCount ()
 Reset the reference count to zero.
void operator++ ()
 Increment the reference count.
void operator++ (int)
 Increment the reference count.
void operator-- ()
 Decrement the reference count.
void operator-- (int)
 Decrement the reference count.

Detailed Description

Reference counter for tmp<field>.

Definition at line 38 of file refCount.H.


Constructor & Destructor Documentation

refCount (  )  [inline]

Construct null with zero count.

Definition at line 58 of file refCount.H.


Member Function Documentation

int count (  )  const [inline]

Return the reference count.

Definition at line 67 of file refCount.H.

bool okToDelete (  )  const [inline]

Return true if the reference count is zero.

Definition at line 74 of file refCount.H.

void resetRefCount (  )  [inline]

Reset the reference count to zero.

Definition at line 81 of file refCount.H.

Referenced by FieldField< Field, Type >::FieldField().

Here is the caller graph for this function:

void operator++ (  )  [inline]

Increment the reference count.

Definition at line 90 of file refCount.H.

void operator++ ( int   )  [inline]

Increment the reference count.

Definition at line 96 of file refCount.H.

void operator-- (  )  [inline]

Decrement the reference count.

Definition at line 102 of file refCount.H.

void operator-- ( int   )  [inline]

Decrement the reference count.

Definition at line 108 of file refCount.H.


The documentation for this class was generated from the following file:
Copyright © 2000-2009 OpenCFD Ltd