msl 1.3.0
Loading...
Searching...
No Matches
msl::Sequence Class Reference

Detailed Description

Graph-based sequence class.

This class provides a default implementation of a graph-based top-level sequence class. It encapsulates a root Node, and two samplings, one for the k-space trajectories to be run, one for the k-space trajectories to be checked.

The dictionary associated with the root must contain the following keys

  • "trajectory", of type Counter, keeping track of the current trajector index and the total count of trajectories
  • "kernelMode", of type long, keeping track of which function is currently executing the graph (set to KERNEL_CHECK for the check function and to KERNEL_IMAGE for the run function)

#include <Sequence.h>

Public Member Functions

 Sequence (Sequence const &)=delete
 Sequence (Sequence &&)=delete
Sequence & operator= (Sequence const &)=delete
Sequence & operator= (Sequence &&)=delete
NLSStatus check (MrProt &protocol, SeqLim &limits, SeqExpo &exports, SEQCheckMode *) override
 Store the check mask as "indices" in the root node registry and run the root node.
NLSStatus run (MrProt &protocol, SeqLim &limits, SeqExpo &exports) override
 Store the run mask as "indices" in the root node registry and run the root node.
NLS_STATUS runKernel (MrProt &, SeqLim &, SeqExpo &, long, long, long, long) override
 Do nothing.
template<typename T>
T const & get (std::string const &key) const
 Return an object stored in the dictionary.
template<typename T>
T & get (std::string const &key)
 Return an object stored in the dictionary.
template<typename T>
Sequence & set (std::string const &key, T &&value)
 Store an object in the dictionary, create it if needed.

Protected Member Functions

Sequence & _setSampling (Sampling::Pointer sampling)
 Set the active sampling and reset the trajectories counter.

Protected Attributes

graph::Node::Pointer _root
 Root node of the sequence graph.
DictionaryItem< Sampling::Pointer_activeSampling
 Active sampling instance, either _runSampling or _checkSampling.
DictionaryItem< Counter_trajectories
 Counter for the trajectories of the current sampling.
DictionaryItem< long > _kernelMode
 Current kernel mode, KERNEL_CHECK or KERNEL_IMAGE.
Sampling::Pointer _runSampling
 Sampling instance used in run mode.
Sampling::Pointer _checkSampling
 Sampling instance used in check mode.

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