The DDGenericFilter is a runtime-parametrized Filter looking on DDSpecifcs. More...
#include <DDFilter.h>
Classes | |
struct | SpecificCriterion |
Public Types | |
enum | comp_op { equals, matches, not_equals, not_matches, smaller, bigger, smaller_equals, bigger_equals } |
enum | log_op { AND, OR } |
logical operations to obtain one result from two filter comparisons More... | |
Public Member Functions | |
bool | accept (const DDExpandedView &) const |
true, if the DDExpandedNode fulfills the filter criteria More... | |
DDSpecificsFilter () | |
void | setCriteria (const DDValue &nameVal, comp_op, log_op l=AND, bool asString=true, bool merged=true) |
~DDSpecificsFilter () | |
Public Member Functions inherited from DDFilter | |
DDFilter () | |
virtual | ~DDFilter () |
Protected Types | |
typedef std::vector < criterion_type > | criteria_type |
typedef SpecificCriterion | criterion_type |
typedef std::vector< log_op > | logops_type |
Protected Member Functions | |
bool | accept_impl (const DDExpandedView &) const |
Protected Attributes | |
criteria_type | criteria_ |
logops_type | logOps_ |
Friends | |
std::ostream & | operator<< (std::ostream &os, const DDSpecificsFilter &f) |
The DDGenericFilter is a runtime-parametrized Filter looking on DDSpecifcs.
Definition at line 37 of file DDFilter.h.
|
protected |
Definition at line 86 of file DDFilter.h.
|
protected |
Definition at line 85 of file DDFilter.h.
|
protected |
Definition at line 87 of file DDFilter.h.
comparison operators to be used with this filter
Enumerator | |
---|---|
equals | |
matches | |
not_equals | |
not_matches | |
smaller | |
bigger | |
smaller_equals | |
bigger_equals |
Definition at line 45 of file DDFilter.h.
logical operations to obtain one result from two filter comparisons
Enumerator | |
---|---|
AND | |
OR |
Definition at line 48 of file DDFilter.h.
DDSpecificsFilter::DDSpecificsFilter | ( | ) |
Definition at line 278 of file DDFilter.cc.
DDSpecificsFilter::~DDSpecificsFilter | ( | ) |
Definition at line 282 of file DDFilter.cc.
|
virtual |
true, if the DDExpandedNode fulfills the filter criteria
Implements DDFilter.
Definition at line 296 of file DDFilter.cc.
References accept_impl().
Referenced by Vispa.Gui.BoxContentDialog.BoxContentDialog::apply(), and Vispa.Plugins.ConfigEditor.ToolDialog.ToolDialog::apply().
|
protected |
Definition at line 302 of file DDFilter.cc.
References AND, criteria_, DDLogicalPart::hasDDValue(), DDExpandedView::logicalPart(), logOps_, DDExpandedView::mergedSpecificsV(), OR, query::result, and DDExpandedView::specificsV().
Referenced by accept().
void DDSpecificsFilter::setCriteria | ( | const DDValue & | nameVal, |
comp_op | op, | ||
log_op | l = AND , |
||
bool | asString = true , |
||
bool | merged = true |
||
) |
Definition at line 285 of file DDFilter.cc.
References criteria_, and logOps_.
Referenced by ListGroups::analyze(), ListIds::analyze(), RPCGeometryParsFromDD::build(), RPCGeometryBuilderFromDDD::build(), CSCGeometryParsFromDD::build(), DTGeometryBuilderFromDDD::build(), DTGeometryParsFromDD::build(), CaloTrkProcessing::CaloTrkProcessing(), DDDCmsTrackerContruction::construct(), DTGeometryParserFromDDD::DTGeometryParserFromDDD(), ECalSD::ECalSD(), MaterialBudgetHcalHistos::fillBeginJob(), EcalTBHodoscopeGeometryLoaderFromDDD::getDDFilter(), HCalSD::HCalSD(), HcalTB06BeamSD::HcalTB06BeamSD(), HFFibre::HFFibre(), HFShower::HFShower(), HFShowerFibreBundle::HFShowerFibreBundle(), HFShowerLibrary::HFShowerLibrary(), HFShowerParam::HFShowerParam(), HFShowerPMT::HFShowerPMT(), HcalNumberingFromDDD::initialize(), DreamSD::initMap(), ECalSD::initMap(), HcalTB02SD::initMap(), MaterialAccountingGroup::MaterialAccountingGroup(), MuonDDDConstants::MuonDDDConstants(), CocoaAnalyzer::ReadXMLFile(), and PrintGeomInfoAction::update().
|
friend |
|
protected |
Definition at line 89 of file DDFilter.h.
Referenced by accept_impl(), and setCriteria().
|
protected |
Definition at line 90 of file DDFilter.h.
Referenced by accept_impl(), and setCriteria().