Crevice  0.1
 All Classes Functions Variables Pages
Classes | Public Types | Public Member Functions | List of all members
TokenList Class Reference

List of tokens. More...

#include <TokenList.h>

Collaboration diagram for TokenList:
Collaboration graph

Classes

class  Invalid
 Exception thrown when accessing illegal position of list. More...

Public Types

typedef std::vector< Token * >
::const_iterator 
iterator

Public Member Functions

 TokenList ()
 Creates new token list.
 TokenList (const TokenList &orig)
 Copies token list.
virtual ~TokenList ()
 Destroys token list.
iterator begin ()
 Returns iterator to the beginning of the list.
iterator end ()
 Returns iterator to the end of the list.
int length ()
 Returns length of token list string.
const TokentokenAt (int)
 Gets token at given position.
void append (Token *)
 Appends token to token list.

Detailed Description

List of tokens.

Definition at line 28 of file TokenList.h.

Constructor & Destructor Documentation

TokenList::TokenList ( const TokenList orig)

Copies token list.

Parameters
origoriginal token list

Definition at line 31 of file TokenList.cc.

Here is the call graph for this function:

Member Function Documentation

void TokenList::append ( Token tok)

Appends token to token list.

Parameters
toktoken

Definition at line 90 of file TokenList.cc.

Here is the caller graph for this function:

std::vector< Token * >::const_iterator TokenList::begin ( )

Returns iterator to the beginning of the list.

Returns
iterator

Definition at line 54 of file TokenList.cc.

Here is the caller graph for this function:

std::vector< Token * >::const_iterator TokenList::end ( )

Returns iterator to the end of the list.

Returns
iterator

Definition at line 62 of file TokenList.cc.

Here is the caller graph for this function:

int TokenList::length ( )

Returns length of token list string.

Returns

Definition at line 70 of file TokenList.cc.

const Token * TokenList::tokenAt ( int  pos)

Gets token at given position.

Returns
pos position

Definition at line 78 of file TokenList.cc.


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