Alexandria 2.31.4
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
Euclid::GridContainer::GridCellManagerTraits< GridCellManagerVectorOfVectors< T > > Struct Template Reference

#include <GridCellManagerVectorOfVectors.h>

Public Types

typedef std::vector< double > data_type
 
typedef VectorValueProxy< T > reference_type
 
typedef VectorValueProxy< T > pointer_type
 
typedef GridCellManagerVectorOfVectors< T >::StrideIterator iterator
 
typedef GridCellManagerVectorOfVectors< T >::data_type data_type
 The type of the data kept by the GridCellManager.
 
typedef GridCellManagerVectorOfVectors< T >::iterator iterator
 

Static Public Member Functions

static std::unique_ptr< GridCellManagerVectorOfVectors< T > > factory (size_t size, size_t nested_values)
 
static iterator begin (GridCellManagerVectorOfVectors< T > &c)
 
static iterator end (GridCellManagerVectorOfVectors< T > &c)
 
static std::unique_ptr< GridCellManagerVectorOfVectors< T > > factory (size_t size)
 
static size_t size (const GridCellManagerVectorOfVectors< T > &cell_manager)
 
static iterator begin (GridCellManagerVectorOfVectors< T > &cell_manager)
 
static iterator end (GridCellManagerVectorOfVectors< T > &cell_manager)
 

Static Public Attributes

static const bool enable_boost_serialize
 

Detailed Description

template<typename T>
struct Euclid::GridContainer::GridCellManagerTraits< GridCellManagerVectorOfVectors< T > >

GridCellManagerTraits specialization

Definition at line 208 of file GridCellManagerVectorOfVectors.h.

Member Typedef Documentation

◆ data_type [1/2]

The type of the data kept by the GridCellManager.

Definition at line 53 of file GridCellManagerTraits.h.

◆ data_type [2/2]

template<typename T>
typedef std::vector<double> Euclid::GridContainer::GridCellManagerTraits< GridCellManagerVectorOfVectors< T > >::data_type

Definition at line 209 of file GridCellManagerVectorOfVectors.h.

◆ iterator [1/2]

The iterator type which is used to iterate through the data kept in the cell manager

Definition at line 57 of file GridCellManagerTraits.h.

◆ iterator [2/2]

template<typename T>
typedef GridCellManagerVectorOfVectors<T>::StrideIterator Euclid::GridContainer::GridCellManagerTraits< GridCellManagerVectorOfVectors< T > >::iterator

Definition at line 212 of file GridCellManagerVectorOfVectors.h.

◆ pointer_type

Definition at line 211 of file GridCellManagerVectorOfVectors.h.

◆ reference_type

template<typename T>
typedef VectorValueProxy<T> Euclid::GridContainer::GridCellManagerTraits< GridCellManagerVectorOfVectors< T > >::reference_type

Definition at line 210 of file GridCellManagerVectorOfVectors.h.

Member Function Documentation

◆ begin() [1/2]

◆ begin() [2/2]

Returns an iterator pointing to the first element managed by the GridCellManager. Defaults on calling the begin() method of the GridCellManager instance.

Parameters
cell_managerthe cell manager
Returns
An iterator at the first element

Definition at line 86 of file GridCellManagerTraits.icpp.

◆ end() [1/2]

◆ end() [2/2]

Returns an iterator pointing right after the last element managed by the GridCellManager. Defaults on calling the end() method of the GridCellManager instance.

Parameters
cell_managerthe GridCellManager
Returns
An iterator right after the last element

Definition at line 96 of file GridCellManagerTraits.icpp.

◆ factory() [1/2]

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.

Parameters
sizeThe number of data the manager will contain
Returns
A unique_ptr to the newly constructed GridCellManager

Definition at line 67 of file GridCellManagerTraits.icpp.

◆ factory() [2/2]

template<typename T>
static std::unique_ptr< GridCellManagerVectorOfVectors< T > > Euclid::GridContainer::GridCellManagerTraits< GridCellManagerVectorOfVectors< T > >::factory ( size_t size,
size_t nested_values )
inlinestatic

Definition at line 214 of file GridCellManagerVectorOfVectors.h.

References Euclid::make_unique(), and size().

Here is the call graph for this function:

◆ size()

Returns the number of data managed by the given GridCellManager. Defaults on calling the constant version of method size() on the GridCellManager instance.

Parameters
cell_managerThe GridCellManager to get the size of
Returns
The number of data managed by the GridCellManager

Definition at line 76 of file GridCellManagerTraits.icpp.

Referenced by factory().

Member Data Documentation

◆ enable_boost_serialize

const bool Euclid::GridContainer::GridCellManagerTraits< GridCellManagerVectorOfVectors< T > >::enable_boost_serialize
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.


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