Alexandria 2.31.0
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 |
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 Public Attributes | |
static const bool | enable_boost_serialize = true |
Enables boost serialization of Grids using vectors as GridCellManagers. | |
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 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 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 at the first element of the vector.
|
static |
Returns an iterator right after the last element of the vector.
|
static |
Returns a vector containing "size" default constructed elements.
|
static |
Returns the size of the vector.
|
static |
Enables boost serialization of Grids using vectors as GridCellManagers.
Definition at line 138 of file GridCellManagerTraits.h.