Home | Download | Screen shots | Discussion | Documentation |
---|
#include <openvrml/field_value.h>
For internal use only.
ValueType | a Field Value value_type . |
Public Member Functions | |
counted_impl (const ValueType &value) throw ( std::bad_alloc ) | |
Construct. | |
counted_impl (const counted_impl< ValueType > &ci) throw () | |
Construct a copy. | |
virtual | ~counted_impl () throw () |
Destroy. | |
const ValueType & | value () const throw () |
Access. | |
void | value (const ValueType &val) throw ( std::bad_alloc ) |
Mutate. | |
Private Member Functions | |
counted_impl< ValueType > & | operator= (const counted_impl< ValueType > &) |
Not implemented. | |
virtual std::auto_ptr < counted_impl_base > | do_clone () const throw ( std::bad_alloc ) |
Polymorphically construct a copy. | |
Private Attributes | |
read_write_mutex | mutex_ |
Mutex protecting value_. | |
boost::shared_ptr< ValueType > | value_ |
A shared_ptr to an instance of the value_type of a Field Value. |
openvrml::field_value::counted_impl< ValueType >::counted_impl | ( | const ValueType & | value | ) | throw ( std::bad_alloc ) [inline, explicit] |
Construct.
ValueType | a Field Value value_type . |
[in] | value | initial value. |
std::bad_alloc | if memory allocation fails. |
openvrml::field_value::counted_impl< ValueType >::counted_impl | ( | const counted_impl< ValueType > & | ci | ) | throw () [inline] |
Construct a copy.
ValueType | a Field Value value_type . |
[in] | ci | the instance to copy. |
openvrml::field_value::counted_impl< ValueType >::~counted_impl | ( | ) | throw () [inline, virtual] |
const ValueType & openvrml::field_value::counted_impl< ValueType >::value | ( | ) | const throw () [inline] |
void openvrml::field_value::counted_impl< ValueType >::value | ( | const ValueType & | val | ) | throw ( std::bad_alloc ) [inline] |
Mutate.
ValueType | a Field Value value_type . |
[in] | val | the new value. |
std::bad_alloc | if memory allocation fails. |
openvrml::field_value::counted_impl< ValueType > & openvrml::field_value::counted_impl< ValueType >::operator= | ( | const counted_impl< ValueType > & | ) | [private] |
Not implemented.
std::auto_ptr< field_value::counted_impl_base > openvrml::field_value::counted_impl< ValueType >::do_clone | ( | ) | const throw ( std::bad_alloc ) [inline, private, virtual] |
Polymorphically construct a copy.
ValueType | a Field Value value_type . |
std::bad_alloc | if memory allocation fails. |
Implements openvrml::field_value::counted_impl_base.
boost::mutex openvrml::field_value::counted_impl< ValueType >::mutex_ [mutable, private] |
Mutex protecting value_.
boost::shared_ptr< ValueType > openvrml::field_value::counted_impl< ValueType >::value_ [private] |
A shared_ptr
to an instance of the value_type
of a Field Value.