template<typename T, typename Slices = std::vector<sSLICE_POS>>
class msl::graph::Block< T, Slices >
Node encapsulating a block (anything respecting the API of SeqBuildBlock).
Required part of the SeqBuildBlock API
- prepare (potentially implemented via prepSBB for classes inherited from SeqBuildBlock)
- run (potentially implemented via runSBB for classes inherited from SeqBuildBlock)
- getDurationPerRequest
- getRFInfoPerRequest
Since SeqBuildBlock::run requires a sSLICE_POS, this node is linked to a counter which provides the index of the slice.
|
|
using | Pointer = std::shared_ptr<Block<T, Slices>> |
| | Reference-counted pointer to Block.
|
|
using | ConstPointer = std::shared_ptr<Block<T const, Slices>> |
| | Reference-counted constant pointer to Block.
|
|
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 block.
|
| NLSStatus | run (MrProt &protocol, SeqLim &limits, SeqExpo &exports) override |
| | Run the block with the slice referenced by the counter.
|
| uint64_t | duration () const override |
| | Return the duration of the block.
|
| MrProtocolData::SeqExpoRFInfo | rfInfo () const override |
| | Return the RF information of the block.
|
|
Dictionary::ConstPointer | registry () const |
| | Return the registry.
|
|
Dictionary::Pointer & | registry () |
| | Return the registry.
|
| virtual AbstractNode & | setRegistry (Dictionary::Pointer registry) |
| | Set the registry.
|
| virtual void | reset () |
| | Reset to a default state.
|
|
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.
|