#include <CBTree.h>
|
| CBTree () |
|
| ~CBTree () |
|
| CBTree (const CBTree &)=delete |
|
CBTree & | operator= (const CBTree &)=delete |
|
CBNode * | addNode (const std::string &name, CBNode *parent) |
|
CBNode * | addNode (const SG::DataProxy *proxy, const std::string &name) |
|
CBNode * | addNode (BFCN *fcn, const CallBackID &cb, const SG::DataProxy *parent_proxy) |
|
CBNode * | addNode (BFCN *fcn, const CallBackID &cb, BFCN *parent_fcn) |
|
CBNode * | replaceProxy (const SG::DataProxy *pOld, const SG::DataProxy *pNew) |
|
void | connectNode (CBNode *node, CBNode *parent) |
|
void | connectNode (const std::string &name, CBNode *parent) |
|
CBNode * | findNode (const std::string &name) |
|
CBNode * | findNode (const std::string &name, CBNode *start) |
|
CBNode * | findNode (const SG::DataProxy *proxy) |
|
CBNode * | findNode (const SG::DataProxy *proxy, CBNode *start) |
|
CBNode * | findNode (BFCN *fcn) |
|
CBNode * | findNode (BFCN *fcn, CBNode *start) |
|
bool | delNode (const SG::DataProxy *prx) |
|
void | printTree () const |
|
void | printTree (const CBNode *start) const |
|
int | maxLevel () const |
|
void | adjustLevels (CBNode *start) |
|
void | listNodes () const |
|
void | listNodes (const int &level, nodeSet::const_iterator &start, nodeSet::const_iterator &end) const |
|
void | cascadeTrigger (const bool b, CBNode *start) |
|
void | cascadeTrigger (const bool b, BFCN *fcn) |
|
void | cascadeTrigger (const bool b, const SG::DataProxy *proxy) |
|
void | clearTrigger () const |
|
void | cascadeFlag (const bool b, CBNode *node) const |
|
void | clearFlag () const |
|
void | traverse (void(*pF)(const CBNode *)) const |
|
void | traverse (const CBNode *, void(*pF)(const CBNode *)) const |
|
void | traverseR (const CBNode *, void(*pF)(const CBNode *)) const |
|
const CBNode * | traverse (const CBNode *(*pF)(const CBNode *)) const |
|
const CBNode * | traverse (const CBNode *, const CBNode *(*pF)(const CBNode *)) const |
|
const CBNode * | traverseR (const CBNode *, const CBNode *(*pF)(const CBNode *)) const |
|
void | traverse (void(*pF)(const CBNode *, const CBNode *)) const |
|
void | traverse (const CBNode *, const CBNode *, void(*pF)(const CBNode *, const CBNode *)) const |
|
void | traverseR (const CBNode *, const CBNode *, void(*pF)(const CBNode *, const CBNode *)) const |
|
Definition at line 30 of file CBTree.h.
◆ BFCN
◆ nodeSet
◆ CBTree() [1/2]
◆ ~CBTree()
◆ CBTree() [2/2]
◆ _printTree()
Definition at line 294 of file CBTree.cxx.
305 for (
int i=0;
i<lp; ++
i) {
320 cout <<
"[93;1m" <<
current->name() <<
"[m";
◆ addNode() [1/4]
Definition at line 96 of file CBTree.cxx.
101 cout <<
"ERROR: no parent function found in tree for " << parent_fcn
◆ addNode() [2/4]
Definition at line 77 of file CBTree.cxx.
83 cout <<
"ERROR: no parent proxy found in tree for " <<
proxy->name()
◆ addNode() [3/4]
◆ addNode() [4/4]
◆ adjustLevels()
void CBTree::adjustLevels |
( |
CBNode * |
start | ) |
|
◆ cascadeFlag()
void CBTree::cascadeFlag |
( |
const bool |
b, |
|
|
CBNode * |
node |
|
) |
| const |
◆ cascadeTrigger() [1/3]
void CBTree::cascadeTrigger |
( |
const bool |
b, |
|
|
BFCN * |
fcn |
|
) |
| |
Definition at line 389 of file CBTree.cxx.
393 cout <<
"ERROR cascading trigger from fcn: " << fcn << endl;
◆ cascadeTrigger() [2/3]
void CBTree::cascadeTrigger |
( |
const bool |
b, |
|
|
CBNode * |
start |
|
) |
| |
◆ cascadeTrigger() [3/3]
Definition at line 403 of file CBTree.cxx.
407 cout <<
"ERROR cascading trigger from proxy: " <<
proxy->name() << endl;
◆ clearFlag()
void CBTree::clearFlag |
( |
| ) |
const |
Definition at line 442 of file CBTree.cxx.
443 nodeSet::const_iterator itr;
445 (*itr)->setFlag(
false);
◆ clearTrigger()
void CBTree::clearTrigger |
( |
| ) |
const |
Definition at line 417 of file CBTree.cxx.
419 nodeSet::const_iterator itr;
421 (*itr)->setTrigger(
false);
◆ connectNode() [1/2]
Definition at line 144 of file CBTree.cxx.
149 cout <<
"ERROR: cannot connect " <<
node->
name() <<
" to "
150 <<
parent->name() <<
" as a loop would be formed"
◆ connectNode() [2/2]
void CBTree::connectNode |
( |
const std::string & |
name, |
|
|
CBNode * |
parent |
|
) |
| |
◆ delNode()
Definition at line 114 of file CBTree.cxx.
117 cout <<
"ERROR: no node with DataProxy " << prx->
name() <<
" found in tree"
123 for (
auto p :
n->parents() ) {
124 if (!
p->delChild(
n )) {
125 cout <<
"ERROR: CBTree::delNode : unable to delete child "
126 <<
n->name() <<
" from parent " <<
p->name() << endl;
131 for (
auto c :
n->children()) {
132 if (!
c->delParent(
n )) {
133 cout <<
"ERROR: CBTree::delNode : unable to delete parent "
134 <<
n->name() <<
" from child " <<
c->name() << endl;
◆ findNode() [1/6]
◆ findNode() [2/6]
Definition at line 217 of file CBTree.cxx.
219 if (
start->fcn() == fcn) {
224 std::set<CBNode*>::const_iterator citr =
start->children().begin();
225 for (; citr !=
start->children().
end(); ++citr) {
◆ findNode() [3/6]
◆ findNode() [4/6]
◆ findNode() [5/6]
◆ findNode() [6/6]
Definition at line 244 of file CBTree.cxx.
251 std::set<CBNode*>::const_iterator citr =
start->children().begin();
252 for (; citr !=
start->children().
end(); ++citr) {
◆ listNodes() [1/2]
void CBTree::listNodes |
( |
| ) |
const |
Definition at line 337 of file CBTree.cxx.
338 nodeSet::const_iterator citr =
m_allNodes.begin();
340 cout << (*citr)->name() <<
" " << *citr <<
" " << (*citr)->level()
341 <<
" " << (*citr)->trigger() << endl;
◆ listNodes() [2/2]
void CBTree::listNodes |
( |
const int & |
level, |
|
|
nodeSet::const_iterator & |
start, |
|
|
nodeSet::const_iterator & |
end |
|
) |
| const |
Definition at line 347 of file CBTree.cxx.
356 nodeSet::const_iterator citr =
m_allNodes.begin();
358 if (!
s && (*citr)->level() ==
level) {
363 if (
s && (*citr)->level() !=
level) {
◆ maxLevel()
int CBTree::maxLevel |
( |
| ) |
const |
Definition at line 329 of file CBTree.cxx.
330 nodeSet::const_iterator itr =
m_allNodes.end();
332 return (*itr)->level();
◆ operator=()
◆ printTree() [1/2]
void CBTree::printTree |
( |
| ) |
const |
◆ printTree() [2/2]
◆ replaceProxy()
Definition at line 55 of file CBTree.cxx.
59 if (0 !=
n)
n->setProxy(pNew);
◆ traverse() [1/6]
◆ traverse() [2/6]
◆ traverse() [3/6]
◆ traverse() [4/6]
◆ traverse() [5/6]
void CBTree::traverse |
( |
void(*)(const CBNode *) |
pF | ) |
const |
◆ traverse() [6/6]
◆ traverseR() [1/3]
◆ traverseR() [2/3]
◆ traverseR() [3/3]
◆ m_allNodes
◆ m_root
The documentation for this class was generated from the following files: