ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
parserID Class Reference

Parser identifier class. More...

#include <ann.h>

Collaboration diagram for parserID:

Public Member Functions

 parserID (const char *val, int line)
 
std::string & name ()
 
const std::string & name () const
 
int line () const
 
bool is_io () const
 
void set_io ()
 
void append (const char *str)
 
void append (parserID *other)
 

Private Attributes

std::string _name
 
int _line
 
bool _is_io
 

Detailed Description

Parser identifier class.

This class holds identifiers during parsing. In addition to the actual name of the identifier, it also holds the line number on which the identifier occured.

Definition at line 36 of file ann.h.

Constructor & Destructor Documentation

parserID::parserID ( const char *  val,
int  line 
)
inline

Definition at line 46 of file ann.h.

Member Function Documentation

std::string& parserID::name ( )
inline

Definition at line 52 of file ann.h.

References _name.

Referenced by append().

const std::string& parserID::name ( ) const
inline

Definition at line 53 of file ann.h.

References _name.

int parserID::line ( ) const
inline

Definition at line 54 of file ann.h.

References _line.

bool parserID::is_io ( ) const
inline

Definition at line 56 of file ann.h.

References _is_io.

void parserID::set_io ( )
inline

Definition at line 57 of file ann.h.

References _is_io.

void parserID::append ( const char *  str)
inline

Definition at line 59 of file ann.h.

References name().

void parserID::append ( parserID other)
inline

Definition at line 63 of file ann.h.

References name().

Member Data Documentation

std::string parserID::_name
private

Definition at line 40 of file ann.h.

Referenced by name().

int parserID::_line
private

Definition at line 41 of file ann.h.

Referenced by line().

bool parserID::_is_io
private

Definition at line 42 of file ann.h.

Referenced by is_io(), and set_io().


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