Bayeux  3.4.1
Core Foundation library for SuperNEMO
Public Types | Public Member Functions | List of all members
datatools::safe_serial< T > Class Template Reference

Template container wrapper class for safe storage of object with regards to Boost/Serilization memory tracking feature. More...

#include <bayeux/datatools/safe_serial.h>

Public Types

typedef T data_type
 

Public Member Functions

 safe_serial ()
 Default constructor. More...
 
virtual ~safe_serial ()
 Destructor. More...
 
void clear ()
 Clear the container. More...
 
bool empty () const
 Check if the container is empty. More...
 
const data_typeget () const
 Return a const reference to the current object. More...
 
data_typegrab ()
 Return a mutable reference to the current object. More...
 
void make ()
 Insert a new object at the end. More...
 
void set (const data_type &data)
 Set the current object. More...
 

Detailed Description

template<class T>
class datatools::safe_serial< T >

Template container wrapper class for safe storage of object with regards to Boost/Serilization memory tracking feature.

Member Typedef Documentation

◆ data_type

template<class T>
typedef T datatools::safe_serial< T >::data_type

Constructor & Destructor Documentation

◆ safe_serial()

template<class T>
datatools::safe_serial< T >::safe_serial ( )
inline

Default constructor.

◆ ~safe_serial()

template<class T>
virtual datatools::safe_serial< T >::~safe_serial ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ clear()

template<class T>
void datatools::safe_serial< T >::clear ( )
inline

Clear the container.

◆ empty()

template<class T>
bool datatools::safe_serial< T >::empty ( ) const
inline

Check if the container is empty.

◆ get()

template<class T>
const data_type& datatools::safe_serial< T >::get ( ) const
inline

Return a const reference to the current object.

◆ grab()

template<class T>
data_type& datatools::safe_serial< T >::grab ( )
inline

Return a mutable reference to the current object.

◆ make()

template<class T>
void datatools::safe_serial< T >::make ( )
inline

Insert a new object at the end.

◆ set()

template<class T>
void datatools::safe_serial< T >::set ( const data_type data)
inline

Set the current object.


The documentation for this class was generated from the following file: