cheshirekow  v0.1.0
kw::ParamPack< Tail > Struct Template Reference

specialization for base case, provides storage for the last type in the type list More...

#include <kwargs/kwargs.h>

Inheritance diagram for kw::ParamPack< Tail >:

Public Member Functions

template<uint64_t Tag>
constexpr bool Contains (const Key< Tag > &key) const
 
bool Contains (uint64_t tag)
 
bool Contains (const std::string &tag)
 
template<uint64_t Tag, typename T >
TypeOfTagDefault< Tag, T, Tail >
::Result 
Get (const Key< Tag > &key, T default_value)
 
template<typename ReturnType >
ReturnType GetAs (uint64_t tag, ReturnType default_value)
 
template<typename ReturnType >
ReturnType GetAs (const std::string &string, ReturnType default_value)
 
 ParamPack (Tail tail)
 

Detailed Description

template<typename Tail>
struct kw::ParamPack< Tail >

specialization for base case, provides storage for the last type in the type list

Definition at line 262 of file kwargs.h.

Constructor & Destructor Documentation

template<typename Tail >
kw::ParamPack< Tail >::ParamPack ( Tail  tail)
inline

Definition at line 263 of file kwargs.h.

Member Function Documentation

template<typename Tail >
template<uint64_t Tag>
constexpr bool kw::ParamPack< Tail >::Contains ( const Key< Tag > &  key) const
inline

Definition at line 266 of file kwargs.h.

template<typename Tail >
bool kw::ParamPack< Tail >::Contains ( uint64_t  tag)
inline

Definition at line 286 of file kwargs.h.

template<typename Tail >
bool kw::ParamPack< Tail >::Contains ( const std::string &  tag)
inline

Definition at line 290 of file kwargs.h.

template<typename Tail >
template<uint64_t Tag, typename T >
TypeOfTagDefault<Tag,T,Tail>::Result kw::ParamPack< Tail >::Get ( const Key< Tag > &  key,
default_value 
)
inline

Definition at line 272 of file kwargs.h.

template<typename Tail >
template<typename ReturnType >
ReturnType kw::ParamPack< Tail >::GetAs ( uint64_t  tag,
ReturnType  default_value 
)
inline

Definition at line 277 of file kwargs.h.

template<typename Tail >
template<typename ReturnType >
ReturnType kw::ParamPack< Tail >::GetAs ( const std::string &  string,
ReturnType  default_value 
)
inline

Definition at line 282 of file kwargs.h.


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