| Home | Download | Screen shots | Discussion | Documentation |
|---|
Collaboration diagram for openvrml::node_class_ptr:

Public Member Functions | |
| node_class_ptr (node_class *class_=0) throw (std::bad_alloc) | |
| Constructor. | |
| node_class_ptr (const node_class_ptr &ptr) throw () | |
| Copy constructor. | |
| ~node_class_ptr () throw () | |
| Destroy. | |
| operator bool () const throw () | |
Automatic conversion to bool. | |
| node_class_ptr & | operator= (const node_class_ptr &ptr) throw () |
| Assignment operator. | |
| node_class & | operator * () const throw () |
| Dereference. | |
| node_class * | operator-> () const throw () |
| Delegate to the node_class. | |
| node_class * | get () const throw () |
| Get the node_class pointer. | |
| void | reset (node_class *class_=0) throw (std::bad_alloc) |
| Reset the node_class_ptr to a new node_class. | |
Private Member Functions | |
| void | dispose () throw () |
| Decrement the reference count; destroy the node_class if the count drops to zero. | |
Private Attributes | |
| node_class * | class_ |
| The node_class. | |
| size_t * | count |
| Reference count. | |
Friends | |
| bool | operator== (const node_class_ptr &lhs, const node_class_ptr &rhs) throw () |
| Compare for equality. | |
Related Functions | |
| (Note that these are not member functions.) | |
| bool | operator!= (const node_class_ptr &lhs, const node_class_ptr &rhs) throw() |
| Compare for inequality. | |
node_class_ptr is patterned after the Boost shared_ptr, and it works basically the same way. A node_class_ptr should be constructed or reset with a node_class created with new (or 0).
|
|
Constructor.
|
|
|
Copy constructor.
|
|
|
Get the node_class pointer.
|
|
|
Dereference.
|
|
|
Automatic conversion to
|
|
|
Delegate to the node_class.
|
|
|
Assignment operator.
|
|
|
Reset the node_class_ptr to a new node_class.
|
|
||||||||||||
|
Compare for inequality.
|
|
||||||||||||
|
Compare for equality.
|