#include <VariantChannel.hpp>
Classes | |
struct | CloneVisitor |
struct | DataPtrVisitor |
struct | index_of_type |
Access type index with type. More... | |
struct | NumElementsVisitor |
struct | TupleIndex |
struct | TupleIndex< T1, std::tuple< T1, Types... > > |
struct | TupleIndex< T1, std::tuple< U, Types... > > |
struct | WidthVisitor |
Public Types | |
template<std::size_t N> | |
using | type_of_index = typename std::tuple_element< N, types >::type |
using | types = std::tuple< T... > |
Public Member Functions | |
VariantChannel< T... > | clone () const |
template<typename U > | |
boost::shared_array< U > | dataPtr () const |
template<std::size_t N> | |
boost::shared_array< type_of_index< N > > | dataPtr () const |
template<typename U > | |
Channel< U > & | extract () |
template<typename U > | |
Channel< U > | extract () const |
template<typename U > | |
bool | is_type () const |
size_t | numElements () const |
int | type () const |
Get type index of a map entry. More... | |
size_t | width () const |
Static Public Attributes | |
static constexpr std::size_t | num_types = std::tuple_size<types>::value |
Private Types | |
using | base = boost::variant< Channel< T >... > |
Friends | |
std::ostream & | operator<< (std::ostream &os, const VariantChannel< T... > &ch) |
Definition at line 18 of file VariantChannel.hpp.
|
private |
Definition at line 20 of file VariantChannel.hpp.
using lvr2::VariantChannel< T >::type_of_index = typename std::tuple_element<N, types>::type |
Definition at line 42 of file VariantChannel.hpp.
using lvr2::VariantChannel< T >::types = std::tuple<T...> |
Definition at line 27 of file VariantChannel.hpp.
VariantChannel<T...> lvr2::VariantChannel< T >::clone | ( | ) | const |
boost::shared_array<U> lvr2::VariantChannel< T >::dataPtr | ( | ) | const |
|
inline |
Definition at line 52 of file VariantChannel.hpp.
Channel<U> lvr2::VariantChannel< T >::extract | ( | ) | const |
size_t lvr2::VariantChannel< T >::numElements | ( | ) | const |
int lvr2::VariantChannel< T >::type | ( | ) | const |
Get type index of a map entry.
size_t lvr2::VariantChannel< T >::width | ( | ) | const |
|
friend |
Definition at line 76 of file VariantChannel.hpp.
|
staticconstexpr |
Definition at line 39 of file VariantChannel.hpp.