Qt 4.8
Classes | Public Types | Public Functions | List of all members
QPatternist::TokenSource Class Referenceabstract

Base class for components that needs to return tokens. More...

#include <qtokensource_p.h>

Inheritance diagram for QPatternist::TokenSource:
QSharedData QPatternist::SingleTokenContainer QPatternist::Tokenizer QPatternist::TokenRevealer QPatternist::XQueryTokenizer QPatternist::XSLTTokenizer

Classes

class  Token
 

Public Types

typedef QExplicitlySharedDataPointer< TokenSourcePtr
 
typedef QQueue< PtrQueue
 
typedef yytokentype TokenType
 

Public Functions

virtual Token nextToken (YYLTYPE *const sourceLocator)=0
 
 TokenSource ()
 
virtual ~TokenSource ()
 
- Public Functions inherited from QSharedData
 QSharedData ()
 Constructs a QSharedData object with a reference count of 0. More...
 
 QSharedData (const QSharedData &)
 Constructs a QSharedData object with reference count 0. More...
 

Additional Inherited Members

- Public Variables inherited from QSharedData
QAtomicInt ref
 

Detailed Description

Base class for components that needs to return tokens.

TokenSource represents a stream of Token instances. The end is reached when readNext() returns a Token constructed with END_OF_FILE.

See also
Building a Tokenizer for XPath or XQuery
Author
Frans Englich frans.nosp@m..eng.nosp@m.lich@.nosp@m.noki.nosp@m.a.com

Definition at line 109 of file qtokensource_p.h.

Typedefs

◆ Ptr

Definition at line 141 of file qtokensource_p.h.

◆ Queue

Definition at line 142 of file qtokensource_p.h.

◆ TokenType

typedef for the enum Bison generates that contains the token symbols.

Definition at line 116 of file qtokensource_p.h.

Constructors and Destructors

◆ TokenSource()

QPatternist::TokenSource::TokenSource ( )
inline

The C++ compiler cannot synthesize it when we use the Q_DISABLE_COPY() macro.

Definition at line 148 of file qtokensource_p.h.

149  {
150  }

◆ ~TokenSource()

TokenSource::~TokenSource ( )
virtual

Definition at line 48 of file qtokensource.cpp.

49 {
50 }

Functions

◆ nextToken()

virtual Token QPatternist::TokenSource::nextToken ( YYLTYPE *const  sourceLocator)
pure virtual

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