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

t_CodeChunk Struct Reference

#include <parse_util.hh>

Collaboration diagram for t_CodeChunk:

Collaboration graph
[legend]
List of all members.

Public Methods

 t_CodeChunk ()
 t_CodeChunk (const t_CodeChunk &o)
 t_CodeChunk (const Position &pos_, const string &code_)
t_CodeChunk& operator= (const struct t_CodeChunk &o)
void set (const string &code_, const Position &pos_)
int countLines () const
bool empty () const

Public Attributes

Position pos
string code

Detailed Description

This structure keeps a chunk of user code and the starting position in the file from where it came from (we use the positions to generate the line thingies.

Definition at line 80 of file parse_util.hh.


Constructor & Destructor Documentation

t_CodeChunk::t_CodeChunk ( ) [inline]
 

Definition at line 85 of file parse_util.hh.

t_CodeChunk::t_CodeChunk ( const t_CodeChunk & o ) [inline]
 

Definition at line 87 of file parse_util.hh.

t_CodeChunk::t_CodeChunk ( const Position & pos_,
const string & code_ ) [inline]
 

Definition at line 91 of file parse_util.hh.


Member Function Documentation

t_CodeChunk & t_CodeChunk::operator= ( const struct t_CodeChunk & o ) [inline]
 

Definition at line 95 of file parse_util.hh.

void t_CodeChunk::set ( const string & code_,
const Position & pos_ ) [inline]
 

Definition at line 102 of file parse_util.hh.

Referenced by ParserSpec::setInheritance(), and ParserSpec::setPreambleCode().

int t_CodeChunk::countLines ( ) const [inline]
 

Definition at line 108 of file parse_util.hh.

Referenced by Writer::writeChunk().

bool t_CodeChunk::empty ( ) const [inline]
 

Definition at line 115 of file parse_util.hh.

Referenced by EbnfNonterminalNode::dump().


Member Data Documentation

Position t_CodeChunk::pos
 

Definition at line 82 of file parse_util.hh.

string t_CodeChunk::code
 

Definition at line 83 of file parse_util.hh.


The documentation for this struct was generated from the following file:
Generated at Tue Jul 9 21:08:39 2002 for CppCC by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001