CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
DDI::Specific Class Reference

#include <Specific.h>

Public Member Functions

std::pair< bool, DDExpandedViewnode () const
 gives the geometrical history of a fully specified PartSelector More...
 
const std::vector
< DDPartSelection > & 
selection () const
 
 Specific (const std::vector< std::string > &selections, const DDsvalues_type &specs, bool doRegex=true)
 
 Specific (const std::vector< DDPartSelection > &selections, const DDsvalues_type &specs)
 
const DDsvalues_typespecifics () const
 
void stream (std::ostream &) const
 
void tokenize ()
 
void updateLogicalPart (std::vector< std::pair< DDLogicalPart, std::pair< const DDPartSelection *, const DDsvalues_type * > > > &) const
 
 ~Specific ()
 

Protected Member Functions

void addSelectionLevel (std::vector< DDLogicalPart > &lpv, int copyno, ddselection_type st, std::vector< DDPartSelection > &selv)
 
void createPartSelections (const std::string &selString)
 

Protected Attributes

bool doRegex_
 
std::vector< DDPartSelectionpartSelections_
 
DDsvalues_type specifics_
 
bool valid_
 

Detailed Description

Definition at line 19 of file Specific.h.

Constructor & Destructor Documentation

DDI::Specific::Specific ( const std::vector< std::string > &  selections,
const DDsvalues_type specs,
bool  doRegex = true 
)

Definition at line 8 of file Specific.cc.

DDI::Specific::Specific ( const std::vector< DDPartSelection > &  selections,
const DDsvalues_type specs 
)

Definition at line 21 of file Specific.cc.

DDI::Specific::~Specific ( )
inline

Definition at line 29 of file Specific.h.

29 { }

Member Function Documentation

void DDI::Specific::addSelectionLevel ( std::vector< DDLogicalPart > &  lpv,
int  copyno,
ddselection_type  st,
std::vector< DDPartSelection > &  selv 
)
protected

Definition at line 54 of file Specific.cc.

void DDI::Specific::createPartSelections ( const std::string &  selString)
protected

Definition at line 26 of file Specific.cc.

std::pair< bool, DDExpandedView > DDI::Specific::node ( ) const

gives the geometrical history of a fully specified PartSelector

node() will only work, if

  • there is only one PartSelection std::string
  • the PartSelection std::string specifies exactly one full path concatenating always direct children including their copy-number and will return (true,const DDGeoHistory&) if the std::string matches an expanded-part in the ExpandedView, else it will return (false, xxx), whereas xxx is a history which is not valid.

Definition at line 134 of file Specific.cc.

const std::vector< DDPartSelection > & DDI::Specific::selection ( ) const
const DDsvalues_type& DDI::Specific::specifics ( void  ) const
inline

Definition at line 37 of file Specific.h.

References specifics_.

37 { return specifics_; }
DDsvalues_type specifics_
Definition: Specific.h:47
void DDI::Specific::stream ( std::ostream &  os) const

Definition at line 86 of file Specific.cc.

void DDI::Specific::tokenize ( )
void DDI::Specific::updateLogicalPart ( std::vector< std::pair< DDLogicalPart, std::pair< const DDPartSelection *, const DDsvalues_type * > > > &  result) const

Definition at line 111 of file Specific.cc.

Member Data Documentation

bool DDI::Specific::doRegex_
protected

Definition at line 50 of file Specific.h.

std::vector<DDPartSelection> DDI::Specific::partSelections_
protected

Definition at line 48 of file Specific.h.

DDsvalues_type DDI::Specific::specifics_
protected

Definition at line 47 of file Specific.h.

Referenced by specifics().

bool DDI::Specific::valid_
protected

Definition at line 49 of file Specific.h.