DiFfRG
Loading...
Searching...
No Matches
DiFfRG::SubDescriptor< _descriptors > Struct Template Reference

#include <component_descriptor.hh>

Public Types

using descriptor_tuple = std::tuple<_descriptors...>
 

Public Member Functions

constexpr size_t get (const char *name) const
 
constexpr size_t operator[] (const char *name) const
 
constexpr size_t operator() (const char *name) const
 
constexpr char const * name (size_t index) const
 
constexpr std::array< const char *, sizeof...(_descriptors)> get_names () const
 
constexpr size_t size (const char *name) const
 

Static Public Member Functions

static std::vector< std::string > get_names_vector ()
 

Static Public Attributes

static constexpr std::array< const char *, sizeof...(_descriptors)> names {{_descriptors::name...}}
 
static constexpr std::array< size_t, sizeof...(_descriptors)> sizes {{_descriptors::size...}}
 
static constexpr size_t total_size = (0 + ... + _descriptors::size)
 

Member Typedef Documentation

◆ descriptor_tuple

template<typename... _descriptors>
using DiFfRG::SubDescriptor< _descriptors >::descriptor_tuple = std::tuple<_descriptors...>

Member Function Documentation

◆ get()

template<typename... _descriptors>
size_t DiFfRG::SubDescriptor< _descriptors >::get ( const char * name) const
inlineconstexpr

◆ get_names()

template<typename... _descriptors>
std::array< const char *, sizeof...(_descriptors)> DiFfRG::SubDescriptor< _descriptors >::get_names ( ) const
inlineconstexpr

◆ get_names_vector()

template<typename... _descriptors>
static std::vector< std::string > DiFfRG::SubDescriptor< _descriptors >::get_names_vector ( )
inlinestatic

◆ name()

template<typename... _descriptors>
char const * DiFfRG::SubDescriptor< _descriptors >::name ( size_t index) const
inlineconstexpr

◆ operator()()

template<typename... _descriptors>
size_t DiFfRG::SubDescriptor< _descriptors >::operator() ( const char * name) const
inlineconstexpr

◆ operator[]()

template<typename... _descriptors>
size_t DiFfRG::SubDescriptor< _descriptors >::operator[] ( const char * name) const
inlineconstexpr

◆ size()

template<typename... _descriptors>
size_t DiFfRG::SubDescriptor< _descriptors >::size ( const char * name) const
inlineconstexpr

Member Data Documentation

◆ names

template<typename... _descriptors>
std::array<const char *, sizeof...(_descriptors)> DiFfRG::SubDescriptor< _descriptors >::names {{_descriptors::name...}}
staticconstexpr

◆ sizes

template<typename... _descriptors>
std::array<size_t, sizeof...(_descriptors)> DiFfRG::SubDescriptor< _descriptors >::sizes {{_descriptors::size...}}
staticconstexpr

◆ total_size

template<typename... _descriptors>
size_t DiFfRG::SubDescriptor< _descriptors >::total_size = (0 + ... + _descriptors::size)
staticconstexpr

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