KDevelop API Documentation

ParserInputState Class Reference

This object contains the data associated with an input stream of tokens. More...

#include <ParserSharedInputState.hpp>

Collaboration diagram for ParserInputState:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ParserInputState (TokenBuffer *in)
 Construct a new ParserInputState.
 ParserInputState (TokenBuffer &in)
 Construct a new ParserInputState.
 ~ParserInputState ()
TokenBuffergetInput (void)
void reset (void)
 Reset the ParserInputState and the underlying TokenBuffer.

Public Attributes

int guessing
 Are we guessing (guessing>0)?
std::string filename
 What file (if known) caused the problem?

Private Member Functions

 ParserInputState (const ParserInputState &)
ParserInputStateoperator= (const ParserInputState &)

Private Attributes

TokenBufferinput
 Where to get token objects.
bool inputResponsible
 Do we need to free the TokenBuffer or is it owned by another..

Detailed Description

This object contains the data associated with an input stream of tokens.

Multiple parsers share a single ParserSharedInputState to parse the same stream of tokens.

Definition at line 25 of file ParserSharedInputState.hpp.


Constructor & Destructor Documentation

ParserInputState::ParserInputState TokenBuffer in  )  [inline]
 

Construct a new ParserInputState.

Parameters:
in the TokenBuffer to read from. The object is deleted together with the ParserInputState object.

Definition at line 31 of file ParserSharedInputState.hpp.

References filename, guessing, input, and inputResponsible.

ParserInputState::ParserInputState TokenBuffer in  )  [inline]
 

Construct a new ParserInputState.

Parameters:
in the TokenBuffer to read from.

Definition at line 41 of file ParserSharedInputState.hpp.

References filename, guessing, input, and inputResponsible.

ParserInputState::~ParserInputState  )  [inline]
 

Definition at line 49 of file ParserSharedInputState.hpp.

ParserInputState::ParserInputState const ParserInputState  )  [private]
 


Member Function Documentation

TokenBuffer& ParserInputState::getInput void   )  [inline]
 

Definition at line 55 of file ParserSharedInputState.hpp.

ParserInputState& ParserInputState::operator= const ParserInputState  )  [private]
 

void ParserInputState::reset void   )  [inline]
 

Reset the ParserInputState and the underlying TokenBuffer.

Definition at line 61 of file ParserSharedInputState.hpp.

References guessing, input, and TokenBuffer::reset().


Member Data Documentation

std ::string ParserInputState::filename
 

What file (if known) caused the problem?

Todo:
wrap this one..

Definition at line 73 of file ParserSharedInputState.hpp.

Referenced by ParserInputState().

int ParserInputState::guessing
 

Are we guessing (guessing>0)?

Definition at line 69 of file ParserSharedInputState.hpp.

Referenced by ParserInputState(), and reset().

TokenBuffer* ParserInputState::input [private]
 

Where to get token objects.

Definition at line 76 of file ParserSharedInputState.hpp.

Referenced by ParserInputState(), and reset().

bool ParserInputState::inputResponsible [private]
 

Do we need to free the TokenBuffer or is it owned by another..

Definition at line 78 of file ParserSharedInputState.hpp.

Referenced by ParserInputState().


The documentation for this class was generated from the following file:
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:44:58 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003