Alexandria 2.31.4
SDC-CH common library for the Euclid project
|
#include <GridCellManagerTraits.h>
Public Types | |
typedef T | data_type |
The type of the data kept by the GridCellManager. | |
typedef T & | reference_type |
typedef T * | pointer_type |
typedef std::vector< T >::iterator | iterator |
typedef std::vector< T >::data_type | data_type |
The type of the data kept by the GridCellManager. | |
typedef std::vector< T >::iterator | iterator |
Static Public Member Functions | |
static std::unique_ptr< std::vector< T > > | factory (size_t size) |
Returns a vector containing "size" default constructed elements. | |
static size_t | size (const std::vector< T > &vector) |
Returns the size of the vector. | |
static iterator | begin (std::vector< T > &vector) |
Returns an iterator at the first element of the vector. | |
static iterator | end (std::vector< T > &vector) |
Returns an iterator right after the last element of the vector. | |
static std::unique_ptr< std::vector< T > > | factory (size_t size) |
static size_t | size (const std::vector< T > &cell_manager) |
static iterator | begin (std::vector< T > &cell_manager) |
static iterator | end (std::vector< T > &cell_manager) |
Static Public Attributes | |
static const bool | enable_boost_serialize = true |
Enables boost serialization of Grids using vectors as GridCellManagers. | |
static const bool | enable_boost_serialize |
Specialization of the GridCellManagerTraits for vector CellManagers. It uses all the default operations but it changes the serialization flag to true to declare that vector GridCellManagers can be serialized. Note that the type T of the data managed has to also be serializable.
T | the type of the data kept by the vector |
Definition at line 114 of file GridCellManagerTraits.h.
typedef std::vector< T >::data_type Euclid::GridContainer::GridCellManagerTraits< std::vector< T > >::data_type |
The type of the data kept by the GridCellManager.
Definition at line 53 of file GridCellManagerTraits.h.
typedef T Euclid::GridContainer::GridCellManagerTraits< std::vector< T > >::data_type |
The type of the data kept by the GridCellManager.
Definition at line 117 of file GridCellManagerTraits.h.
typedef std::vector< T >::iterator Euclid::GridContainer::GridCellManagerTraits< std::vector< T > >::iterator |
The iterator type which is used to iterate through the data kept in the cell manager
Definition at line 57 of file GridCellManagerTraits.h.
typedef std::vector<T>::iterator Euclid::GridContainer::GridCellManagerTraits< std::vector< T > >::iterator |
The iterator type which is used to iterate through the data kept in the cell manager
Definition at line 123 of file GridCellManagerTraits.h.
typedef T* Euclid::GridContainer::GridCellManagerTraits< std::vector< T > >::pointer_type |
Definition at line 119 of file GridCellManagerTraits.h.
typedef T& Euclid::GridContainer::GridCellManagerTraits< std::vector< T > >::reference_type |
Definition at line 118 of file GridCellManagerTraits.h.
|
static |
Returns an iterator pointing to the first element managed by the GridCellManager. Defaults on calling the begin() method of the GridCellManager instance.
cell_manager | the cell manager |
Definition at line 86 of file GridCellManagerTraits.icpp.
|
static |
Returns an iterator at the first element of the vector.
Definition at line 59 of file GridCellManagerTraits.icpp.
References begin().
Referenced by begin().
|
static |
Returns an iterator pointing right after the last element managed by the GridCellManager. Defaults on calling the end() method of the GridCellManager instance.
cell_manager | the GridCellManager |
Definition at line 96 of file GridCellManagerTraits.icpp.
|
static |
Returns an iterator right after the last element of the vector.
Definition at line 64 of file GridCellManagerTraits.icpp.
References end().
Referenced by end().
|
static |
Factory which creates a GridCellManager instance with the given number of managed data, which all are set to a default value. The default implementation will try to use a constructor with the size as parameter.
size | The number of data the manager will contain |
Definition at line 67 of file GridCellManagerTraits.icpp.
|
static |
Returns a vector containing "size" default constructed elements.
Definition at line 49 of file GridCellManagerTraits.icpp.
References factory(), and size().
Referenced by factory().
|
static |
Returns the number of data managed by the given GridCellManager. Defaults on calling the constant version of method size() on the GridCellManager instance.
cell_manager | The GridCellManager to get the size of |
Definition at line 76 of file GridCellManagerTraits.icpp.
|
static |
Returns the size of the vector.
Definition at line 54 of file GridCellManagerTraits.icpp.
References size().
Referenced by factory(), and size().
|
static |
Flag which indicates if the GridCellManager is boost serializable. By default it is set to false. Note that Grids which use CellManagers which have this flag set to false cannot be serialized.
Definition at line 101 of file GridCellManagerTraits.h.
|
static |
Enables boost serialization of Grids using vectors as GridCellManagers.
Definition at line 138 of file GridCellManagerTraits.h.