Electroneum
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
mstch::internal::object_t< N > Class Template Reference

#include <mstch.hpp>

Public Member Functions

const N & at (const std::string &name) const
 
bool has (const std::string name) const
 

Protected Member Functions

template<class S >
void register_methods (S *s, std::map< std::string, N(S::*)()> methods)
 

Private Attributes

std::map< std::string, std::function< N()> > methods
 
std::map< std::string, N > cache
 

Member Function Documentation

◆ at()

template<class N >
const N& mstch::internal::object_t< N >::at ( const std::string &  name) const
inline

◆ has()

template<class N >
bool mstch::internal::object_t< N >::has ( const std::string  name) const
inline

◆ register_methods()

template<class N >
template<class S >
void mstch::internal::object_t< N >::register_methods ( S *  s,
std::map< std::string, N(S::*)()>  methods 
)
inlineprotected

Member Data Documentation

◆ cache

template<class N >
std::map<std::string, N> mstch::internal::object_t< N >::cache
mutableprivate

◆ methods

template<class N >
std::map<std::string, std::function<N()> > mstch::internal::object_t< N >::methods
private

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