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

TokenMatch< TokenType > Class Template Reference

This is an STL predicate function object that is used to find a particular id in a list of token pointers. More...

#include <tokenBoard.h>

List of all members.

Public Member Functions

 TokenMatch (int id)
bool operator() (PointerTo< TokenType > tok) const

Public Attributes

int _want_id


Detailed Description

template<class TokenType>
class TokenMatch< TokenType >

This is an STL predicate function object that is used to find a particular id in a list of token pointers.

It returns true when the token's id matches the numeric id supplied to the constructor.

Definition at line 44 of file tokenBoard.h.


Constructor & Destructor Documentation

template<class TokenType>
TokenMatch< TokenType >::TokenMatch int  id  )  [inline]
 

Definition at line 46 of file tokenBoard.h.

References MAX_TOKENBOARD_REQUESTS.


Member Function Documentation

template<class TokenType>
bool TokenMatch< TokenType >::operator() PointerTo< TokenType >  tok  )  const [inline]
 

Definition at line 49 of file tokenBoard.h.


Member Data Documentation

template<class TokenType>
int TokenMatch< TokenType >::_want_id
 

Definition at line 52 of file tokenBoard.h.


The documentation for this class was generated from the following file:
Generated on Fri May 2 00:55:39 2003 for Panda by doxygen1.3