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

Describe an error where an ast_field lookup failed. More...

Public Member Functions

std::string as_repr () const
 Get a representation of a ast_field_not_found_error object that includes information useful for debugging. More...
 
std::string as_string () const
 Get a simple string representation of a ast_field_not_found_error object. More...
 
ast get_ast () const
 Get the ast in which the lookup was attempted. More...
 
ast_ordinal get_ordinal () const
 Get the ast_ordinal that was requested. More...
 
cs_hash_t hash () const
 Get a hash value for a ast_field_not_found_error. More...
 

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &out, const ast_field_not_found_error &a)
 Print a representation of a ast_field_not_found_error object to the specified stream. More...
 

Detailed Description

Describe an error where an ast_field lookup failed.

Will be thrown by ast::operator[] if the specified ordinal is not in the ast.

Member Function Documentation

◆ as_repr()

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

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

Returns
The string representation.

◆ as_string()

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

Get a simple string representation of a ast_field_not_found_error object.

Returns
The string representation.

◆ get_ast()

ast cs::ast_field_not_found_error::get_ast ( ) const
inline

Get the ast in which the lookup was attempted.

Returns
The ast that did not have the requested ordinal.

◆ get_ordinal()

ast_ordinal cs::ast_field_not_found_error::get_ordinal ( ) const
inline

Get the ast_ordinal that was requested.

Returns
The ast_ordinal that that was requested.

◆ hash()

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

Get a hash value for a ast_field_not_found_error.

Friends And Related Function Documentation

◆ operator<<()

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

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

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

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