Multiscale Universal Interface  2.0
A Concurrent Framework for Coupling Heterogeneous Solvers
mui::dispatcher< UUID, FPTR, EXCEPTION > Struct Template Reference

#include <lib_dispatcher.h>

Public Member Functions

FPTR dispatch (const UUID &id)
 
bool exist (const UUID &id)
 
FPTR operator[] (const UUID &id)
 
bool link (const UUID &id, FPTR parser)
 
bool unlink (const UUID &id)
 

Protected Types

using assoc_table = std::unordered_map< UUID, FPTR >
 

Protected Attributes

assoc_table dtable_
 

Member Typedef Documentation

◆ assoc_table

template<typename UUID , class FPTR , class EXCEPTION = exception_segv>
using mui::dispatcher< UUID, FPTR, EXCEPTION >::assoc_table = std::unordered_map<UUID,FPTR>
protected

Member Function Documentation

◆ dispatch()

template<typename UUID , class FPTR , class EXCEPTION = exception_segv>
FPTR mui::dispatcher< UUID, FPTR, EXCEPTION >::dispatch ( const UUID &  id)
inline

◆ exist()

template<typename UUID , class FPTR , class EXCEPTION = exception_segv>
bool mui::dispatcher< UUID, FPTR, EXCEPTION >::exist ( const UUID &  id)
inline

◆ link()

template<typename UUID , class FPTR , class EXCEPTION = exception_segv>
bool mui::dispatcher< UUID, FPTR, EXCEPTION >::link ( const UUID &  id,
FPTR  parser 
)
inline

◆ operator[]()

template<typename UUID , class FPTR , class EXCEPTION = exception_segv>
FPTR mui::dispatcher< UUID, FPTR, EXCEPTION >::operator[] ( const UUID &  id)
inline

◆ unlink()

template<typename UUID , class FPTR , class EXCEPTION = exception_segv>
bool mui::dispatcher< UUID, FPTR, EXCEPTION >::unlink ( const UUID &  id)
inline

Member Data Documentation

◆ dtable_

template<typename UUID , class FPTR , class EXCEPTION = exception_segv>
assoc_table mui::dispatcher< UUID, FPTR, EXCEPTION >::dtable_
protected

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