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

storage for kwargs parameter pack More...

#include <kwargs/kwargs.h>

Public Member Functions

template<uint64_t Tag>
constexpr bool Contains (const Key< Tag > &key)
 returns true if the numeric tag is a member of the kwargs in Args... More...
 
bool Contains (uint64_t tag)
 
bool Contains (const std::string &tag)
 
template<uint64_t Tag, typename T >
TypeOfTagDefault< Tag, T,
Args...>::Result 
Get (const Key< Tag > &key, T default_value)
 return the value associated with Tag, if it exists in the kwargs, otherwise return the default More...
 
template<typename ReturnType >
ReturnType GetAs (uint64_t tag, ReturnType default_value)
 
template<typename ReturnType >
ReturnType GetAs (const std::string &tag, ReturnType default_value)
 

Detailed Description

template<typename... Args>
struct kw::ParamPack< Args >

storage for kwargs parameter pack

Definition at line 73 of file kwargs.h.

Member Function Documentation

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

returns true if the numeric tag is a member of the kwargs in Args...

Definition at line 115 of file kwargs.h.

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

Definition at line 137 of file kwargs.h.

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

Definition at line 138 of file kwargs.h.

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

return the value associated with Tag, if it exists in the kwargs, otherwise return the default

Definition at line 122 of file kwargs.h.

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

Definition at line 128 of file kwargs.h.

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

Definition at line 133 of file kwargs.h.


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