The ClassTreeMaskNode is a node in the internal tree of the ClassTreeMask, containing the rules of the mask.
More...
#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/libraries/core/ClassTreeMask.h>
The ClassTreeMaskNode is a node in the internal tree of the ClassTreeMask, containing the rules of the mask.
The ClassTreeMaskNode is used to store the rule (included or excluded) for a given class (described by the corresponding Identifier). The nodes are used in the internal tree of ClassTreeMask. To build a tree, they store a list of all subnodes.
orxonox::ClassTreeMaskNode::ClassTreeMaskNode |
( |
const Identifier * |
subclass, |
|
|
bool |
bIncluded = true |
|
) |
| |
Constructor: Creates the node, sets the subclass and the rule.
- Parameters
-
subclass | The subclass the rule refers to |
bIncluded | The rule: included (true) or excluded (false) |
orxonox::ClassTreeMaskNode::~ClassTreeMaskNode |
( |
| ) |
|
Destructor: Deletes all subnodes.
Adds a new subnode to the list of subnodes.
void orxonox::ClassTreeMaskNode::deleteAllSubnodes |
( |
| ) |
|
|
private |
Deletes all subnodes of this node.
void orxonox::ClassTreeMaskNode::exclude |
( |
bool |
overwrite = true | ) |
|
Sets the rule for the node to "excluded".
- Parameters
-
overwrite | True = overwrite previously added rules for inheriting classes |
const Identifier* orxonox::ClassTreeMaskNode::getClass |
( |
| ) |
const |
|
inline |
Returns the Identifier of the class the rule refers to.
bool orxonox::ClassTreeMaskNode::hasSubnodes |
( |
| ) |
const |
|
inline |
Returns true if the node has some subnodes.
void orxonox::ClassTreeMaskNode::include |
( |
bool |
overwrite = true | ) |
|
Sets the rule for the node to "included".
- Parameters
-
overwrite | True = overwrite previously added rules for inheriting classes |
bool orxonox::ClassTreeMaskNode::isExcluded |
( |
| ) |
const |
|
inline |
Tells if the rule is "excluded" or not.
bool orxonox::ClassTreeMaskNode::isIncluded |
( |
| ) |
const |
|
inline |
Tells if the rule is "included" or not.
void orxonox::ClassTreeMaskNode::setIncluded |
( |
bool |
bIncluded, |
|
|
bool |
overwrite = true |
|
) |
| |
Sets the rule for the node to a given value and erases all following rules.
- Parameters
-
bIncluded | The rule: included (true) or excluded (false) |
overwrite | True = overwrite previously added rules for inheriting classes |
bool orxonox::ClassTreeMaskNode::bIncluded_ |
|
private |
The rule: included or excluded.
const Identifier* orxonox::ClassTreeMaskNode::subclass_ |
|
private |
The Identifier of the subclass the rule refers to.
A list containing all subnodes of this node.
The documentation for this class was generated from the following files: