|
CodeSonar C++ API
|
Enumeration class for AST family. 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_family object that includes information useful for debugging. | |
| std::string | as_string () const |
| Get a simple string representation of a ast_family object. | |
| int | cmp (const ast_family &other) const |
| Comparison function for ast_family, with respect to a stable overall ordering. | |
| cs_hash_t | hash () const |
| Hash function for ast_family. | |
| std::string | name () const |
| Get the name of a ast_family object. | |
Static Public Member Functions | |
| static ast_family | from_integer (csint64 _inner) |
| Construct an instance from an integer representation. | |
Static Public Attributes | |
| static const ast_family | C_NORMALIZED |
| Normalized C/C++ AST. | |
| static const ast_family | C_UNNORMALIZED |
| Unnormalized C/C++ AST. | |
| static const ast_family | DEFAULT |
| Represents the first AST family, whatever it might be. | |
Related Symbols | |
(Note that these are not member symbols.) | |
| bool | operator!= (const ast_family &a, const ast_family &b) |
| Inequality operator for ast_family. | |
| bool | operator< (const ast_family &a, const ast_family &b) |
| Less-than operator for ast_family. | |
| std::ostream & | operator<< (std::ostream &out, const ast_family &a) |
| Print a representation of a ast_family object to the specified stream. | |
| bool | operator<= (const ast_family &a, const ast_family &b) |
| Less-than-or-equal operator for ast_family. | |
| bool | operator== (const ast_family &a, const ast_family &b) |
| Equality operator for ast_family. | |
| bool | operator> (const ast_family &a, const ast_family &b) |
| Greater-than operator for ast_family. | |
| bool | operator>= (const ast_family &a, const ast_family &b) |
| Greater-than-or-equal operator for ast_family. | |
Enumeration class for AST family.
Each language dependent AST module will define its own AST families.
|
inline |
Get an integer representation of this.
Invariant: For ast_family x, ast_family.from_integer(x.as_integer()) == x
|
inline |
Get a representation of a ast_family object that includes information useful for debugging.
|
inline |
Get a simple string representation of a ast_family object.
|
inline |
Comparison function for ast_family, with respect to a stable overall ordering.
| other | The ast_family 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_family x, ast_family.from_integer(x.as_integer()) == x
| cs::result::ERROR_INVALID_ARGUMENT | if _inner is not a valid integer representation for a ast_family instance. |
|
inline |
Hash function for ast_family.
|
inline |
Get the name of a ast_family object.
|
related |
Inequality operator for ast_family.
| [in] | a | The ast_family object to compare. |
| [in] | b | The ast_family object to compare against. |
false if a and b are equal according to ast_family::cmp(), true otherwise.
|
related |
Less-than operator for ast_family.
| [in] | a | The ast_family object to compare. |
| [in] | b | The ast_family object to compare against. |
true if a < b according to ast_family::cmp() , false otherwise.
|
related |
Print a representation of a ast_family object to the specified stream.
| [in] | out | The stream to print to. |
| [in] | a | The ast_family object to print. |
|
related |
Less-than-or-equal operator for ast_family.
| [in] | a | The ast_family object to compare. |
| [in] | b | The ast_family object to compare against. |
true if a <= b according to ast_family::cmp() , false otherwise.
|
related |
Equality operator for ast_family.
| [in] | a | The ast_family object to compare. |
| [in] | b | The ast_family object to compare against. |
true if a and b are equal according to ast_family::cmp(), false otherwise.
|
related |
Greater-than operator for ast_family.
| [in] | a | The ast_family object to compare. |
| [in] | b | The ast_family object to compare against. |
true if a > b according to ast_family::cmp() , false otherwise.
|
related |
Greater-than-or-equal operator for ast_family.
| [in] | a | The ast_family object to compare. |
| [in] | b | The ast_family object to compare against. |
true if a >= b according to ast_family::cmp() , false otherwise.
|
static |
Normalized C/C++ AST.
|
static |
Unnormalized C/C++ AST.
|
static |
Represents the first AST family, whatever it might be.
Used as a default in the API if the user does not specify a particular family.