CMS 3D CMS Logo

List of all members | Public Member Functions
DDNameInterface Struct Referenceabstract

DDNameInterface provides a common interface to DDD entities. More...

#include <DDName.h>

Public Member Functions

DDName ddname () const
 Return the DDName. More...
 
virtual int id () const =0
 don't use ! More...
 
virtual const std::string & name () const =0
 Returns the name without the namespace. More...
 
virtual const std::string & ns () const =0
 Return the namespace. More...
 
virtual operator bool () const =0
 
virtual ~DDNameInterface ()
 

Detailed Description

DDNameInterface provides a common interface to DDD entities.

DDLogicalPart, DDMaterial, DDSolids, ... all are uniquely identified by their class and the value of their associated DDName. DDNameInterface provides read-access to their DDName.

Definition at line 73 of file DDName.h.

Constructor & Destructor Documentation

virtual DDNameInterface::~DDNameInterface ( )
inlinevirtual

Definition at line 75 of file DDName.h.

References DDName::name(), DDName::ns(), and AlCaHLTBitMon_QueryRunRegistry::string.

75 {}

Member Function Documentation

DDName DDNameInterface::ddname ( ) const
inline

Return the DDName.

Definition at line 84 of file DDName.h.

References electrons_cff::bool, DDName::DDName(), DDName::id(), gen::n, DDName::name(), DDName::ns(), and operator<<().

84 { return DDName(name(),ns()); }
virtual const std::string & ns() const =0
Return the namespace.
DDName is used to identify DDD entities uniquely.
Definition: DDName.h:15
virtual const std::string & name() const =0
Returns the name without the namespace.
virtual int DDNameInterface::id ( ) const
pure virtual

don't use !

virtual const std::string& DDNameInterface::name ( ) const
pure virtual
virtual const std::string& DDNameInterface::ns ( ) const
pure virtual

Return the namespace.

virtual DDNameInterface::operator bool ( ) const
pure virtual