Main Page   Namespace List   Class Hierarchy   Compound List   Namespace Members   Compound Members   Related Pages  

FieldValuePtr Class Reference

FieldValuePtr is a reference-counting smart pointer for FieldValues. More...

List of all members.


Public Methods

 FieldValuePtr (FieldValue *fieldValue=0)
 FieldValuePtr (const FieldValuePtr &fieldValuePtr)
 Copy constructor.

 operator bool () const
FieldValuePtr & operator= (const FieldValuePtr &fieldValuePtr)
 Assignment operator.

bool operator== (const FieldValuePtr &fieldValuePtr) const
FieldValueoperator * () const
FieldValueoperator-> () const
FieldValueget () const
void reset (FieldValue *fieldValue=0)

Private Methods

void dispose ()

Private Attributes

FieldValuefieldValue
size_t * count

Detailed Description

FieldValuePtr is a reference-counting smart pointer for FieldValues.

FieldValuePtr is patterned after the Boost shared_ptr, and it works basically the same way. A FieldValuePtr should be constructed or reset with a FieldValue created with new (or 0).

See also:
http://boost.org/libs/smart_ptr/shared_ptr.htm


Constructor & Destructor Documentation

FieldValuePtr const FieldValuePtr &    fieldValuePtr
 

Copy constructor.

Parameters:
fieldValuePtr the FieldValuePtr to copy.

Member Function Documentation

FieldValuePtr & operator= const FieldValuePtr &    fieldValuePtr
 

Assignment operator.

Parameters:
fieldValuePtr