DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::utilities::NamedObject Class Reference

Implements the Named interface. More...

#include <NamedObject.hpp>

Inheritance diagram for dunedaq::utilities::NamedObject:
[legend]
Collaboration diagram for dunedaq::utilities::NamedObject:
[legend]

Public Member Functions

 NamedObject (const std::string &name)
 NamedObject Constructor.
 
 NamedObject (NamedObject const &)=delete
 NamedObject is not copy-constructible.
 
 NamedObject (NamedObject &&)=default
 NamedObject is move-constructible.
 
NamedObjectoperator= (NamedObject const &)=delete
 NamedObject is not copy-assignable.
 
NamedObjectoperator= (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.
 
Namedoperator= (Named const &)=delete
 Named is not copy-assignable.
 
Namedoperator= (Named &&)=default
 Named is move-assignable.
 
virtual ~Named ()=default
 Default virtual destructor.
 

Private Attributes

std::string m_name
 

Detailed Description

Implements the Named interface.

Definition at line 43 of file NamedObject.hpp.

Constructor & Destructor Documentation

◆ NamedObject() [1/3]

dunedaq::utilities::NamedObject::NamedObject ( const std::string & name)
inlineexplicit

NamedObject Constructor.

Parameters
nameName of this object

Definition at line 50 of file NamedObject.hpp.

51 : m_name(name)
52 {}

◆ NamedObject() [2/3]

dunedaq::utilities::NamedObject::NamedObject ( NamedObject const & )
delete

NamedObject is not copy-constructible.

◆ NamedObject() [3/3]

dunedaq::utilities::NamedObject::NamedObject ( NamedObject && )
default

NamedObject is move-constructible.

◆ ~NamedObject()

virtual dunedaq::utilities::NamedObject::~NamedObject ( )
virtualdefault

Default virtual destructor.

Member Function Documentation

◆ get_name()

const std::string & dunedaq::utilities::NamedObject::get_name ( ) const
inlinefinalvirtual

Get the name of this NamedObejct.

Returns
The name of this NamedObject

Implements dunedaq::utilities::Named.

Definition at line 64 of file NamedObject.hpp.

64{ return m_name; }

◆ operator=() [1/2]

NamedObject & dunedaq::utilities::NamedObject::operator= ( NamedObject && )
default

NamedObject is move-assignable.

◆ operator=() [2/2]

NamedObject & dunedaq::utilities::NamedObject::operator= ( NamedObject const & )
delete

NamedObject is not copy-assignable.

Member Data Documentation

◆ m_name

std::string dunedaq::utilities::NamedObject::m_name
private

Definition at line 67 of file NamedObject.hpp.


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