VisionCpp  0.0.1
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
visioncpp::pixel::Storage< LHSScalar, Channels > Struct Template Reference

#include <pixel.hpp>

Collaboration diagram for visioncpp::pixel::Storage< LHSScalar, Channels >:

Public Types

typedef LHSScalar data_type
 

Public Member Functions

data_type operator[] (unsigned int idx) const
 
data_typeoperator[] (unsigned int idx)
 
template<typename... P>
 Storage (P... p)
 

Public Attributes

LHSScalar m_data [elements]
 

Static Public Attributes

constexpr static size_t elements = Channels
 

Detailed Description

template<typename LHSScalar, size_t Channels>
struct visioncpp::pixel::Storage< LHSScalar, Channels >

Definition at line 85 of file pixel.hpp.

Member Typedef Documentation

◆ data_type

template<typename LHSScalar , size_t Channels>
typedef LHSScalar visioncpp::pixel::Storage< LHSScalar, Channels >::data_type

Definition at line 86 of file pixel.hpp.

Constructor & Destructor Documentation

◆ Storage()

template<typename LHSScalar , size_t Channels>
template<typename... P>
visioncpp::pixel::Storage< LHSScalar, Channels >::Storage ( P...  p)
inline

Definition at line 96 of file pixel.hpp.

References visioncpp::pixel::Storage< LHSScalar, Channels >::m_data, and visioncpp::internal::tools::tuple::make_tuple().

Here is the call graph for this function:

Member Function Documentation

◆ operator[]() [1/2]

template<typename LHSScalar , size_t Channels>
data_type& visioncpp::pixel::Storage< LHSScalar, Channels >::operator[] ( unsigned int  idx)
inline

◆ operator[]() [2/2]

template<typename LHSScalar , size_t Channels>
data_type visioncpp::pixel::Storage< LHSScalar, Channels >::operator[] ( unsigned int  idx) const
inline

Member Data Documentation

◆ elements

template<typename LHSScalar , size_t Channels>
constexpr static size_t visioncpp::pixel::Storage< LHSScalar, Channels >::elements = Channels
staticconstexpr

Definition at line 87 of file pixel.hpp.

◆ m_data

template<typename LHSScalar , size_t Channels>
LHSScalar visioncpp::pixel::Storage< LHSScalar, Channels >::m_data[elements]

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