openvrml::field_value::counted_impl< ValueType > Class Template Reference
Concrete reference-counted implementation.
More...
#include <openvrml/field_value.h>
List of all members.
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 |
boost::shared_mutex | mutex_ |
| Mutex protecting value_ .
|
boost::shared_ptr< ValueType > | value_ |
| A shared_ptr to an instance of the value_type of a Field Value.
|
Detailed Description
template<typename ValueType>
class openvrml::field_value::counted_impl< ValueType >
Concrete reference-counted implementation.
For internal use only.
- Template Parameters:
-
Constructor & Destructor Documentation
template<typename ValueType >
Construct.
- Template Parameters:
-
- Parameters:
-
[in] | value | initial value. |
- Exceptions:
-
| std::bad_alloc | if memory allocation fails. |
template<typename ValueType >
Construct a copy.
- Template Parameters:
-
- Parameters:
-
[in] | ci | the instance to copy. |
template<typename ValueType >
Destroy.
- Template Parameters:
-
Member Function Documentation
template<typename ValueType >
Access.
- Template Parameters:
-
- Returns:
- the value.
template<typename ValueType >
Mutate.
- Template Parameters:
-
- Parameters:
-
- Exceptions:
-
| std::bad_alloc | if memory allocation fails. |
template<typename ValueType >
template<typename ValueType >
Member Data Documentation
template<typename ValueType >
template<typename ValueType >