Default numbering scheme. More...
#include <DDNumberingScheme.h>
Public Types | |
typedef DDNumberingScheme::nav_type | nav_type |
Public Types inherited from DDNumberingScheme | |
typedef std::vector< int > | nav_type |
Public Member Functions | |
DDDefaultNumberingScheme (const DDExpandedView &e) | |
DDDefaultNumberingScheme (const DDFilteredView &f) | |
virtual int | id (const DDExpandedView &) const |
calculate the id of a given node More... | |
virtual int | id (const DDNumberingScheme::nav_type &) const |
calculate the id of a given node More... | |
virtual int | id (const DDFilteredView &) const |
calculate the id of a given node More... | |
virtual bool | node (int id, DDExpandedView &view) const |
calculate the node given an id More... | |
virtual bool | node (int id, DDFilteredView &view) const |
calculate the node given an id More... | |
virtual | ~DDDefaultNumberingScheme () |
Public Member Functions inherited from DDNumberingScheme | |
virtual | ~DDNumberingScheme () |
Protected Member Functions | |
DDNumberingScheme::nav_type | idToNavType (int id) const |
Protected Attributes | |
std::vector< std::map < nav_type, int >::iterator > | id2path_ |
std::map< nav_type, int > | path2id_ |
Default numbering scheme.
implements a default - numbering scheme throws an DDException when it fails ...
Definition at line 54 of file DDNumberingScheme.h.
Definition at line 57 of file DDNumberingScheme.h.
DDDefaultNumberingScheme::DDDefaultNumberingScheme | ( | const DDExpandedView & | e | ) |
Definition at line 11 of file DDNumberingScheme.cc.
References prof2calltree::count, alignCSCRings::e, id2path_, DDExpandedView::navPos(), DDExpandedView::next(), path2id_, and DDExpandedView::reset().
DDDefaultNumberingScheme::DDDefaultNumberingScheme | ( | const DDFilteredView & | f | ) |
Definition at line 36 of file DDNumberingScheme.cc.
References prof2calltree::count, f, id2path_, DDFilteredView::navPos(), DDFilteredView::next(), path2id_, and DDFilteredView::reset().
|
virtual |
Definition at line 55 of file DDNumberingScheme.cc.
|
virtual |
calculate the id of a given node
Implements DDNumberingScheme.
Definition at line 59 of file DDNumberingScheme.cc.
References DDExpandedView::navPos().
Referenced by id(), and idToNavType().
|
virtual |
calculate the id of a given node
Implements DDNumberingScheme.
Definition at line 71 of file DDNumberingScheme.cc.
References path2id_, and query::result.
|
virtual |
calculate the id of a given node
Implements DDNumberingScheme.
Definition at line 65 of file DDNumberingScheme.cc.
References id(), and DDFilteredView::navPos().
|
protected |
Definition at line 95 of file DDNumberingScheme.cc.
References id(), id2path_, and query::result.
Referenced by node().
|
virtual |
calculate the node given an id
returns true, if a node was found. view then corresponds to this node.
Implements DDNumberingScheme.
Definition at line 81 of file DDNumberingScheme.cc.
References DDExpandedView::goTo(), and idToNavType().
|
virtual |
calculate the node given an id
returns true, if a node was found. view then corresponds to this node.
Implements DDNumberingScheme.
Definition at line 87 of file DDNumberingScheme.cc.
References DDFilteredView::goTo(), and idToNavType().
|
protected |
Definition at line 88 of file DDNumberingScheme.h.
Referenced by DDDefaultNumberingScheme(), and idToNavType().
|
protected |
Definition at line 87 of file DDNumberingScheme.h.
Referenced by DDDefaultNumberingScheme(), and id().