cartodata  5.0.5
carto::Volume< T >::Position4Di Class Reference

#include <cartodata/volume/volumebase.h>

Public Member Functions

 Position4Di (int x=0, int y=0, int z=0, int t=0)
 
template<typename U >
 Position4Di (const U &other)
 Generic constructor from any "vector-like" object, i.e. More...
 
 Position4Di (const Position4Di &pos)
 
 ~Position4Di ()
 
int & operator[] (int coord)
 
const int & operator[] (int coord) const
 
bool operator== (const Position4Di &p) const
 
bool operator!= (const Position4Di &p) const
 
unsigned size () const
 
const std::vector< int > & toVector () const
 

Static Public Member Functions

static std::vector< int > fixed_position (const std::vector< int > &vec)
 
static std::vector< int > fixed_size (const std::vector< int > &vec)
 
static unsigned long long size_num_elements (const std::vector< int > &vec)
 

Detailed Description

template<typename T>
class carto::Volume< T >::Position4Di

Definition at line 530 of file volumebase.h.

Constructor & Destructor Documentation

◆ Position4Di() [1/3]

template<typename T>
carto::Volume< T >::Position4Di::Position4Di ( int  x = 0,
int  y = 0,
int  z = 0,
int  t = 0 
)
inlineexplicit

Definition at line 533 of file volumebase.h.

◆ Position4Di() [2/3]

template<typename T>
template<typename U >
carto::Volume< T >::Position4Di::Position4Di ( const U &  other)
inline

Generic constructor from any "vector-like" object, i.e.

that has a size() method and the [] accessor.

It is not explicit to allow implicit conversion.

Definition at line 547 of file volumebase.h.

◆ Position4Di() [3/3]

template<typename T>
carto::Volume< T >::Position4Di::Position4Di ( const Position4Di pos)
inline

Definition at line 556 of file volumebase.h.

◆ ~Position4Di()

template<typename T>
carto::Volume< T >::Position4Di::~Position4Di ( )
inline

Definition at line 560 of file volumebase.h.

Member Function Documentation

◆ fixed_position()

template<typename T>
static std::vector<int> carto::Volume< T >::Position4Di::fixed_position ( const std::vector< int > &  vec)
inlinestatic

Definition at line 578 of file volumebase.h.

◆ fixed_size()

template<typename T>
static std::vector<int> carto::Volume< T >::Position4Di::fixed_size ( const std::vector< int > &  vec)
inlinestatic

Definition at line 589 of file volumebase.h.

◆ operator!=()

template<typename T>
bool carto::Volume< T >::Position4Di::operator!= ( const Position4Di p) const
inline

Definition at line 569 of file volumebase.h.

References carto::operator==().

◆ operator==()

template<typename T>
bool carto::Volume< T >::Position4Di::operator== ( const Position4Di p) const
inline

Definition at line 565 of file volumebase.h.

◆ operator[]() [1/2]

template<typename T>
int& carto::Volume< T >::Position4Di::operator[] ( int  coord)
inline

Definition at line 562 of file volumebase.h.

◆ operator[]() [2/2]

template<typename T>
const int& carto::Volume< T >::Position4Di::operator[] ( int  coord) const
inline

Definition at line 563 of file volumebase.h.

◆ size()

template<typename T>
unsigned carto::Volume< T >::Position4Di::size ( ) const
inline

Definition at line 572 of file volumebase.h.

Referenced by carto::Volume< T >::Volume().

◆ size_num_elements()

template<typename T>
static unsigned long long carto::Volume< T >::Position4Di::size_num_elements ( const std::vector< int > &  vec)
inlinestatic

Definition at line 600 of file volumebase.h.

◆ toVector()

template<typename T>
const std::vector<int>& carto::Volume< T >::Position4Di::toVector ( ) const
inline

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