|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <ListStorage.hpp>
Public Member Functions | |
| ListStorage () | |
| bool | has_list (const int &id) const |
| IntList | get_list (const int &id) const |
| void | add_list (IntList list, bool ignoreDuplicates=false) |
| size_t | size () const |
| void | set_capacity (const size_t &capacity) |
| size_t | capacity () const |
| void | flush () |
Private Attributes | |
| std::map< int, IntList > | m_lists |
| std::mutex | m_lists_mutex |
| size_t | m_capacity { 1000 } |
Definition at line 22 of file ListStorage.hpp.
|
inline |
Definition at line 25 of file ListStorage.hpp.
Definition at line 31 of file ListStorage.cpp.
|
inline |
Definition at line 33 of file ListStorage.hpp.
| void dunedaq::listrev::ListStorage::flush | ( | ) |
Definition at line 52 of file ListStorage.cpp.
| dunedaq::listrev::IntList dunedaq::listrev::ListStorage::get_list | ( | const int & | id | ) | const |
Definition at line 20 of file ListStorage.cpp.
| bool dunedaq::listrev::ListStorage::has_list | ( | const int & | id | ) | const |
Definition at line 13 of file ListStorage.cpp.
|
inline |
Definition at line 32 of file ListStorage.hpp.
| size_t dunedaq::listrev::ListStorage::size | ( | ) | const |
Definition at line 45 of file ListStorage.cpp.
|
private |
Definition at line 39 of file ListStorage.hpp.
|
private |
Definition at line 37 of file ListStorage.hpp.
|
mutableprivate |
Definition at line 38 of file ListStorage.hpp.