|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
The QueueBase class allows to address generic behavior of any Queue implementation. More...
#include <QueueBase.hpp>
Public Member Functions | |
| QueueBase (const std::string &name) | |
| QueueBase Constructor. | |
| virtual size_t | get_capacity () const =0 |
| Get the capacity (max size) of the queue. | |
| virtual size_t | get_num_elements () const =0 |
Public Member Functions inherited from dunedaq::utilities::NamedObject | |
| NamedObject (const std::string &name) | |
| NamedObject Constructor. | |
| NamedObject (NamedObject const &)=delete | |
| NamedObject is not copy-constructible. | |
| NamedObject (NamedObject &&)=default | |
| NamedObject is move-constructible. | |
| NamedObject & | operator= (NamedObject const &)=delete |
| NamedObject is not copy-assignable. | |
| NamedObject & | operator= (NamedObject &&)=default |
| NamedObject is move-assignable. | |
| virtual | ~NamedObject ()=default |
| Default virtual destructor. | |
| const std::string & | get_name () const final |
| Get the name of this NamedObejct. | |
Public Member Functions inherited from dunedaq::utilities::Named | |
| Named ()=default | |
| Named Constructor. | |
| Named (Named const &)=delete | |
| Named is not copy-constructible. | |
| Named (Named &&)=default | |
| Named is move-constructible. | |
| Named & | operator= (Named const &)=delete |
| Named is not copy-assignable. | |
| Named & | operator= (Named &&)=default |
| Named is move-assignable. | |
| virtual | ~Named ()=default |
| Default virtual destructor. | |
Public Member Functions inherited from dunedaq::opmonlib::MonitorableObject | |
| MonitorableObject (const MonitorableObject &)=delete | |
| MonitorableObject & | operator= (const MonitorableObject &)=delete |
| MonitorableObject (MonitorableObject &&)=delete | |
| MonitorableObject & | operator= (MonitorableObject &&)=delete |
| virtual | ~MonitorableObject ()=default |
| auto | get_opmon_id () const noexcept |
| auto | get_opmon_level () const noexcept |
Protected Member Functions | |
| void | generate_opmon_data () override |
| Method to retrieve information (occupancy) from queues. | |
Protected Member Functions inherited from dunedaq::opmonlib::MonitorableObject | |
| MonitorableObject ()=default | |
| void | register_node (ElementId name, NewNodePtr) |
| void | publish (google::protobuf::Message &&, CustomOrigin &&co={}, OpMonLevel l=to_level(EntryOpMonLevel::kDefault)) const noexcept |
Private Member Functions | |
| QueueBase (const QueueBase &)=delete | |
| QueueBase & | operator= (const QueueBase &)=delete |
| QueueBase (QueueBase &&)=delete | |
| QueueBase & | operator= (QueueBase &&)=delete |
Additional Inherited Members | |
Public Types inherited from dunedaq::opmonlib::MonitorableObject | |
| using | NodePtr = std::weak_ptr<MonitorableObject> |
| using | NewNodePtr = std::shared_ptr<MonitorableObject> |
| using | ElementId = std::string |
Static Public Member Functions inherited from dunedaq::opmonlib::MonitorableObject | |
| static bool | publishable_metric (OpMonLevel entry, OpMonLevel system) noexcept |
The QueueBase class allows to address generic behavior of any Queue implementation.
Note that while the QueueBase class is not templated on a data type (so it can be included in generic containers), all implementations should be.
Definition at line 42 of file QueueBase.hpp.
|
inlineexplicit |
QueueBase Constructor.
| name | Name of the Queue instance |
Definition at line 51 of file QueueBase.hpp.
|
privatedelete |
|
privatedelete |
|
inlineoverrideprotectedvirtual |
Method to retrieve information (occupancy) from queues.
Reimplemented from dunedaq::opmonlib::MonitorableObject.
Definition at line 70 of file QueueBase.hpp.
|
pure virtual |
Get the capacity (max size) of the queue.
Implemented in dunedaq::iomanager::FollyQueue< T, FollyQueueType >, and dunedaq::iomanager::StdDeQueue< T >.
|
pure virtual |
Implemented in dunedaq::iomanager::FollyQueue< T, FollyQueueType >, and dunedaq::iomanager::StdDeQueue< T >.