Public Types | Public Member Functions | Protected Attributes

Queries::SetQuery< MatchFuncArgType, DataFuncArgType, needsConversion > Class Template Reference

a Query implementing a set: arguments must one of a set of values More...

#include <SetQuery.h>

Inheritance diagram for Queries::SetQuery< MatchFuncArgType, DataFuncArgType, needsConversion >:
Queries::Query< MatchFuncArgType, DataFuncArgType, needsConversion >

List of all members.

Public Types

typedef std::set
< MatchFuncArgType > 
CONTAINER_TYPE

Public Member Functions

 SetQuery ()
void insert (const MatchFuncArgType what)
 insert an entry into our set
void clear ()
 clears our set
bool Match (const DataFuncArgType what) const
 returns whether or not we match the argument
Query< MatchFuncArgType,
DataFuncArgType,
needsConversion > * 
copy () const
 returns a copy of this Query
CONTAINER_TYPE::const_iterator beginSet () const
CONTAINER_TYPE::const_iterator endSet () const
unsigned int size () const

Protected Attributes

CONTAINER_TYPE d_set

Detailed Description

template<class MatchFuncArgType, class DataFuncArgType = MatchFuncArgType, bool needsConversion = false>
class Queries::SetQuery< MatchFuncArgType, DataFuncArgType, needsConversion >

a Query implementing a set: arguments must one of a set of values

Definition at line 21 of file SetQuery.h.


Member Typedef Documentation

template<class MatchFuncArgType, class DataFuncArgType = MatchFuncArgType, bool needsConversion = false>
typedef std::set<MatchFuncArgType> Queries::SetQuery< MatchFuncArgType, DataFuncArgType, needsConversion >::CONTAINER_TYPE

Definition at line 25 of file SetQuery.h.


Constructor & Destructor Documentation

template<class MatchFuncArgType, class DataFuncArgType = MatchFuncArgType, bool needsConversion = false>
Queries::SetQuery< MatchFuncArgType, DataFuncArgType, needsConversion >::SetQuery (  )  [inline]

Definition at line 27 of file SetQuery.h.


Member Function Documentation

template<class MatchFuncArgType, class DataFuncArgType = MatchFuncArgType, bool needsConversion = false>
CONTAINER_TYPE::const_iterator Queries::SetQuery< MatchFuncArgType, DataFuncArgType, needsConversion >::beginSet (  )  const [inline]

Definition at line 63 of file SetQuery.h.

template<class MatchFuncArgType, class DataFuncArgType = MatchFuncArgType, bool needsConversion = false>
void Queries::SetQuery< MatchFuncArgType, DataFuncArgType, needsConversion >::clear (  )  [inline]

clears our set

Definition at line 36 of file SetQuery.h.

template<class MatchFuncArgType, class DataFuncArgType = MatchFuncArgType, bool needsConversion = false>
Query<MatchFuncArgType,DataFuncArgType,needsConversion>* Queries::SetQuery< MatchFuncArgType, DataFuncArgType, needsConversion >::copy (  )  const [inline, virtual]

returns a copy of this Query

Notes:

  • the caller is responsible for deleteing the result

Reimplemented from Queries::Query< MatchFuncArgType, DataFuncArgType, needsConversion >.

Reimplemented in RDKit::RecursiveStructureQuery.

Definition at line 48 of file SetQuery.h.

template<class MatchFuncArgType, class DataFuncArgType = MatchFuncArgType, bool needsConversion = false>
CONTAINER_TYPE::const_iterator Queries::SetQuery< MatchFuncArgType, DataFuncArgType, needsConversion >::endSet (  )  const [inline]

Definition at line 66 of file SetQuery.h.

template<class MatchFuncArgType, class DataFuncArgType = MatchFuncArgType, bool needsConversion = false>
void Queries::SetQuery< MatchFuncArgType, DataFuncArgType, needsConversion >::insert ( const MatchFuncArgType  what  )  [inline]

insert an entry into our set

Definition at line 30 of file SetQuery.h.

Referenced by Queries::SetQuery< int, Atom const *, true >::copy(), and RDKit::RecursiveStructureQuery::copy().

template<class MatchFuncArgType, class DataFuncArgType = MatchFuncArgType, bool needsConversion = false>
bool Queries::SetQuery< MatchFuncArgType, DataFuncArgType, needsConversion >::Match ( const DataFuncArgType  arg  )  const [inline, virtual]

returns whether or not we match the argument

Reimplemented from Queries::Query< MatchFuncArgType, DataFuncArgType, needsConversion >.

Definition at line 41 of file SetQuery.h.

template<class MatchFuncArgType, class DataFuncArgType = MatchFuncArgType, bool needsConversion = false>
unsigned int Queries::SetQuery< MatchFuncArgType, DataFuncArgType, needsConversion >::size (  )  const [inline]

Definition at line 69 of file SetQuery.h.


Member Data Documentation


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