teqp 0.22.0
Loading...
Searching...
No Matches
teqp::ModelContainer< Args > Class Template Reference

#include <containers.hpp>

Public Types

using mid = std::size_t
 
using varModels = std::variant<Args...>
 

Public Member Functions

template<typename T >
const auto & get_ref (mid id)
 
auto size () const
 
auto new_id ()
 
template<typename Instance >
auto add_model (Instance &&instance)
 
const varModelsget_model (mid id) const
 
template<typename Function >
auto caller (const mid &mid, const Function &f) const
 

Detailed Description

template<typename... Args>
class teqp::ModelContainer< Args >

Definition at line 9 of file containers.hpp.

Member Typedef Documentation

◆ mid

template<typename... Args>
using teqp::ModelContainer< Args >::mid = std::size_t

Definition at line 11 of file containers.hpp.

◆ varModels

template<typename... Args>
using teqp::ModelContainer< Args >::varModels = std::variant<Args...>

Definition at line 12 of file containers.hpp.

Member Function Documentation

◆ add_model()

template<typename... Args>
template<typename Instance >
auto teqp::ModelContainer< Args >::add_model ( Instance && instance)
inline

Definition at line 25 of file containers.hpp.

◆ caller()

template<typename... Args>
template<typename Function >
auto teqp::ModelContainer< Args >::caller ( const mid & mid,
const Function & f ) const
inline

Definition at line 36 of file containers.hpp.

◆ get_model()

template<typename... Args>
const varModels & teqp::ModelContainer< Args >::get_model ( mid id) const
inline

Definition at line 31 of file containers.hpp.

◆ get_ref()

template<typename... Args>
template<typename T >
const auto & teqp::ModelContainer< Args >::get_ref ( mid id)
inline

Definition at line 17 of file containers.hpp.

◆ new_id()

template<typename... Args>
auto teqp::ModelContainer< Args >::new_id ( )
inline

Definition at line 20 of file containers.hpp.

◆ size()

template<typename... Args>
auto teqp::ModelContainer< Args >::size ( ) const
inline

Definition at line 19 of file containers.hpp.


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