Rosetta  2020.37
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
numeric::VoxelArray< _Float, _Value > Class Template Reference

#include <VoxelArray.hh>

Public Types

typedef VoxelArray< _Float,
_Value > 
THIS
 
typedef _Float Float
 
typedef _Value Value
 
typedef std::array< Size, DIMIndices
 
typedef std::array< Float, DIMBounds
 
typedef std::vector< Value >
::reference 
data_reference_type
 
typedef std::vector< Value >
::const_reference 
const_data_reference_type
 

Public Member Functions

std::vector< Value > & data ()
 
std::vector< Value > const & data () const
 
Size num_elements () const
 
Indices const & shape () const
 
 VoxelArray ()
 
template<class F1 , class F2 , class F3 >
 VoxelArray (F1 const &lb, F2 const &ub, F3 const &cs)
 
template<class Floats >
Indices floats_to_index (Floats const &f) const
 
Bounds indices_to_center (Indices const &idx) const
 
template<class Floats >
const_data_reference_type operator[] (Floats const &floats) const
 
template<class Floats >
data_reference_type operator[] (Floats const &floats)
 
Value at (Float f, Float g, Float h) const
 
template<class V >
Value at (V const &v) const
 
bool operator== (THIS const &o) const
 
template<class Archive >
void save (Archive &ar, const unsigned int) const
 
template<class Archive >
void load (Archive &ar, const unsigned int)
 
void save (std::ostream &out) const
 
void load (std::istream &in)
 

Static Public Attributes

static size_t const DIM = 3
 

Private Member Functions

void resize (Indices const &indices)
 
data_reference_type operator() (Indices const &indices)
 
const_data_reference_type operator() (Indices const &indices) const
 

Private Attributes

Bounds lb_
 
Bounds ub_
 
Bounds cs_
 
std::vector< Valuedata_
 
Indices shape_
 

Member Typedef Documentation

template<class _Float = float, class _Value = float>
typedef std::array< Float, DIM > numeric::VoxelArray< _Float, _Value >::Bounds
template<class _Float = float, class _Value = float>
typedef std::vector<Value>::const_reference numeric::VoxelArray< _Float, _Value >::const_data_reference_type
template<class _Float = float, class _Value = float>
typedef std::vector<Value>::reference numeric::VoxelArray< _Float, _Value >::data_reference_type
template<class _Float = float, class _Value = float>
typedef _Float numeric::VoxelArray< _Float, _Value >::Float
template<class _Float = float, class _Value = float>
typedef std::array< Size, DIM > numeric::VoxelArray< _Float, _Value >::Indices
template<class _Float = float, class _Value = float>
typedef VoxelArray<_Float,_Value> numeric::VoxelArray< _Float, _Value >::THIS
template<class _Float = float, class _Value = float>
typedef _Value numeric::VoxelArray< _Float, _Value >::Value

Constructor & Destructor Documentation

template<class _Float = float, class _Value = float>
numeric::VoxelArray< _Float, _Value >::VoxelArray ( )
inline
template<class _Float = float, class _Value = float>
template<class F1 , class F2 , class F3 >
numeric::VoxelArray< _Float, _Value >::VoxelArray ( F1 const &  lb,
F2 const &  ub,
F3 const &  cs 
)
inline

Member Function Documentation

template<class _Float = float, class _Value = float>
Value numeric::VoxelArray< _Float, _Value >::at ( Float  f,
Float  g,
Float  h 
) const
inline
template<class _Float = float, class _Value = float>
template<class V >
Value numeric::VoxelArray< _Float, _Value >::at ( V const &  v) const
inline
template<class _Float = float, class _Value = float>
std::vector<Value>& numeric::VoxelArray< _Float, _Value >::data ( )
inline
template<class _Float = float, class _Value = float>
std::vector<Value> const& numeric::VoxelArray< _Float, _Value >::data ( ) const
inline
template<class _Float = float, class _Value = float>
template<class Floats >
Indices numeric::VoxelArray< _Float, _Value >::floats_to_index ( Floats const &  f) const
inline
template<class _Float = float, class _Value = float>
Bounds numeric::VoxelArray< _Float, _Value >::indices_to_center ( Indices const &  idx) const
inline
template<class _Float = float, class _Value = float>
template<class Archive >
void numeric::VoxelArray< _Float, _Value >::load ( Archive &  ar,
const unsigned  int 
)
inline
template<class _Float = float, class _Value = float>
void numeric::VoxelArray< _Float, _Value >::load ( std::istream &  in)
inline
template<class _Float = float, class _Value = float>
Size numeric::VoxelArray< _Float, _Value >::num_elements ( ) const
inline
template<class _Float = float, class _Value = float>
data_reference_type numeric::VoxelArray< _Float, _Value >::operator() ( Indices const &  indices)
inlineprivate
template<class _Float = float, class _Value = float>
const_data_reference_type numeric::VoxelArray< _Float, _Value >::operator() ( Indices const &  indices) const
inlineprivate
template<class _Float = float, class _Value = float>
bool numeric::VoxelArray< _Float, _Value >::operator== ( THIS const &  o) const
inline
template<class _Float = float, class _Value = float>
template<class Floats >
const_data_reference_type numeric::VoxelArray< _Float, _Value >::operator[] ( Floats const &  floats) const
inline
template<class _Float = float, class _Value = float>
template<class Floats >
data_reference_type numeric::VoxelArray< _Float, _Value >::operator[] ( Floats const &  floats)
inline
template<class _Float = float, class _Value = float>
void numeric::VoxelArray< _Float, _Value >::resize ( Indices const &  indices)
inlineprivate
template<class _Float = float, class _Value = float>
template<class Archive >
void numeric::VoxelArray< _Float, _Value >::save ( Archive &  ar,
const unsigned  int 
) const
inline
template<class _Float = float, class _Value = float>
void numeric::VoxelArray< _Float, _Value >::save ( std::ostream &  out) const
inline
template<class _Float = float, class _Value = float>
Indices const& numeric::VoxelArray< _Float, _Value >::shape ( ) const
inline

Member Data Documentation

template<class _Float = float, class _Value = float>
Bounds numeric::VoxelArray< _Float, _Value >::cs_
private
template<class _Float = float, class _Value = float>
std::vector<Value> numeric::VoxelArray< _Float, _Value >::data_
private
template<class _Float = float, class _Value = float>
size_t const numeric::VoxelArray< _Float, _Value >::DIM = 3
static
template<class _Float = float, class _Value = float>
Bounds numeric::VoxelArray< _Float, _Value >::lb_
private
template<class _Float = float, class _Value = float>
Indices numeric::VoxelArray< _Float, _Value >::shape_
private
template<class _Float = float, class _Value = float>
Bounds numeric::VoxelArray< _Float, _Value >::ub_
private

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