25#ifndef GRIDCONTAINER_GRIDCELLMANAGERTRAITS_H
26#define GRIDCONTAINER_GRIDCELLMANAGERTRAITS_H
32namespace GridContainer {
49template <
typename Gr
idCellManager>
53 typedef typename GridCellManager::data_type
data_type;
57 typedef typename GridCellManager::iterator
iterator;
76 static size_t size(
const GridCellManager& cell_manager);
T data_type
The type of the data kept by the GridCellManager.
std::vector< T >::iterator iterator
static iterator begin(std::vector< T > &vector)
Returns an iterator at the first element of the vector.
static std::unique_ptr< std::vector< T > > factory(size_t size)
Returns a vector containing "size" default constructed elements.
static iterator end(std::vector< T > &vector)
Returns an iterator right after the last element of the vector.
static size_t size(const std::vector< T > &vector)
Returns the size of the vector.
Class used by the GridContainer to access the different CellManagers.
static size_t size(const GridCellManager &cell_manager)
static std::unique_ptr< GridCellManager > factory(size_t size)
static iterator end(GridCellManager &cell_manager)
GridCellManager::data_type data_type
The type of the data kept by the GridCellManager.
static iterator begin(GridCellManager &cell_manager)
static const bool enable_boost_serialize
GridCellManager::iterator iterator