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

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