21 typedef std::map<nav_type,int>::iterator m_it;
40 typedef std::map<nav_type,int>::iterator m_it;
73 std::map<nav_type,int>::const_iterator it =
path2id_.find(n);
89 edm::LogError(
"DDNumberingScheme") <<
"DDDefaultNumberingScheme::node(int,DDFilteredView&) NOT IMPLEMENTED!"
99 if ( (
id>=(
int)
id2path_.size()) || (
id < 0) )
103 std::map<nav_type,int>::iterator it =
id2path_[pos];
bool next()
set current node to the next node in the expanded tree
DDNumberingScheme::nav_type idToNavType(int id) const
std::map< nav_type, int > path2id_
virtual bool node(int id, DDExpandedView &view) const
calculate the node given an id
virtual ~DDDefaultNumberingScheme()
virtual ~DDNumberingScheme()
nav_type navPos() const
return the stack of sibling numbers
std::vector< int > nav_type
nav_type navPos() const
return the stack of sibling numbers which indicates the current position in the DDExpandedView ...
bool goTo(const nav_type &)
virtual int id(const DDExpandedView &) const
calculate the id of a given node
bool next()
set current node to the next node in the filtered tree
DDNumberingScheme::nav_type nav_type
void reset()
true, if a call to firstChild() would succeed (current node has at least one child) ...
std::vector< std::map< nav_type, int >::iterator > id2path_
bool goTo(const nav_type &)
transversed the DDExpandedView according to the given stack of sibling numbers
void reset()
clears the scope and sets the filtered view to its root-node
Provides an exploded view of the detector (tree-view)
DDDefaultNumberingScheme(const DDExpandedView &e)