DDName is used to identify DDD entities uniquely. More...
#include <DDName.h>
Public Types | |
using | id_type = int |
using | IdToName = std::vector< Registry::const_iterator > |
using | Registry = std::map< std::pair< std::string, std::string >, id_type > |
Public Member Functions | |
DDName () | |
DDName (const char *name) | |
DDName (const char *name, const char *ns) | |
DDName (const std::string &name) | |
Creates a DDName with name in the current namespace defined in the singleton DDCurrentNamespace. More... | |
DDName (const std::string &name, const std::string &ns) | |
Constructs a DDName with name name and assigns name to the namespace ns. More... | |
const std::string | fullname () const |
id_type | id () const |
const std::string & | name () const |
Returns the name. More... | |
const std::string & | ns () const |
Returns the namespace. More... | |
bool | operator< (const DDName &rhs) const |
bool | operator== (const DDName &rhs) const |
Static Private Member Functions | |
static Registry::iterator | registerName (const std::pair< std::string, std::string > &s) |
Private Attributes | |
id_type | id_ |
DDName is used to identify DDD entities uniquely.
A DDName consists of a name and a namespace. Both are represented as std::string.
using DDName::id_type = int |
using DDName::IdToName = std::vector<Registry::const_iterator> |
using DDName::Registry = std::map<std::pair<std::string, std::string>, id_type> |
DDName::DDName | ( | const std::string & | name, |
const std::string & | ns | ||
) |
DDName::DDName | ( | const std::string & | name | ) |
Creates a DDName with name in the current namespace defined in the singleton DDCurrentNamespace.
Definition at line 17 of file DDName.cc.
References DDSplit(), id_, name(), DDCurrentNamespace::ns(), registerName(), and mps_fire::result.
DDName::DDName | ( | const char * | name | ) |
Definition at line 26 of file DDName.cc.
References DDSplit(), id_, name(), DDCurrentNamespace::ns(), registerName(), and mps_fire::result.
|
inline |
Returns a string complete of the namespace and name separated by ":". Most likely you want to use ns() and / or name() methods instead.
Definition at line 40 of file DDName.h.
Referenced by ListIds::analyze(), TGeoFromDddService::createMaterial(), TGeoMgrFromDdd::createMaterial(), TGeoFromDddService::createShape(), TGeoMgrFromDdd::createShape(), TGeoFromDddService::createVolume(), TGeoMgrFromDdd::createVolume(), DDCheckMaterial(), DDCompareBoolSol(), DDCompareCPV(), DDCompareDDRot(), DDCompareLP(), DDCompareSolid(), HGCalSimHitValidation::defineGeometry(), DDHtmlRoDetails::details(), DDErrorDetection::lp_cpv(), and DDFilteredView::material().
|
inline |
const std::string & DDName::name | ( | ) | const |
Returns the name.
Definition at line 40 of file DDName.cc.
References id_, DDI::Singleton< I >::instance(), mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by config.CFG::__str__(), PrintGeomSummary::addSolid(), DDEcalEndcapAlgo::addTmp(), DDG4SolidConverter::box(), HcalTB06BeamParametersFromDD::build(), HcalTB02ParametersFromDD::build(), EcalSimParametersFromDD::build(), GEMGeometryBuilderFromDDD::build(), MagGeoBuilderFromDDD::build(), ME0GeometryParsFromDD::buildChamber(), GEMGeometryParsFromDD::buildChamber(), ME0GeometryBuilder::buildChamber(), GEMGeometryBuilderFromDDD::buildChamber(), CTPPSGeometryESModule::buildDetGeomDesc(), ME0GeometryParsFromDD::buildEtaPartition(), GEMGeometryParsFromDD::buildEtaPartition(), ME0GeometryBuilder::buildEtaPartition(), GEMGeometryBuilderFromDDD::buildEtaPartition(), ME0GeometryParsFromDD::buildGeometry(), RPCGeometryParsFromDD::buildGeometry(), GEMGeometryParsFromDD::buildGeometry(), ME0GeometryBuilder::buildGeometry(), RPCGeometryBuilderFromDDD::buildGeometry(), ME0GeometryParsFromDD::buildLayer(), ME0GeometryBuilder::buildLayer(), GEMGeometryParsFromDD::buildSuperChamber(), GEMGeometryBuilderFromDDD::buildSuperChamber(), DDDividedGeometryObject::checkNDivAndWidth(), DDG4SolidConverter::cons(), DDG4Builder::convertMaterial(), TGeoMgrFromDdd::createMaterial(), TGeoMgrFromDdd::createShape(), TGeoMgrFromDdd::createVolume(), DDG4SolidConverter::cuttubs(), DDCheckAll(), DDCheckMaterial(), DDCompareEPV(), DDName(), DDrot(), DDrotReflect(), DDHtmlLpDetails::details(), DDHtmlMaDetails::details(), validation.Sample::digest(), DDG4SolidConverter::ellipticaltube(), DDTIBLayerAlgo_MTCC::execute(), DDTBH4Algo::execute(), DDTIDRingAlgo::execute(), DDCutTubsFromPoints::execute(), DDPixBarLayerUpgradeAlgo::execute(), DDPixBarLayerAlgo::execute(), DDTIBLayerAlgo::execute(), DDHCalForwardAlgo::execute(), DDTECModuleAlgo::execute(), DDEcalBarrelNewAlgo::execute(), DDEcalBarrelAlgo::execute(), DDPixFwdBlades::execute(), DDG4SolidConverter::extrudedpolygon(), fullname(), PPSGeometryBuilder::getGeographicalID(), VIDSelectorBase.VIDSelectorBase::initialize(), DreamSD::initMap(), DDG4SolidConverter::intersection(), HGCalGeomParameters::loadGeometryHexagon(), DDDividedTubsRho::makeDDLogicalPart(), DDDividedConsRho::makeDDLogicalPart(), DDDividedBoxX::makeDDLogicalPart(), DDDividedTrdX::makeDDLogicalPart(), DDDividedPolyhedraRho::makeDDLogicalPart(), DDDividedPolyconeRho::makeDDLogicalPart(), DDDividedConsPhi::makeDDLogicalPart(), DDDividedBoxY::makeDDLogicalPart(), DDDividedPolyconePhi::makeDDLogicalPart(), DDDividedPolyhedraPhi::makeDDLogicalPart(), DDDividedBoxZ::makeDDLogicalPart(), DDDividedConsZ::makeDDLogicalPart(), DDDividedTubsZ::makeDDLogicalPart(), DDDividedPolyconeZ::makeDDLogicalPart(), DDDividedTrdZ::makeDDLogicalPart(), DDDividedPolyhedraZ::makeDDLogicalPart(), DDDividedTubsPhi::makeDDRotation(), DDDividedConsPhi::makeDDRotation(), DDDividedPolyconePhi::makeDDRotation(), DDDividedPolyhedraPhi::makeDDRotation(), DDLDivision::makeDivider(), DDFilteredView::name(), DDG4SolidConverter::polycone_rrz(), DDG4SolidConverter::polycone_rz(), DDG4SolidConverter::polyhedra_rrz(), DDG4SolidConverter::polyhedra_rz(), DDLPosPart::processElement(), DDLDivision::processElement(), DDLCompositeMaterial::processElement(), DDG4SolidConverter::sphere(), DDG4SolidConverter::subtraction(), DDG4SolidConverter::torus(), DDG4SolidConverter::trap(), DDG4SolidConverter::tubs(), DDG4SolidConverter::unionsolid(), MagGeoBuilderFromDDD::volumeHandle::volumeHandle(), DDEcalBarrelAlgo::web(), and DDEcalBarrelNewAlgo::web().
const std::string & DDName::ns | ( | ) | const |
Returns the namespace.
Definition at line 51 of file DDName.cc.
References id_, DDI::Singleton< I >::instance(), mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by DDCheckAll(), DDCheckMaterial(), DDHtmlLpDetails::details(), DDHtmlMaDetails::details(), DDCutTubsFromPoints::execute(), fullname(), DDDividedBoxX::makeDDLogicalPart(), DDDividedTubsRho::makeDDLogicalPart(), DDDividedConsRho::makeDDLogicalPart(), DDDividedTrdX::makeDDLogicalPart(), DDDividedPolyconeRho::makeDDLogicalPart(), DDDividedPolyhedraRho::makeDDLogicalPart(), DDDividedBoxY::makeDDLogicalPart(), DDDividedConsPhi::makeDDLogicalPart(), DDDividedPolyconePhi::makeDDLogicalPart(), DDDividedPolyhedraPhi::makeDDLogicalPart(), DDDividedConsZ::makeDDLogicalPart(), DDDividedBoxZ::makeDDLogicalPart(), DDDividedTubsZ::makeDDLogicalPart(), DDDividedPolyhedraZ::makeDDLogicalPart(), DDDividedPolyconeZ::makeDDLogicalPart(), DDDividedTrdZ::makeDDLogicalPart(), DDDividedTubsPhi::makeDDRotation(), DDDividedConsPhi::makeDDRotation(), DDDividedPolyconePhi::makeDDRotation(), DDDividedPolyhedraPhi::makeDDRotation(), DDLDivision::makeDivider(), DDLPosPart::processElement(), DDLDivision::processElement(), and DDLCompositeMaterial::processElement().
|
inline |
|
inline |
|
staticprivate |
Definition at line 62 of file DDName.cc.
References DDI::Singleton< I >::instance(), mps_fire::result, AlCaHLTBitMon_QueryRunRegistry::string, and heppy_batch::val.
Referenced by DDName().
|
private |
Definition at line 48 of file DDName.h.
Referenced by DDName(), id(), name(), ns(), operator<(), and operator==().