|
CodeSonar C++ API
|
Flag class: specifies behavior during traversal with an ast_iterator. More...
Public Member Functions | |
| csint64 | as_integer () const |
Get an integer representation of this. | |
| std::string | as_repr () const |
| Get a representation of a ast_traverse_directives object that includes information useful for debugging. | |
| std::string | as_string () const |
| Get a simple string representation of a ast_traverse_directives object. | |
| int | cmp (const ast_traverse_directives &other) const |
| Comparison function for ast_traverse_directives, with respect to a stable overall ordering. | |
| cs_hash_t | hash () const |
| Hash function for ast_traverse_directives. | |
| std::string | name () const |
| Get the name of a ast_traverse_directives object. | |
| ast_traverse_directives & | operator&= (const ast_traverse_directives &other) |
| AND-assign operator. | |
| ast_traverse_directives & | operator|= (const ast_traverse_directives &other) |
| OR-assign operator. | |
| ast_traverse_directives | operator~ () const |
| Complementation operator. | |
Static Public Member Functions | |
| static ast_traverse_directives | from_integer (csint64 _inner) |
| Construct an instance from an integer representation. | |
Static Public Attributes | |
| static const ast_traverse_directives | NONE |
| No directives set. | |
| static const ast_traverse_directives | SKIP_CHILDREN |
| Skip the children of the current node, but continue with remainder of traversal. | |
Flag class: specifies behavior during traversal with an ast_iterator.
Apply with ast_iterator::apply_directives() at any point during traversal.
|
inline |
Get an integer representation of this.
Invariant: For ast_traverse_directives x, ast_traverse_directives.from_integer(x.as_integer()) == x
|
inline |
Get a representation of a ast_traverse_directives object that includes information useful for debugging.
|
inline |
Get a simple string representation of a ast_traverse_directives object.
|
inline |
Comparison function for ast_traverse_directives, with respect to a stable overall ordering.
| other | The ast_traverse_directives object to compare against. |
this < other this > other
|
inlinestatic |
Construct an instance from an integer representation.
| [in] | _inner | The integer representation, as returned by as_integer(). |
Invariant: For ast_traverse_directives x, ast_traverse_directives.from_integer(x.as_integer()) == x
| cs::result::ERROR_INVALID_ARGUMENT | if _inner is not a valid integer representation for a ast_traverse_directives instance. |
|
inline |
Hash function for ast_traverse_directives.
|
inline |
Get the name of a ast_traverse_directives object.
|
inline |
AND-assign operator.
this and other.
|
inline |
OR-assign operator.
this, other, or both.
|
inline |
Complementation operator.
this.
|
related |
Inequality operator for ast_traverse_directives.
| [in] | a | The ast_traverse_directives object to compare. |
| [in] | b | The ast_traverse_directives object to compare against. |
false if a and b are equal according to ast_traverse_directives::cmp(), true otherwise.
|
related |
AND operator for ast_traverse_directives.
| [in] | a | AND operand. |
| [in] | b | AND operand. |
a and b.
|
related |
Less-than operator for ast_traverse_directives.
| [in] | a | The ast_traverse_directives object to compare. |
| [in] | b | The ast_traverse_directives object to compare against. |
true if a < b according to ast_traverse_directives::cmp() , false otherwise.
|
related |
Print a representation of a ast_traverse_directives object to the specified stream.
| [in] | out | The stream to print to. |
| [in] | a | The ast_traverse_directives object to print. |
|
related |
Less-than-or-equal operator for ast_traverse_directives.
| [in] | a | The ast_traverse_directives object to compare. |
| [in] | b | The ast_traverse_directives object to compare against. |
true if a <= b according to ast_traverse_directives::cmp() , false otherwise.
|
related |
Equality operator for ast_traverse_directives.
| [in] | a | The ast_traverse_directives object to compare. |
| [in] | b | The ast_traverse_directives object to compare against. |
true if a and b are equal according to ast_traverse_directives::cmp(), false otherwise.
|
related |
Greater-than operator for ast_traverse_directives.
| [in] | a | The ast_traverse_directives object to compare. |
| [in] | b | The ast_traverse_directives object to compare against. |
true if a > b according to ast_traverse_directives::cmp() , false otherwise.
|
related |
Greater-than-or-equal operator for ast_traverse_directives.
| [in] | a | The ast_traverse_directives object to compare. |
| [in] | b | The ast_traverse_directives object to compare against. |
true if a >= b according to ast_traverse_directives::cmp() , false otherwise.
|
related |
OR operator for ast_traverse_directives.
| [in] | a | OR operand. |
| [in] | b | OR operand. |
a, b.
|
static |
No directives set.
|
static |
Skip the children of the current node, but continue with remainder of traversal.