Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

CPPToken Class Reference

#include <cppToken.h>

List of all members.

Public Member Functions

 CPPToken (int token, int line_number=0, int col_number=0, const CPPFile &file=CPPFile(""), const string &str=string(), const YYSTYPE &lval=YYSTYPE())
 CPPToken (const CPPToken &copy)
void operator= (const CPPToken &copy)
bool is_eof () const
 Returns true if this is the EOF token.

void output (ostream &out) const

Static Public Member Functions

CPPToken eof ()
 A named constructor for the token returned when the end of file has been reached.


Public Attributes

int _token
YYSTYPE _lval
YYLTYPE _lloc


Constructor & Destructor Documentation

CPPToken::CPPToken int  token,
int  line_number = 0,
int  col_number = 0,
const CPPFile file = CPPFile(""),
const string &  str = string(),
const YYSTYPE &  lval = YYSTYPE()
 

Definition at line 37 of file cppToken.cxx.

Referenced by operator=().

CPPToken::CPPToken const CPPToken &  copy  ) 
 

Definition at line 58 of file cppToken.cxx.

References _lloc, _lval, and _token.


Member Function Documentation

CPPToken CPPToken::eof  )  [static]
 

A named constructor for the token returned when the end of file has been reached.

Definition at line 92 of file cppToken.cxx.

References _lval.

bool CPPToken::is_eof  )  const
 

Returns true if this is the EOF token.

Definition at line 105 of file cppToken.cxx.

References _lval.

void CPPToken::operator= const CPPToken &  copy  ) 
 

Definition at line 74 of file cppToken.cxx.

References CPPToken().

void CPPToken::output ostream &  out  )  const
 

Definition at line 118 of file cppToken.cxx.

References _lval, and NULL.


Member Data Documentation

YYLTYPE CPPToken::_lloc
 

Definition at line 51 of file cppToken.h.

Referenced by CPPToken().

YYSTYPE CPPToken::_lval
 

Definition at line 50 of file cppToken.h.

Referenced by CPPToken(), eof(), is_eof(), and output().

int CPPToken::_token
 

Definition at line 49 of file cppToken.h.

Referenced by CPPToken().


The documentation for this class was generated from the following files:
Generated on Thu May 1 22:13:28 2003 for DTool by doxygen1.3