Alexandria 2.31.0
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
Classes | Public Member Functions | Private Attributes | Friends | List of all members
Euclid::GridContainer::GridCellManagerVectorOfVectors< T > Struct Template Reference

#include <GridCellManagerVectorOfVectors.h>

Classes

struct  StrideIterator
 

Public Member Functions

 GridCellManagerVectorOfVectors (size_t size, int nested_values)
 
 ~GridCellManagerVectorOfVectors ()=default
 
 GridCellManagerVectorOfVectors (const GridCellManagerVectorOfVectors &)=delete
 
 GridCellManagerVectorOfVectors (GridCellManagerVectorOfVectors &&)=default
 
VectorValueProxy< T > operator[] (int i)
 
size_t getCellSize () const
 
size_t getTotalSize () const
 

Private Attributes

std::vector< T > m_values
 
int m_cell_size
 

Friends

struct GridCellManagerTraits< GridCellManagerVectorOfVectors >
 

Detailed Description

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

It allocates a conceptual vector of vectors container as a single vector traversed in strides.

Definition at line 38 of file GridCellManagerVectorOfVectors.h.

Constructor & Destructor Documentation

◆ GridCellManagerVectorOfVectors() [1/3]

template<typename T >
Euclid::GridContainer::GridCellManagerVectorOfVectors< T >::GridCellManagerVectorOfVectors ( size_t  size,
int  nested_values 
)
inline

Constructor

Parameters
sizeNumber of cells
nested_valuesNumber of values per cell

Definition at line 88 of file GridCellManagerVectorOfVectors.h.

◆ ~GridCellManagerVectorOfVectors()

Destructor

◆ GridCellManagerVectorOfVectors() [2/3]

template<typename T >
Euclid::GridContainer::GridCellManagerVectorOfVectors< T >::GridCellManagerVectorOfVectors ( const GridCellManagerVectorOfVectors< T > &  )
delete

Non-copyable to avoid expensive copies by mistake

◆ GridCellManagerVectorOfVectors() [3/3]

template<typename T >
Euclid::GridContainer::GridCellManagerVectorOfVectors< T >::GridCellManagerVectorOfVectors ( GridCellManagerVectorOfVectors< T > &&  )
default

Movable

Member Function Documentation

◆ getCellSize()

template<typename T >
size_t Euclid::GridContainer::GridCellManagerVectorOfVectors< T >::getCellSize ( ) const
inline

◆ getTotalSize()

template<typename T >
size_t Euclid::GridContainer::GridCellManagerVectorOfVectors< T >::getTotalSize ( ) const
inline

◆ operator[]()

template<typename T >
VectorValueProxy< T > Euclid::GridContainer::GridCellManagerVectorOfVectors< T >::operator[] ( int  i)
inline

Access cell

Parameters
iCell index
Returns
A reference to the first value on the cell i

Definition at line 113 of file GridCellManagerVectorOfVectors.h.

References Euclid::GridContainer::GridCellManagerVectorOfVectors< T >::m_cell_size, and Euclid::GridContainer::GridCellManagerVectorOfVectors< T >::m_values.

Friends And Related Symbol Documentation

◆ GridCellManagerTraits< GridCellManagerVectorOfVectors >

template<typename T >
friend struct GridCellManagerTraits< GridCellManagerVectorOfVectors >
friend

Definition at line 128 of file GridCellManagerVectorOfVectors.h.

Member Data Documentation

◆ m_cell_size

template<typename T >
int Euclid::GridContainer::GridCellManagerVectorOfVectors< T >::m_cell_size
private

◆ m_values

template<typename T >
std::vector<T> Euclid::GridContainer::GridCellManagerVectorOfVectors< T >::m_values
private

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