Project
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
o2::framework::LabeledArray< T > Class Template Reference

#include <Array2D.h>

Inherits o2::framework::LabelMap.

Public Types

using element_t = T
 

Public Member Functions

void is_labeled_array ()
 
 LabeledArray ()
 
 LabeledArray (T const *data, uint32_t rows_, uint32_t cols_, std::vector< std::string > labels_rows_={}, std::vector< std::string > labels_cols_={})
 
 LabeledArray (T const *data, uint32_t size, std::vector< std::string > labels_={})
 
 LabeledArray (Array2D< T > const &data, std::vector< std::string > labels_rows_={}, std::vector< std::string > labels_cols_={})
 
 LabeledArray (LabeledArray< T > const &other)=default
 
 LabeledArray (LabeledArray< T > &&other)=default
 
LabeledArrayoperator= (LabeledArray< T > const &other)=default
 
LabeledArrayoperator= (LabeledArray< T > &&other)=default
 
 ~LabeledArray ()=default
 
get (uint32_t y, uint32_t x) const
 
get (const char *y, const char *x) const
 
get (const char *y, uint32_t x) const
 
get (uint32_t y, const char *x) const
 
get (uint32_t x) const
 
get (const char *x) const
 
T * getRow (uint32_t y) const
 
T * operator[] (uint32_t y) const
 
auto getData () const
 
auto rows () const
 
auto cols () const
 
auto copy () const
 
void replaceLabelsRows (std::vector< std::string > const &labels)
 
void replaceLabelsCols (std::vector< std::string > const &labels)
 
- Public Member Functions inherited from o2::framework::LabelMap
 LabelMap ()
 
 LabelMap (uint32_t rows, uint32_t cols, std::vector< std::string > labels_rows_, std::vector< std::string > labels_cols_)
 
 LabelMap (uint32_t size, std::vector< std::string > labels)
 
 LabelMap (LabelMap const &other)
 
 LabelMap (LabelMap &&other)
 
LabelMapoperator= (LabelMap const &other)
 
LabelMapoperator= (LabelMap &&other)
 
auto getLabelsRows () const
 
auto getLabelsCols () const
 
void replaceLabelsRows (uint32_t size, std::vector< std::string > const &labels)
 
void replaceLabelsCols (uint32_t size, std::vector< std::string > const &labels)
 

Additional Inherited Members

- Static Public Member Functions inherited from o2::framework::LabelMap
static labelmap_t populate (uint32_t size, std::vector< std::string > labels)
 
- Public Attributes inherited from o2::framework::LabelMap
labelmap_t rowmap
 
labelmap_t colmap
 
std::vector< std::string > labels_rows
 
std::vector< std::string > labels_cols
 

Detailed Description

template<typename T>
class o2::framework::LabeledArray< T >

Definition at line 162 of file Array2D.h.

Member Typedef Documentation

◆ element_t

template<typename T >
using o2::framework::LabeledArray< T >::element_t = T

Definition at line 166 of file Array2D.h.

Constructor & Destructor Documentation

◆ LabeledArray() [1/6]

template<typename T >
o2::framework::LabeledArray< T >::LabeledArray ( )
inline

Definition at line 168 of file Array2D.h.

◆ LabeledArray() [2/6]

template<typename T >
o2::framework::LabeledArray< T >::LabeledArray ( T const *  data,
uint32_t  rows_,
uint32_t  cols_,
std::vector< std::string >  labels_rows_ = {},
std::vector< std::string >  labels_cols_ = {} 
)
inline

Definition at line 174 of file Array2D.h.

◆ LabeledArray() [3/6]

template<typename T >
o2::framework::LabeledArray< T >::LabeledArray ( T const *  data,
uint32_t  size,
std::vector< std::string >  labels_ = {} 
)
inline

Definition at line 180 of file Array2D.h.

◆ LabeledArray() [4/6]

template<typename T >
o2::framework::LabeledArray< T >::LabeledArray ( Array2D< T > const &  data,
std::vector< std::string >  labels_rows_ = {},
std::vector< std::string >  labels_cols_ = {} 
)
inline

Definition at line 186 of file Array2D.h.

◆ LabeledArray() [5/6]

template<typename T >
o2::framework::LabeledArray< T >::LabeledArray ( LabeledArray< T > const &  other)
default

◆ LabeledArray() [6/6]

template<typename T >
o2::framework::LabeledArray< T >::LabeledArray ( LabeledArray< T > &&  other)
default

◆ ~LabeledArray()

template<typename T >
o2::framework::LabeledArray< T >::~LabeledArray ( )
default

Member Function Documentation

◆ cols()

template<typename T >
auto o2::framework::LabeledArray< T >::cols ( ) const
inline

Definition at line 249 of file Array2D.h.

◆ copy()

template<typename T >
auto o2::framework::LabeledArray< T >::copy ( ) const
inline

Definition at line 254 of file Array2D.h.

◆ get() [1/6]

template<typename T >
T o2::framework::LabeledArray< T >::get ( const char x) const
inline

Definition at line 224 of file Array2D.h.

◆ get() [2/6]

template<typename T >
T o2::framework::LabeledArray< T >::get ( const char y,
const char x 
) const
inline

Definition at line 204 of file Array2D.h.

◆ get() [3/6]

template<typename T >
T o2::framework::LabeledArray< T >::get ( const char y,
uint32_t  x 
) const
inline

Definition at line 209 of file Array2D.h.

◆ get() [4/6]

template<typename T >
T o2::framework::LabeledArray< T >::get ( uint32_t  x) const
inline

Definition at line 219 of file Array2D.h.

◆ get() [5/6]

template<typename T >
T o2::framework::LabeledArray< T >::get ( uint32_t  y,
const char x 
) const
inline

Definition at line 214 of file Array2D.h.

◆ get() [6/6]

template<typename T >
T o2::framework::LabeledArray< T >::get ( uint32_t  y,
uint32_t  x 
) const
inline

Definition at line 199 of file Array2D.h.

◆ getData()

template<typename T >
auto o2::framework::LabeledArray< T >::getData ( ) const
inline

Definition at line 239 of file Array2D.h.

◆ getRow()

template<typename T >
T * o2::framework::LabeledArray< T >::getRow ( uint32_t  y) const
inline

Definition at line 229 of file Array2D.h.

◆ is_labeled_array()

template<typename T >
void o2::framework::LabeledArray< T >::is_labeled_array ( )

◆ operator=() [1/2]

template<typename T >
LabeledArray & o2::framework::LabeledArray< T >::operator= ( LabeledArray< T > &&  other)
default

◆ operator=() [2/2]

template<typename T >
LabeledArray & o2::framework::LabeledArray< T >::operator= ( LabeledArray< T > const &  other)
default

◆ operator[]()

template<typename T >
T * o2::framework::LabeledArray< T >::operator[] ( uint32_t  y) const
inline

Definition at line 234 of file Array2D.h.

◆ replaceLabelsCols()

template<typename T >
void o2::framework::LabeledArray< T >::replaceLabelsCols ( std::vector< std::string > const &  labels)
inline

Definition at line 265 of file Array2D.h.

◆ replaceLabelsRows()

template<typename T >
void o2::framework::LabeledArray< T >::replaceLabelsRows ( std::vector< std::string > const &  labels)
inline

Definition at line 260 of file Array2D.h.

◆ rows()

template<typename T >
auto o2::framework::LabeledArray< T >::rows ( ) const
inline

Definition at line 244 of file Array2D.h.


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