DD4hep  1.28.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | Public Attributes | List of all members
dd4hep::NamedObject Class Reference

Implementation of a named object. More...

#include <NamedObject.h>

Inheritance diagram for dd4hep::NamedObject:
dd4hep::align::GlobalAlignmentData dd4hep::CartesianField::TypedObject dd4hep::cond::ConditionsDataLoader dd4hep::cond::ConditionsManagerObject dd4hep::cond::ConditionsPool dd4hep::cond::Entry dd4hep::ConstantObject dd4hep::detail::OpticalSurfaceManagerObject dd4hep::detail::VolumeManagerObject dd4hep::DetElementObject dd4hep::HeaderObject dd4hep::IDDescriptorObject dd4hep::LimitSetObject dd4hep::ReadoutObject dd4hep::RegionObject dd4hep::SensitiveDetectorObject dd4hep::VisAttrObject

Public Member Functions

 NamedObject (const char *nam, const char *typ="")
 Initializing constructor. More...
 
 NamedObject (const std::string &nam)
 Initializing constructor. More...
 
 NamedObject (const std::string &nam, const std::string &typ)
 Initializing constructor. More...
 
 NamedObject ()=default
 Standard constructor. More...
 
 NamedObject (const NamedObject &c)=default
 Copy constructor. More...
 
 NamedObject (NamedObject &&c)=default
 Move constructor. More...
 
virtual ~NamedObject ()=default
 Default destructor. More...
 
NamedObjectoperator= (const NamedObject &c)=default
 Assignment operator. More...
 
NamedObjectoperator= (NamedObject &&c)=default
 Move assignment operator. More...
 
const char * GetName () const
 Access name. More...
 
void SetName (const char *nam)
 Set name (used by Handle) More...
 
void SetTitle (const char *tit)
 Set Title (used by Handle) More...
 
const char * GetTitle () const
 Get name (used by Handle) More...
 

Public Attributes

std::string name
 The object name. More...
 
std::string type
 The object type. More...
 

Detailed Description

Implementation of a named object.

The data class behind named object handles.

Author
M.Frank
Version
1.0

Definition at line 30 of file NamedObject.h.

Constructor & Destructor Documentation

◆ NamedObject() [1/6]

NamedObject::NamedObject ( const char *  nam,
const char *  typ = "" 
)

Initializing constructor.

Definition at line 34 of file NamedObject.cpp.

◆ NamedObject() [2/6]

NamedObject::NamedObject ( const std::string &  nam)

Initializing constructor.

Definition at line 40 of file NamedObject.cpp.

◆ NamedObject() [3/6]

NamedObject::NamedObject ( const std::string &  nam,
const std::string &  typ 
)

Initializing constructor.

Definition at line 46 of file NamedObject.cpp.

◆ NamedObject() [4/6]

dd4hep::NamedObject::NamedObject ( )
default

Standard constructor.

◆ NamedObject() [5/6]

dd4hep::NamedObject::NamedObject ( const NamedObject c)
default

Copy constructor.

◆ NamedObject() [6/6]

dd4hep::NamedObject::NamedObject ( NamedObject &&  c)
default

Move constructor.

◆ ~NamedObject()

virtual dd4hep::NamedObject::~NamedObject ( )
virtualdefault

Default destructor.

Member Function Documentation

◆ GetName()

const char* dd4hep::NamedObject::GetName ( ) const
inline

Access name.

Definition at line 58 of file NamedObject.h.

◆ GetTitle()

const char* dd4hep::NamedObject::GetTitle ( ) const
inline

Get name (used by Handle)

Definition at line 70 of file NamedObject.h.

◆ operator=() [1/2]

NamedObject& dd4hep::NamedObject::operator= ( const NamedObject c)
default

Assignment operator.

◆ operator=() [2/2]

NamedObject& dd4hep::NamedObject::operator= ( NamedObject &&  c)
default

Move assignment operator.

◆ SetName()

void dd4hep::NamedObject::SetName ( const char *  nam)
inline

Set name (used by Handle)

Definition at line 62 of file NamedObject.h.

◆ SetTitle()

void dd4hep::NamedObject::SetTitle ( const char *  tit)
inline

Set Title (used by Handle)

Definition at line 66 of file NamedObject.h.

Member Data Documentation

◆ name

std::string dd4hep::NamedObject::name

The object name.

Definition at line 33 of file NamedObject.h.

◆ type

std::string dd4hep::NamedObject::type

The object type.

Definition at line 35 of file NamedObject.h.


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