1
/*------------------------------------------------------------------------------
2
* Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team
4
* Distributable under the terms of either the Apache License (Version 2.0) or
5
* the GNU Lesser General Public License, as specified in the COPYING file.
6
------------------------------------------------------------------------------*/
7
#ifndef _lucene_queryParser_TokenList_
8
#define _lucene_queryParser_TokenList_
10
#if defined(_LUCENE_PRAGMA_ONCE)
14
#include "CLucene/util/VoidList.h"
15
#include "QueryToken.h"
16
CL_NS_DEF(queryParser)
18
// Represents a list of the tokens.
19
class TokenList:LUCENE_BASE
22
CL_NS(util)::CLVector<QueryToken*> tokens; //todo:,CL_NS(util)::Deletor::Object<QueryToken>
27
void add(QueryToken* token);
29
void push(QueryToken* token);
33
QueryToken* extract();
35
int32_t count() const;