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

NodeTypePtr Class Reference

NodeTypePtr is a reference-counting smart pointer for NodeTypes. More...

List of all members.


Public Methods

 NodeTypePtr (NodeType *nodeType=0)
 NodeTypePtr (const NodeTypePtr &nodeTypePtr)
 Copy constructor.

 operator bool () const
NodeTypePtr & operator= (const NodeTypePtr &nodeTypePtr)
 Assignment operator.

bool operator== (const NodeTypePtr &nodeTypePtr) const
NodeTypeoperator * () const
NodeTypeoperator-> () const
NodeTypeget () const
void reset (NodeType *nodeType=0)

Private Methods

void dispose ()

Private Attributes

NodeTypenodeType
size_t * count

Detailed Description

NodeTypePtr is a reference-counting smart pointer for NodeTypes.

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

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


Constructor & Destructor Documentation

NodeTypePtr const NodeTypePtr &    nodeTypePtr
 

Copy constructor.

Parameters:
nodeTypePtr the NodeTypePtr to copy.

Member Function Documentation

NodeTypePtr & operator= const NodeTypePtr &    nodeTypePtr
 

Assignment operator.

Parameters:
nodeTypePtr