![]() |
Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
A template class that stores a reference to an object and additional associated meta-data. More...
#include <bayeux/datatools/smart_ref.h>
Classes | |
| class | has_flag |
| Predicate used by the smart_ref template class. More... | |
Public Types | |
| typedef T | instance_type |
| typedef instance_type & | reference_type |
| typedef const instance_type & | const_reference_type |
| typedef instance_type * | pointer_type |
| typedef const instance_type * | const_pointer_type |
| typedef std::list< instance_type > | col_type |
| typedef smart_ref< instance_type > | smart_ref_type |
Public Member Functions | |
| smart_ref () | |
| Default constructor. More... | |
| smart_ref (const_reference_type obj) | |
| Constructor. More... | |
| virtual | ~smart_ref () |
| Destructor. More... | |
| void | set (const_reference_type obj) |
| Set the internal reference to the target object. More... | |
| const_reference_type | get () const |
| Return the reference to the target object. More... | |
| const datatools::properties & | get_properties () const |
| Return a non mutable reference to the container of properties. More... | |
| datatools::properties & | grab_properties () |
| Return a mutable reference to the container of properties. More... | |
| datatools::properties & | get_properties () |
| void | set_properties (const datatools::properties &props) |
| Set the container of properties. More... | |
| void | reset () |
| Reset the internal reference. More... | |
| bool | is_valid () const |
| Check the validity of the smart reference. More... | |
Friends | |
| class | boost::serialization::access |
A template class that stores a reference to an object and additional associated meta-data.
| typedef std::list<instance_type> datatools::smart_ref< T >::col_type |
| typedef const instance_type* datatools::smart_ref< T >::const_pointer_type |
| typedef const instance_type& datatools::smart_ref< T >::const_reference_type |
| typedef T datatools::smart_ref< T >::instance_type |
| typedef instance_type* datatools::smart_ref< T >::pointer_type |
| typedef instance_type& datatools::smart_ref< T >::reference_type |
| typedef smart_ref<instance_type> datatools::smart_ref< T >::smart_ref_type |
|
inline |
Default constructor.
|
inline |
Constructor.
|
inlinevirtual |
Destructor.
|
inline |
Return the reference to the target object.
|
inline |
Return a non mutable reference to the container of properties.
|
inline |
|
inline |
Return a mutable reference to the container of properties.
|
inline |
Check the validity of the smart reference.
|
inline |
Reset the internal reference.
|
inline |
Set the internal reference to the target object.
|
inline |
Set the container of properties.
|
friend |
1.8.15