DDName is used to identify DDD entities uniquely. More...
#include <DDName.h>
Public Types | |
using | id_type = int |
using | IdToName = tbb::concurrent_vector< Registry::const_iterator > |
using | key_type = std::pair< const std::string, std::string > |
using | Registry = tbb::concurrent_unordered_map< key_type, id_type, edm::StdPairHasher > |
Public Member Functions | |
DDName (const std::string &name, const std::string &ns) | |
Constructs a DDName with name name and assigns name to the namespace ns. More... | |
DDName (const std::string &name) | |
Creates a DDName with name in the current namespace defined in the singleton DDCurrentNamespace. More... | |
DDName (const char *name) | |
DDName (const char *name, const char *ns) | |
DDName () | |
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::const_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 = tbb::concurrent_vector<Registry::const_iterator> |
using DDName::key_type = std::pair<const std::string, std::string> |
using DDName::Registry = tbb::concurrent_unordered_map<key_type, id_type, edm::StdPairHasher> |
DDName::DDName | ( | const std::string & | name, |
const std::string & | ns | ||
) |
Constructs a DDName with name name and assigns name to the namespace ns.
Definition at line 16 of file DDName.cc.
DDName::DDName | ( | const std::string & | name | ) |
Creates a DDName with name in the current namespace defined in the singleton DDCurrentNamespace.
Definition at line 18 of file DDName.cc.
References DDSplit(), id_, name(), DDCurrentNamespace::ns(), registerName(), and mps_fire::result.
DDName::DDName | ( | const char * | name | ) |
Definition at line 27 of file DDName.cc.
References DDSplit(), id_, name(), DDCurrentNamespace::ns(), registerName(), and mps_fire::result.
DDName::DDName | ( | const char * | name, |
const char * | ns | ||
) |
Definition at line 36 of file DDName.cc.
|
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 43 of file DDName.h.
Referenced by ListIds::analyze(), TGeoMgrFromDdd::createMaterial(), TGeoMgrFromDdd::createShape(), TGeoMgrFromDdd::createVolume(), DDCheckMaterial(), DDCompareBoolSol(), DDCompareCPV(), DDCompareDDRot(), DDCompareLP(), DDCompareSolid(), DDHtmlRoDetails::details(), DDErrorDetection::lp_cpv(), and DDFilteredView::material().
const std::string & DDName::name | ( | ) | const |
Returns the name.
Definition at line 41 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(), EcalSimParametersFromDD::build(), MuonOffsetFromDD::build(), GEMGeometryBuilder::build(), MagGeoBuilderFromDDD::build(), ME0GeometryParsFromDD::buildChamber(), GEMGeometryParsFromDD::buildChamber(), ME0GeometryBuilder::buildChamber(), GEMGeometryBuilder::buildChamber(), ME0GeometryParsFromDD::buildEtaPartition(), GEMGeometryParsFromDD::buildEtaPartition(), ME0GeometryBuilder::buildEtaPartition(), GEMGeometryBuilder::buildEtaPartition(), ME0GeometryParsFromDD::buildGeometry(), RPCGeometryBuilder::buildGeometry(), RPCGeometryParsFromDD::buildGeometry(), GEMGeometryParsFromDD::buildGeometry(), ME0GeometryBuilder::buildGeometry(), ME0GeometryParsFromDD::buildLayer(), ME0GeometryBuilder::buildLayer(), GEMGeometryParsFromDD::buildSuperChamber(), GEMGeometryBuilder::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(), DDTBH4Algo::execute(), DDTIDRingAlgo::execute(), DDCutTubsFromPoints::execute(), DDPixBarLayerAlgo::execute(), DDPixBarLayerUpgradeAlgo::execute(), DDTIBLayerAlgo::execute(), DDHCalForwardAlgo::execute(), DDPixFwdBladesNew::execute(), DDTECModuleAlgo::execute(), DDEcalBarrelNewAlgo::execute(), DDEcalBarrelAlgo::execute(), DDPixFwdBlades::execute(), DDG4SolidConverter::extrudedpolygon(), fullname(), VIDSelectorBase.VIDSelectorBase::initialize(), DDG4SolidConverter::intersection(), HGCalGeomParameters::loadGeometryHexagon(), DDDividedConsRho::makeDDLogicalPart(), DDDividedTubsRho::makeDDLogicalPart(), DDDividedBoxX::makeDDLogicalPart(), DDDividedPolyhedraRho::makeDDLogicalPart(), DDDividedTrdX::makeDDLogicalPart(), DDDividedPolyconeRho::makeDDLogicalPart(), DDDividedConsPhi::makeDDLogicalPart(), DDDividedBoxY::makeDDLogicalPart(), DDDividedPolyconePhi::makeDDLogicalPart(), DDDividedPolyhedraPhi::makeDDLogicalPart(), DDDividedBoxZ::makeDDLogicalPart(), DDDividedTubsZ::makeDDLogicalPart(), DDDividedConsZ::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 52 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 67 of file DDName.cc.
References first, DDI::Singleton< I >::instance(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by DDName().
|
private |
Definition at line 51 of file DDName.h.
Referenced by DDName(), id(), name(), ns(), operator<(), and operator==().