template<typename T>
class msl::graph::Case< T >
Node encapsulating a switch/case structure based on a boolean key or a function key.
|
|
using | Map = std::unordered_map<T, AbstractNode::Pointer> |
| | Dictionary to dispatch key to function.
|
|
using | Function = FlexibleFunction<T> |
| | Case function.
|
|
using | Pointer = std::shared_ptr<Case<T>> |
| | Reference-counted pointer to Case<T>.
|
|
using | ConstPointer = std::shared_ptr<Case<T> const> |
| | Reference-counted constant pointer to Case<T>.
|
|
using | Pointer = std::shared_ptr<AbstractNode> |
| | Reference-counted pointer to AbstractNode.
|
|
using | ConstPointer = std::shared_ptr<AbstractNode const> |
| | Reference-counted constant pointer to AbstractNode.
|
|
| NLSStatus | prepare (MrProt &protocol, SeqLim &limits, SeqExpo &exports) override |
| | Prepare the selected child, throw an exception if unknown value.
|
| NLSStatus | run (MrProt &protocol, SeqLim &limits, SeqExpo &exports) override |
| | Run the selected child, throw an exception if unknown value.
|
| void | reset () override |
| | Reset all branches to a default state.
|
| Case & | setRegistry (Dictionary::Pointer registry) override |
| | Set the registry to this node and its children.
|
| uint64_t | duration () const override |
| | Return the duration of the selected child, throw an exception if unknown value.
|
| MrProtocolData::SeqExpoRFInfo | rfInfo () const override |
| | Return the RF information of the selected child, throw an exception if unknown value.
|
|
Dictionary::ConstPointer | registry () const |
| | Return the registry.
|
|
Dictionary::Pointer & | registry () |
| | Return the registry.
|
|
template<typename T> |
| T const & | get (std::string const &key) const |
| | Return an object from the dictionary.
|
|
template<typename T> |
| T & | get (std::string const &key) |
| | Return an object from the dictionary.
|
|
template<typename T> |
| AbstractNode & | set (std::string const &key, T &&value) |
| | Store an object in the dictionary, create it if needed.
|
|
boost::typeindex::type_info const & | type (std::string const &key) const |
| | Return the type of an object in the dictionary.
|