|
CodeSonar C++ API
|
Enumeration class describing the mode of a CodeSonar analysis process. More...
Public Member Functions | |
| csint64 | as_integer () const |
Get an integer representation of this. | |
| std::string | as_repr () const |
| Get a representation of a analysis_mode object that includes information useful for debugging. | |
| std::string | as_string () const |
| Get a simple string representation of a analysis_mode object. | |
| int | cmp (const analysis_mode &other) const |
| Comparison function for analysis_mode, with respect to a stable overall ordering. | |
| cs_hash_t | hash () const |
| Hash function for analysis_mode. | |
| std::string | name () const |
| Get the name of a analysis_mode object. | |
Static Public Member Functions | |
| static analysis_mode | from_integer (csint64 _inner) |
| Construct an instance from an integer representation. | |
Static Public Attributes | |
| static const analysis_mode | DAEMON |
| Indicates that the CodeSonar process is not analyzing anything - it is only running to service requests from the hub (for example, requests for source code listings). | |
| static const analysis_mode | INCREMENTAL |
| Indicates an incremental analysis: only new and otherwise-affected parts of the program are being analyzed; state associated with no-longer-present bits of the program may be deleted. | |
| static const analysis_mode | INITIALIZING |
| The CodeSonar process always starts in this state. | |
| static const analysis_mode | NORMAL |
Indicates a nonincremental analysis ( INCREMENTAL_BUILD =No) or base analysis ( INCREMENTAL_BUILD =Yes and no parent analysis). | |
Related Symbols | |
(Note that these are not member symbols.) | |
| bool | operator!= (const analysis_mode &a, const analysis_mode &b) |
| Inequality operator for analysis_mode. | |
| bool | operator< (const analysis_mode &a, const analysis_mode &b) |
| Less-than operator for analysis_mode. | |
| std::ostream & | operator<< (std::ostream &out, const analysis_mode &a) |
| Print a representation of a analysis_mode object to the specified stream. | |
| bool | operator<= (const analysis_mode &a, const analysis_mode &b) |
| Less-than-or-equal operator for analysis_mode. | |
| bool | operator== (const analysis_mode &a, const analysis_mode &b) |
| Equality operator for analysis_mode. | |
| bool | operator> (const analysis_mode &a, const analysis_mode &b) |
| Greater-than operator for analysis_mode. | |
| bool | operator>= (const analysis_mode &a, const analysis_mode &b) |
| Greater-than-or-equal operator for analysis_mode. | |
Enumeration class describing the mode of a CodeSonar analysis process.
analysis::get_mode() returns an object of this class.
|
inline |
Get an integer representation of this.
Invariant: For analysis_mode x, analysis_mode.from_integer(x.as_integer()) == x
|
inline |
Get a representation of a analysis_mode object that includes information useful for debugging.
|
inline |
Get a simple string representation of a analysis_mode object.
|
inline |
Comparison function for analysis_mode, with respect to a stable overall ordering.
| other | The analysis_mode 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 analysis_mode x, analysis_mode.from_integer(x.as_integer()) == x
| cs::result::ERROR_INVALID_ARGUMENT | if _inner is not a valid integer representation for a analysis_mode instance. |
|
inline |
Hash function for analysis_mode.
|
inline |
Get the name of a analysis_mode object.
|
related |
Inequality operator for analysis_mode.
| [in] | a | The analysis_mode object to compare. |
| [in] | b | The analysis_mode object to compare against. |
false if a and b are equal according to analysis_mode::cmp(), true otherwise.
|
related |
Less-than operator for analysis_mode.
| [in] | a | The analysis_mode object to compare. |
| [in] | b | The analysis_mode object to compare against. |
true if a < b according to analysis_mode::cmp() , false otherwise.
|
related |
Print a representation of a analysis_mode object to the specified stream.
| [in] | out | The stream to print to. |
| [in] | a | The analysis_mode object to print. |
|
related |
Less-than-or-equal operator for analysis_mode.
| [in] | a | The analysis_mode object to compare. |
| [in] | b | The analysis_mode object to compare against. |
true if a <= b according to analysis_mode::cmp() , false otherwise.
|
related |
Equality operator for analysis_mode.
| [in] | a | The analysis_mode object to compare. |
| [in] | b | The analysis_mode object to compare against. |
true if a and b are equal according to analysis_mode::cmp(), false otherwise.
|
related |
Greater-than operator for analysis_mode.
| [in] | a | The analysis_mode object to compare. |
| [in] | b | The analysis_mode object to compare against. |
true if a > b according to analysis_mode::cmp() , false otherwise.
|
related |
Greater-than-or-equal operator for analysis_mode.
| [in] | a | The analysis_mode object to compare. |
| [in] | b | The analysis_mode object to compare against. |
true if a >= b according to analysis_mode::cmp() , false otherwise.
|
static |
Indicates that the CodeSonar process is not analyzing anything - it is only running to service requests from the hub (for example, requests for source code listings).
|
static |
Indicates an incremental analysis: only new and otherwise-affected parts of the program are being analyzed; state associated with no-longer-present bits of the program may be deleted.
|
static |
The CodeSonar process always starts in this state.
If this value is returned by analysis::get_mode(), it means that the function call occurred too early to get useful information.
|
static |
Indicates a nonincremental analysis ( INCREMENTAL_BUILD =No) or base analysis ( INCREMENTAL_BUILD =Yes and no parent analysis).