CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes
DDBase< N, C > Class Template Reference

#include <DDBase.h>

Classes

class  iterator
 

Public Types

typedef std::pair< const N *, bool > def_type
 
typedef C pimpl_type
 
typedef DDI::rep_type< N, pimpl_type > * prep_type
 
typedef DDI::Singleton< DDI::Store< N, C > > StoreT
 

Public Member Functions

 DDBase ()
 
const Nddname () const
 
def_type isDefined () const
 
bool isValid () const
 true, if the wrapped pointer is valid More...
 
const Nname () const
 
 operator bool () const
 
bool operator< (const DDBase &b) const
 
bool operator== (const DDBase &b) const
 
bool operator> (const DDBase &b) const
 
const DDI::rep_traits< N, C >::reference rep () const
 
DDI::rep_traits< N, C >::reference rep ()
 
std::string toString () const
 
const DDI::rep_traits< N, C >::reference val () const
 
const DDI::rep_traits< N, C >::reference val ()
 
virtual ~DDBase ()
 

Static Public Member Functions

static auto begin ()
 
static void clear ()
 
static auto end ()
 
static size_t size ()
 

Protected Attributes

prep_type prep_
 

Detailed Description

template<class N, class C>
class DDBase< N, C >

Definition at line 10 of file DDBase.h.

Member Typedef Documentation

template<class N, class C>
typedef std::pair<const N*,bool> DDBase< N, C >::def_type

Definition at line 73 of file DDBase.h.

template<class N, class C>
typedef C DDBase< N, C >::pimpl_type

Definition at line 71 of file DDBase.h.

template<class N, class C>
typedef DDI::rep_type<N,pimpl_type>* DDBase< N, C >::prep_type

Definition at line 72 of file DDBase.h.

template<class N, class C>
typedef DDI::Singleton<DDI::Store<N,C> > DDBase< N, C >::StoreT

Definition at line 70 of file DDBase.h.

Constructor & Destructor Documentation

template<class N, class C>
DDBase< N, C >::DDBase ( )
inline

Definition at line 75 of file DDBase.h.

75 : prep_(nullptr) { }
prep_type prep_
Definition: DDBase.h:126
template<class N, class C>
virtual DDBase< N, C >::~DDBase ( )
inlinevirtual

Definition at line 76 of file DDBase.h.

76 { /*never do this here: if (prep_) delete prep_;*/ }

Member Function Documentation

template<class N, class C>
static auto DDBase< N, C >::begin ( void  )
inlinestatic

Definition at line 66 of file DDBase.h.

66 { return StoreT::instance().begin(); }
static value_type & instance()
template<class N, class C>
static void DDBase< N, C >::clear ( void  )
inlinestatic
template<class N, class C>
const N& DDBase< N, C >::ddname ( ) const
inline

Definition at line 80 of file DDBase.h.

Referenced by DDMaterial::addMaterial(), DDG4Builder::BuildGeometry(), DDHCalBarrelAlgo::constructInsideDetectors(), DDHCalBarrelAlgo::constructInsideLayers(), DDHCalEndcapModuleAlgo::constructInsideModule(), DDHCalEndcapAlgo::constructInsideModule(), DDHCalEndcapModuleAlgo::constructInsideModule0(), DDHCalEndcapAlgo::constructInsideModule0(), DDAHcalModuleAlgo::constructLayers(), DDHGCalModule::constructLayers(), DDHGCalModuleAlgo::constructLayers(), DDHGCalTBModule::constructLayers(), DDHGCalEEAlgo::constructLayers(), DDHGCalHEAlgo::constructLayers(), DDHCalBarrelAlgo::constructMidLayer(), DDHCalEndcapModuleAlgo::constructScintLayer(), DDHCalEndcapAlgo::constructScintLayer(), DDHCalBarrelAlgo::constructSideLayer(), DDG4Builder::convertLV(), DDCheckConnect(), DDCheckMaterial(), DDHtmlLpDetails::details(), DDHtmlMaDetails::details(), DDPixBarLayerUpgradeAlgo::execute(), DDTIDModuleAlgo::execute(), DDHCalForwardAlgo::execute(), DDHCalTBCableAlgo::execute(), DDTIBLayerAlgo_MTCC::execute(), DDPixBarLayerAlgo::execute(), DDTIBLayerAlgo::execute(), DDTECModuleAlgo::execute(), DDErrorDetection::lp_cpv(), DDDividedBoxX::makeDDLogicalPart(), DDDividedConsRho::makeDDLogicalPart(), DDDividedTubsRho::makeDDLogicalPart(), DDDividedPolyhedraRho::makeDDLogicalPart(), DDDividedTrdX::makeDDLogicalPart(), DDDividedPolyconeRho::makeDDLogicalPart(), DDDividedBoxY::makeDDLogicalPart(), DDDividedConsPhi::makeDDLogicalPart(), DDDividedPolyconePhi::makeDDLogicalPart(), DDDividedPolyhedraPhi::makeDDLogicalPart(), DDDividedBoxZ::makeDDLogicalPart(), DDDividedTubsZ::makeDDLogicalPart(), DDDividedConsZ::makeDDLogicalPart(), DDDividedPolyconeZ::makeDDLogicalPart(), DDDividedPolyhedraZ::makeDDLogicalPart(), DDDividedTrdZ::makeDDLogicalPart(), DDDividedTubsPhi::makeDDRotation(), DDDividedConsPhi::makeDDRotation(), DDDividedPolyconePhi::makeDDRotation(), DDDividedPolyhedraPhi::makeDDRotation(), DDExpandedNodeLess::operator()(), operator<<(), DDAHcalModuleAlgo::positionSensitive(), DDHGCalTBModule::positionSensitive(), DDHGCalModule::positionSensitive(), DDHGCalModuleAlgo::positionSensitive(), DDI::LogicalPart::stream(), and DDCompactViewImpl::weight().

80 { return prep_->name(); }
const rep_traits< N, I >::name_type & name() const
Definition: rep_type.h:34
prep_type prep_
Definition: DDBase.h:126
template<class N, class C>
static auto DDBase< N, C >::end ( void  )
inlinestatic

Definition at line 65 of file DDBase.h.

Referenced by Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().

65 { return StoreT::instance().end(); }
static value_type & instance()
template<class N, class C>
def_type DDBase< N, C >::isDefined ( ) const
inline

Definition at line 110 of file DDBase.h.

Referenced by DDG4Builder::BuildGeometry(), DDDividedGeometryObject::checkParametersValidity(), DDCheckMaterial(), DDCheckPD(), DDHtmlLpDetails::details(), DDHtmlMaDetails::details(), DDHtmlRoDetails::details(), operator<<(), DDLDivision::processElement(), DDErrorDetection::so(), and DDI::Reflection::volume().

111  {
112  return prep_ ?
113  std::make_pair(&(prep_->name()), bool(prep_->second))
114  :
115  std::make_pair((const N *)nullptr,false);
116  }
#define nullptr
const rep_traits< N, I >::name_type & name() const
Definition: rep_type.h:34
#define N
Definition: blowfish.cc:9
prep_type prep_
Definition: DDBase.h:126
template<class N, class C>
bool DDBase< N, C >::isValid ( void  ) const
inline
template<class N, class C>
const N& DDBase< N, C >::name ( ) const
inline

Definition at line 78 of file DDBase.h.

Referenced by config.CFG::__str__(), PrintGeomSummary::addSolid(), ListIds::analyze(), DDG4SolidConverter::box(), MagGeoBuilderFromDDD::build(), ME0GeometryBuilderFromDDD10EtaPart::buildChamber(), GEMGeometryBuilderFromDDD::buildChamber(), CTPPSGeometryESModule::buildDetGeomDesc(), ME0GeometryBuilderFromDDD10EtaPart::buildEtaPartition(), GEMGeometryBuilderFromDDD::buildEtaPartition(), ME0GeometryParsFromDD::buildGeometry(), ME0GeometryBuilderFromDDD10EtaPart::buildGeometry(), GEMGeometryParsFromDD::buildGeometry(), ME0GeometryBuilderFromDDD::buildGeometry(), RPCGeometryBuilderFromDDD::buildGeometry(), RPCGeometryParsFromDD::buildGeometry(), GEMGeometryBuilderFromDDD::buildGeometry(), ME0GeometryBuilderFromDDD10EtaPart::buildLayer(), GEMGeometryBuilderFromDDD::buildSuperChamber(), DDDividedGeometryObject::checkNDivAndWidth(), DDG4SolidConverter::cons(), DDHCalBarrelAlgo::constructGeneralVolume(), DDHCalEndcapAlgo::constructGeneralVolume(), DDHCalBarrelAlgo::constructInsideDetectors(), DDHCalBarrelAlgo::constructInsideLayers(), DDHCalEndcapModuleAlgo::constructInsideModule(), DDHCalEndcapAlgo::constructInsideModule(), DDHCalEndcapModuleAlgo::constructInsideModule0(), DDHCalEndcapAlgo::constructInsideModule0(), DDHCalBarrelAlgo::constructInsideSector(), DDHCalEndcapAlgo::constructInsideSector(), DDAHcalModuleAlgo::constructLayers(), DDHGCalModuleAlgo::constructLayers(), DDHGCalTBModule::constructLayers(), DDHGCalModule::constructLayers(), DDHGCalEEAlgo::constructLayers(), DDHGCalHEAlgo::constructLayers(), DDHCalBarrelAlgo::constructMidLayer(), DDHCalEndcapModuleAlgo::constructScintLayer(), DDHCalEndcapAlgo::constructScintLayer(), DDHCalBarrelAlgo::constructSideLayer(), DDG4Builder::convertLV(), DDG4Builder::convertMaterial(), TGeoMgrFromDdd::createMaterial(), TGeoFromDddService::createMaterial(), TGeoMgrFromDdd::createShape(), TGeoFromDddService::createShape(), TGeoMgrFromDdd::createVolume(), TGeoFromDddService::createVolume(), DDG4SolidConverter::cuttubs(), DDBox::DDBox(), DDCheckAll(), DDCheckMaterial(), DDCheckPD(), DDCons::DDCons(), DDCutTubs::DDCutTubs(), DDEllipsoid::DDEllipsoid(), DDEllipticalTube::DDEllipticalTube(), DDExpandedViewDump(), DDExtrudedPolygon::DDExtrudedPolygon(), DDIntersection::DDIntersection(), DDMultiUnion::DDMultiUnion(), DDOrb::DDOrb(), DDParallelepiped::DDParallelepiped(), DDPolycone::DDPolycone(), DDPolyhedra::DDPolyhedra(), DDPseudoTrap::DDPseudoTrap(), DDShapelessSolid::DDShapelessSolid(), DDSphere::DDSphere(), DDSubtraction::DDSubtraction(), DDTorus::DDTorus(), DDTrap::DDTrap(), DDTruncTubs::DDTruncTubs(), DDTubs::DDTubs(), DDUnion::DDUnion(), HGCalSimHitValidation::defineGeometry(), DDMaterial::density(), validation.Sample::digest(), DDTECModuleAlgo::doPos(), DDG4SolidConverter::ellipsoid(), DDG4SolidConverter::ellipticaltube(), DDHCalTBCableAlgo::execute(), DDPixBarLayerAlgo::execute(), DDPixBarLayerUpgradeAlgo::execute(), DDTIBLayerAlgo_MTCC::execute(), DDTIDModuleAlgo::execute(), DDTIBLayerAlgo::execute(), DDTECModuleAlgo::execute(), DDEcalBarrelAlgo::execute(), DDEcalBarrelNewAlgo::execute(), DDG4SolidConverter::extrudedpolygon(), MuonDDDNumbering::getInt(), HcalTB06BeamSD::getNames(), MaterialBudgetHcalHistos::getNames(), HCalSD::getNames(), HCalSD::HCalSD(), HcalTB06BeamSD::HcalTB06BeamSD(), VIDSelectorBase.VIDSelectorBase::initialize(), DreamSD::initMap(), HcalTB02SD::initMap(), ECalSD::initMap(), DDG4SolidConverter::intersection(), HcalGeomParameters::loadGeometry(), HGCalGeomParameters::loadGeometryHexagon(), HGCalGeomParameters::loadGeometrySquare(), DDDividedTubsPhi::makeDDLogicalPart(), DDDividedTrdY::makeDDLogicalPart(), DDLDivision::makeDivider(), DDCompareEPV::operator()(), DDCompareCPV::operator()(), DDCompareLP::operator()(), DDCompareSolid::operator()(), DDCompareBoolSol::operator()(), DDCompareDDRot::operator()(), operator<<(), DDG4SolidConverter::orb(), DDG4SolidConverter::para(), DDG4SolidConverter::polycone_rrz(), DDG4SolidConverter::polycone_rz(), DDG4SolidConverter::polyhedra_rrz(), DDG4SolidConverter::polyhedra_rz(), DDG4SolidConverter::pseudotrap(), CocoaAnalyzer::ReadXMLFile(), DDG4SolidConverter::reflected(), DDG4SolidConverter::sphere(), DDG4SolidConverter::subtraction(), DDG4SolidConverter::torus(), DDG4SolidConverter::trap(), DDG4SolidConverter::trunctubs(), DDG4SolidConverter::tubs(), DDG4SolidConverter::unionsolid(), PrintGeomInfoAction::update(), DDBase< DDName, DDRotationMatrix * >::val(), Vispa.Views.PropertyView.Property::valueChanged(), MagGeoBuilderFromDDD::volumeHandle::volumeHandle(), DDEcalBarrelAlgo::web(), and DDEcalBarrelNewAlgo::web().

78 { return prep_->name(); }
const rep_traits< N, I >::name_type & name() const
Definition: rep_type.h:34
prep_type prep_
Definition: DDBase.h:126
template<class N, class C>
DDBase< N, C >::operator bool ( ) const
inline

Definition at line 102 of file DDBase.h.

102 { return isValid(); }
bool isValid() const
true, if the wrapped pointer is valid
Definition: DDBase.h:119
template<class N, class C>
bool DDBase< N, C >::operator< ( const DDBase< N, C > &  b) const
inline

Definition at line 104 of file DDBase.h.

104 { return prep_ < b.prep_; }
prep_type prep_
Definition: DDBase.h:126
template<class N, class C>
bool DDBase< N, C >::operator== ( const DDBase< N, C > &  b) const
inline

Definition at line 100 of file DDBase.h.

100 { return prep_ == b.prep_; }
prep_type prep_
Definition: DDBase.h:126
template<class N, class C>
bool DDBase< N, C >::operator> ( const DDBase< N, C > &  b) const
inline

Definition at line 105 of file DDBase.h.

105 { return prep_ > b.prep_; }
prep_type prep_
Definition: DDBase.h:126
template<class N, class C>
const DDI::rep_traits<N,C>::reference DDBase< N, C >::rep ( ) const
inline
template<class N, class C>
DDI::rep_traits<N,C>::reference DDBase< N, C >::rep ( )
inline

Definition at line 87 of file DDBase.h.

88  { return *(prep_->second); }
prep_type prep_
Definition: DDBase.h:126
template<class N, class C>
static size_t DDBase< N, C >::size ( void  )
inlinestatic

Definition at line 69 of file DDBase.h.

Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().

69 { return StoreT::instance().size(); }
static value_type & instance()
template<class N, class C>
std::string DDBase< N, C >::toString ( ) const
inline
template<class N, class C>
const DDI::rep_traits<N,C>::reference DDBase< N, C >::val ( ) const
inline

Definition at line 90 of file DDBase.h.

91  { if (!isValid()) throw cms::Exception("DDException") << "undefined: " << name();
92  return rep();
93  };
const DDI::rep_traits< N, C >::reference rep() const
Definition: DDBase.h:84
const N & name() const
Definition: DDBase.h:78
bool isValid() const
true, if the wrapped pointer is valid
Definition: DDBase.h:119
template<class N, class C>
const DDI::rep_traits<N,C>::reference DDBase< N, C >::val ( )
inline

Definition at line 95 of file DDBase.h.

96  { if (!isValid()) throw cms::Exception("DDException") << "undefined: " << name();
97  return rep();
98  };
const DDI::rep_traits< N, C >::reference rep() const
Definition: DDBase.h:84
const N & name() const
Definition: DDBase.h:78
bool isValid() const
true, if the wrapped pointer is valid
Definition: DDBase.h:119

Member Data Documentation

template<class N, class C>
prep_type DDBase< N, C >::prep_
protected