VPTissue Reference Manual
SimPT_Sim::Util::FunctionMap< S > Class Template Reference

A map to hold std::functions. More...

#include <FunctionMap.h>

Inheritance diagram for SimPT_Sim::Util::FunctionMap< S >:
Inheritance graph
Collaboration diagram for SimPT_Sim::Util::FunctionMap< S >:
Collaboration graph

Public Types

using FunctionType = std::function< S >
 

Public Member Functions

 FunctionMap ()
 Construct an empty map.
 
 FunctionMap (std::initializer_list< typename MapType::value_type > l)
 Construct map from initializer_list.
 
virtual ~FunctionMap ()
 Destructor must be virtual.
 
FunctionType Get (const std::string &name) const
 Return function for given name.
 
bool IsValid (const std::string &name) const
 Check whether function name is present.
 
std::list< std::string > List () const
 List the names.
 
bool Register (const std::string &name, const FunctionType &f)
 Register a function.
 

Detailed Description

template<typename S>
class SimPT_Sim::Util::FunctionMap< S >

A map to hold std::functions.

Definition at line 36 of file FunctionMap.h.


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