|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
Registry of internal state names. More...
#include <ProcessorInternalStateNameRegistry.hpp>
Public Types | |
| using | signal_t = T |
| Signal type to use. Generally __m256i or std::array<int16_t, 16>;. | |
Public Member Functions | |
| ProcessorInternalStateNameRegistry ()=default | |
| Constructor. | |
| ~ProcessorInternalStateNameRegistry () | |
| Destructor. | |
| ProcessorInternalStateNameRegistry (const ProcessorInternalStateNameRegistry &)=delete | |
| ProcessorInternalStateNameRegistry & | operator= (const ProcessorInternalStateNameRegistry &)=delete |
| ProcessorInternalStateNameRegistry (ProcessorInternalStateNameRegistry &&)=default | |
| ProcessorInternalStateNameRegistry & | operator= (ProcessorInternalStateNameRegistry &&)=default |
| size_t | get_number_of_requested_internal_states () |
| Get the number of requested internal states. | |
| std::vector< std::string > | get_names_of_requested_internal_states () const |
| Get the names of the requested internal states. | |
| void | parse_requested_internal_state_items (std::string config_string) |
| Parse the requested internal state items from a configuration string. | |
| void | register_internal_state (std::string name, std::shared_ptr< signal_t > pointer_to_state) |
| Register an internal state. | |
| std::shared_ptr< signal_t > | get_internal_state_item_ptr (std::string name) |
| Get a pointer to an internal state item. | |
| std::vector< std::shared_ptr< signal_t > > | get_all_requested_internal_state_item_ptrs () |
| Get a vector of pointers to all internal state items. | |
| bool | is_registered (const std::string &name) const |
| Check if an internal state name is registered. | |
| bool | is_requested (const std::string &name) const |
| Check if an internal state name is requested. | |
Protected Member Functions | |
| std::vector< std::string > | get_all_registered_internal_state_names () |
| Get all registered internal state names. | |
| void | clear () |
| Clear the registry. | |
Private Attributes | |
| std::unordered_map< std::string, std::shared_ptr< signal_t > > | m_internal_state_map |
| Map of internal state names to pointers. | |
| std::vector< std::string > | m_requested_internal_state_names |
| Vector of all requested internal state names. | |
Registry of internal state names.
Definition at line 27 of file ProcessorInternalStateNameRegistry.hpp.
| using tpglibs::ProcessorInternalStateNameRegistry< T >::signal_t = T |
Signal type to use. Generally __m256i or std::array<int16_t, 16>;.
Definition at line 30 of file ProcessorInternalStateNameRegistry.hpp.
|
default |
Constructor.
| tpglibs::ProcessorInternalStateNameRegistry< T >::~ProcessorInternalStateNameRegistry | ( | ) |
Destructor.
Definition at line 130 of file ProcessorInternalStateNameRegistry.hpp.
|
delete |
|
default |
|
protected |
Clear the registry.
Definition at line 210 of file ProcessorInternalStateNameRegistry.hpp.
|
protected |
Get all registered internal state names.
Definition at line 156 of file ProcessorInternalStateNameRegistry.hpp.
| std::vector< std::shared_ptr< typename ProcessorInternalStateNameRegistry< T >::signal_t > > tpglibs::ProcessorInternalStateNameRegistry< T >::get_all_requested_internal_state_item_ptrs | ( | ) |
Get a vector of pointers to all internal state items.
Definition at line 218 of file ProcessorInternalStateNameRegistry.hpp.
| std::shared_ptr< typename ProcessorInternalStateNameRegistry< T >::signal_t > tpglibs::ProcessorInternalStateNameRegistry< T >::get_internal_state_item_ptr | ( | std::string | name | ) |
Get a pointer to an internal state item.
| name | The name of the internal state. |
Definition at line 151 of file ProcessorInternalStateNameRegistry.hpp.
| std::vector< std::string > tpglibs::ProcessorInternalStateNameRegistry< T >::get_names_of_requested_internal_states | ( | ) | const |
Get the names of the requested internal states.
Definition at line 140 of file ProcessorInternalStateNameRegistry.hpp.
| size_t tpglibs::ProcessorInternalStateNameRegistry< T >::get_number_of_requested_internal_states | ( | ) |
Get the number of requested internal states.
Definition at line 135 of file ProcessorInternalStateNameRegistry.hpp.
| bool tpglibs::ProcessorInternalStateNameRegistry< T >::is_registered | ( | const std::string & | name | ) | const |
Check if an internal state name is registered.
| name | The name to check. |
Definition at line 227 of file ProcessorInternalStateNameRegistry.hpp.
| bool tpglibs::ProcessorInternalStateNameRegistry< T >::is_requested | ( | const std::string & | name | ) | const |
Check if an internal state name is requested.
| name | The name to check. |
Definition at line 232 of file ProcessorInternalStateNameRegistry.hpp.
|
delete |
|
default |
| void tpglibs::ProcessorInternalStateNameRegistry< T >::parse_requested_internal_state_items | ( | std::string | config_string | ) |
Parse the requested internal state items from a configuration string.
| config_string | The configuration string. |
Definition at line 165 of file ProcessorInternalStateNameRegistry.hpp.
| void tpglibs::ProcessorInternalStateNameRegistry< T >::register_internal_state | ( | std::string | name, |
| std::shared_ptr< signal_t > | pointer_to_state ) |
Register an internal state.
| name | The name of the internal state. |
| pointer_to_state | A pointer to the internal state item. |
Definition at line 145 of file ProcessorInternalStateNameRegistry.hpp.
|
private |
Map of internal state names to pointers.
Definition at line 121 of file ProcessorInternalStateNameRegistry.hpp.
|
private |
Vector of all requested internal state names.
Definition at line 124 of file ProcessorInternalStateNameRegistry.hpp.