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

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