Alexandria 2.31.0
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
Euclid::GridContainer::GridCellManagerTraits< std::vector< T > > Struct Template Reference

#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.
 

Detailed Description

template<typename T>
struct Euclid::GridContainer::GridCellManagerTraits< std::vector< T > >

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.

Template Parameters
Tthe type of the data kept by the vector

Definition at line 114 of file GridCellManagerTraits.h.

Member Typedef Documentation

◆ data_type

template<typename T >
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.

◆ iterator

template<typename T >
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.

◆ pointer_type

template<typename T >
typedef T* Euclid::GridContainer::GridCellManagerTraits< std::vector< T > >::pointer_type

Definition at line 119 of file GridCellManagerTraits.h.

◆ reference_type

template<typename T >
typedef T& Euclid::GridContainer::GridCellManagerTraits< std::vector< T > >::reference_type

Definition at line 118 of file GridCellManagerTraits.h.

Member Function Documentation

◆ begin()

template<typename T >
static iterator Euclid::GridContainer::GridCellManagerTraits< std::vector< T > >::begin ( std::vector< T > &  vector)
static

Returns an iterator at the first element of the vector.

◆ end()

template<typename T >
static iterator Euclid::GridContainer::GridCellManagerTraits< std::vector< T > >::end ( std::vector< T > &  vector)
static

Returns an iterator right after the last element of the vector.

◆ factory()

template<typename T >
static std::unique_ptr< std::vector< T > > Euclid::GridContainer::GridCellManagerTraits< std::vector< T > >::factory ( size_t  size)
static

Returns a vector containing "size" default constructed elements.

◆ size()

template<typename T >
static size_t Euclid::GridContainer::GridCellManagerTraits< std::vector< T > >::size ( const std::vector< T > &  vector)
static

Returns the size of the vector.

Member Data Documentation

◆ enable_boost_serialize

template<typename T >
const bool Euclid::GridContainer::GridCellManagerTraits< std::vector< T > >::enable_boost_serialize = true
static

Enables boost serialization of Grids using vectors as GridCellManagers.

Definition at line 138 of file GridCellManagerTraits.h.


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