CodeSonar C++ API
[For improved navigation, enable JavaScript.]
Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | Related Functions | List of all members
cs::procedure_call_sites_flags Class Reference

Flag class: specifies call site types. More...

Public Member Functions

csint64 as_integer () const
 Get an integer representation of this. More...
 
std::string as_repr () const
 Get a representation of a procedure_call_sites_flags object that includes information useful for debugging. More...
 
std::string as_string () const
 Get a simple string representation of a procedure_call_sites_flags object. More...
 
int cmp (const procedure_call_sites_flags &other) const
 Comparison function for procedure_call_sites_flags, with respect to a stable overall ordering. More...
 
cs_hash_t hash () const
 Hash function for procedure_call_sites_flags. More...
 
std::string name () const
 Get the name of a procedure_call_sites_flags object. More...
 
procedure_call_sites_flagsoperator &= (const procedure_call_sites_flags &other)
 AND-assign operator. More...
 
procedure_call_sites_flagsoperator|= (const procedure_call_sites_flags &other)
 OR-assign operator. More...
 
procedure_call_sites_flags operator~ () const
 Complementation operator. More...
 

Static Public Member Functions

static procedure_call_sites_flags from_integer (csint64 _inner)
 Construct an instance from an integer representation. More...
 

Static Public Attributes

static const procedure_call_sites_flags DIRECT
 Singleton set containing the "direct call sites" flag: points of kind point_kind::CALL_SITE are of interest.
 
static const procedure_call_sites_flags INDIRECT
 Singleton set containing the "indirect call sites" flag: points of kind point_kind::INDIRECT_CALL are of interest.
 
static const procedure_call_sites_flags NONE
 Empty set: contains no flags. More...
 

Friends

procedure_call_sites_flags operator & (const procedure_call_sites_flags &a, const procedure_call_sites_flags &b)
 
procedure_call_sites_flags operator| (const procedure_call_sites_flags &a, const procedure_call_sites_flags &b)
 

Related Functions

(Note that these are not member functions.)

bool operator!= (const procedure_call_sites_flags &a, const procedure_call_sites_flags &b)
 Inequality operator for procedure_call_sites_flags. More...
 
procedure_call_sites_flags operator& (const procedure_call_sites_flags &a, const procedure_call_sites_flags &b)
 AND operator for procedure_call_sites_flags. More...
 
bool operator< (const procedure_call_sites_flags &a, const procedure_call_sites_flags &b)
 Less-than operator for procedure_call_sites_flags. More...
 
std::ostream & operator<< (std::ostream &out, const procedure_call_sites_flags &a)
 Print a representation of a procedure_call_sites_flags object to the specified stream. More...
 
bool operator<= (const procedure_call_sites_flags &a, const procedure_call_sites_flags &b)
 Less-than-or-equal operator for procedure_call_sites_flags. More...
 
bool operator== (const procedure_call_sites_flags &a, const procedure_call_sites_flags &b)
 Equality operator for procedure_call_sites_flags. More...
 
bool operator> (const procedure_call_sites_flags &a, const procedure_call_sites_flags &b)
 Greater-than operator for procedure_call_sites_flags. More...
 
bool operator>= (const procedure_call_sites_flags &a, const procedure_call_sites_flags &b)
 Greater-than-or-equal operator for procedure_call_sites_flags. More...
 
procedure_call_sites_flags operator| (const procedure_call_sites_flags &a, const procedure_call_sites_flags &b)
 OR operator for procedure_call_sites_flags. More...
 

Detailed Description

Flag class: specifies call site types.

Used as an argument to the following procedure methods to specify the call site kind or kinds of interest.

Member Function Documentation

◆ as_integer()

csint64 cs::procedure_call_sites_flags::as_integer ( ) const
inline

Get an integer representation of this.

Returns
An integer suitable for use with from_integer(). Invariant: For procedure_call_sites_flags x, procedure_call_sites_flags.from_integer(x.as_integer()) == x

◆ as_repr()

std::string cs::procedure_call_sites_flags::as_repr ( ) const
inline

Get a representation of a procedure_call_sites_flags object that includes information useful for debugging.

Returns
The string representation.

◆ as_string()

std::string cs::procedure_call_sites_flags::as_string ( ) const
inline

Get a simple string representation of a procedure_call_sites_flags object.

Returns
The string representation.

◆ cmp()

int cs::procedure_call_sites_flags::cmp ( const procedure_call_sites_flags other) const
inline

Comparison function for procedure_call_sites_flags, with respect to a stable overall ordering.

Parameters
otherThe procedure_call_sites_flags object to compare against.
Returns
An integer N such that:
  • N==0 if the two objects compare equal
  • N<0 if this < other
  • N>0 if this > other

◆ from_integer()

static procedure_call_sites_flags cs::procedure_call_sites_flags::from_integer ( csint64  _inner)
inlinestatic

Construct an instance from an integer representation.

Parameters
[in]_innerThe integer representation, as returned by as_integer(). Invariant: For procedure_call_sites_flags x, procedure_call_sites_flags.from_integer(x.as_integer()) == x
Exceptions
cs::result::ERROR_INVALID_ARGUMENTif _inner is not a valid integer representation for a procedure_call_sites_flags instance.

◆ hash()

cs_hash_t cs::procedure_call_sites_flags::hash ( ) const
inline

Hash function for procedure_call_sites_flags.

◆ name()

std::string cs::procedure_call_sites_flags::name ( ) const
inline

Get the name of a procedure_call_sites_flags object.

◆ operator &=()

procedure_call_sites_flags& cs::procedure_call_sites_flags::operator&= ( const procedure_call_sites_flags other)
inline

AND-assign operator.

Returns
A procedure_call_sites_flags object containing the flags that are contained in both this and other.

◆ operator|=()

procedure_call_sites_flags& cs::procedure_call_sites_flags::operator|= ( const procedure_call_sites_flags other)
inline

OR-assign operator.

Returns
A procedure_call_sites_flags object containing the flags that are contained in this, other, or both.

◆ operator~()

procedure_call_sites_flags cs::procedure_call_sites_flags::operator~ ( ) const
inline

Complementation operator.

Returns
A procedure_call_sites_flags object containing the flags that are NOT contained in this.

Friends And Related Function Documentation

◆ operator!=()

bool operator!= ( const procedure_call_sites_flags a,
const procedure_call_sites_flags b 
)
related

Inequality operator for procedure_call_sites_flags.

Parameters
[in]aThe procedure_call_sites_flags object to compare.
[in]bThe procedure_call_sites_flags object to compare against.
Returns
false if a and b are equal according to procedure_call_sites_flags::cmp(), true otherwise.

◆ operator&()

procedure_call_sites_flags operator & ( const procedure_call_sites_flags a,
const procedure_call_sites_flags b 
)
related

AND operator for procedure_call_sites_flags.

Parameters
[in]aAND operand.
[in]bAND operand.
Returns
A procedure_call_sites_flags object containing all flags that are in both a and b.

◆ operator<()

bool operator< ( const procedure_call_sites_flags a,
const procedure_call_sites_flags b 
)
related

Less-than operator for procedure_call_sites_flags.

Parameters
[in]aThe procedure_call_sites_flags object to compare.
[in]bThe procedure_call_sites_flags object to compare against.
Returns
true if a < b according to procedure_call_sites_flags::cmp() , false otherwise.

◆ operator<<()

std::ostream & operator<< ( std::ostream &  out,
const procedure_call_sites_flags a 
)
related

Print a representation of a procedure_call_sites_flags object to the specified stream.

Parameters
[in]outThe stream to print to.
[in]aThe procedure_call_sites_flags object to print.
Returns
void

◆ operator<=()

bool operator<= ( const procedure_call_sites_flags a,
const procedure_call_sites_flags b 
)
related

Less-than-or-equal operator for procedure_call_sites_flags.

Parameters
[in]aThe procedure_call_sites_flags object to compare.
[in]bThe procedure_call_sites_flags object to compare against.
Returns
true if a <= b according to procedure_call_sites_flags::cmp() , false otherwise.

◆ operator==()

bool operator== ( const procedure_call_sites_flags a,
const procedure_call_sites_flags b 
)
related

Equality operator for procedure_call_sites_flags.

Parameters
[in]aThe procedure_call_sites_flags object to compare.
[in]bThe procedure_call_sites_flags object to compare against.
Returns
true if a and b are equal according to procedure_call_sites_flags::cmp(), false otherwise.

◆ operator>()

bool operator> ( const procedure_call_sites_flags a,
const procedure_call_sites_flags b 
)
related

Greater-than operator for procedure_call_sites_flags.

Parameters
[in]aThe procedure_call_sites_flags object to compare.
[in]bThe procedure_call_sites_flags object to compare against.
Returns
true if a > b according to procedure_call_sites_flags::cmp() , false otherwise.

◆ operator>=()

bool operator>= ( const procedure_call_sites_flags a,
const procedure_call_sites_flags b 
)
related

Greater-than-or-equal operator for procedure_call_sites_flags.

Parameters
[in]aThe procedure_call_sites_flags object to compare.
[in]bThe procedure_call_sites_flags object to compare against.
Returns
true if a >= b according to procedure_call_sites_flags::cmp() , false otherwise.

◆ operator|()

procedure_call_sites_flags operator| ( const procedure_call_sites_flags a,
const procedure_call_sites_flags b 
)
related

OR operator for procedure_call_sites_flags.

Parameters
[in]aOR operand.
[in]bOR operand.
Returns
A procedure_call_sites_flags object containing all flags that are in at least one of a, b.

Member Data Documentation

◆ NONE

const procedure_call_sites_flags cs::procedure_call_sites_flags::NONE
static

Empty set: contains no flags.


The documentation for this class was generated from the following file: