RDCode: Queries::XOrQuery< MatchFuncArgType, DataFuncArgType, needsConversion > Class Template Reference

# Queries::XOrQuery< MatchFuncArgType, DataFuncArgType, needsConversion > Class Template Reference

a Query implementing XOR: requires exactly one child to be `true` More...

`#include <XOrQuery.h>`

Inheritance diagram for Queries::XOrQuery< MatchFuncArgType, DataFuncArgType, needsConversion >:

List of all members.

## Public Types
typedef Query < MatchFuncArgType, DataFuncArgType, needsConversion > | BASE
## Public Member Functions
| XOrQuery ()
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

## Detailed Description

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

a Query implementing XOR: requires exactly one child to be `true`

Definition at line 16 of file XOrQuery.h.

## Member Typedef Documentation

template<class MatchFuncArgType, class DataFuncArgType = MatchFuncArgType, bool needsConversion = false>

typedef Query<MatchFuncArgType, DataFuncArgType,needsConversion> Queries::XOrQuery< MatchFuncArgType, DataFuncArgType, needsConversion >::BASE

Definition at line 19 of file XOrQuery.h.

## Constructor & Destructor Documentation

template<class MatchFuncArgType, class DataFuncArgType = MatchFuncArgType, bool needsConversion = false>

Queries::XOrQuery< MatchFuncArgType, DataFuncArgType, needsConversion >::XOrQuery | ( |  | ) | `[inline]`

Definition at line 20 of file XOrQuery.h.

References Queries::Query< MatchFuncArgType, DataFuncArgType, needsConversion >::df_negate.

## Member Function Documentation

template<class MatchFuncArgType, class DataFuncArgType = MatchFuncArgType, bool needsConversion = false>

bool Queries::XOrQuery< 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 24 of file XOrQuery.h.

References Queries::Query< MatchFuncArgType, DataFuncArgType, needsConversion >::beginChildren(), Queries::Query< MatchFuncArgType, DataFuncArgType, needsConversion >::endChildren(), and Queries::Query< MatchFuncArgType, DataFuncArgType, needsConversion >::getNegation().

template<class MatchFuncArgType, class DataFuncArgType = MatchFuncArgType, bool needsConversion = false>

Query<MatchFuncArgType,DataFuncArgType,needsConversion>* Queries::XOrQuery< MatchFuncArgType, DataFuncArgType, needsConversion >::copy | ( |  | ) | const`[inline, virtual]`

returns a copy of this Query

Notes:

- the caller is responsible for `delete`ing the result

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

Definition at line 45 of file XOrQuery.h.

References Queries::Query< MatchFuncArgType, DataFuncArgType, needsConversion >::addChild(), Queries::Query< MatchFuncArgType, DataFuncArgType, needsConversion >::beginChildren(), Queries::Query< MatchFuncArgType, DataFuncArgType, needsConversion >::d_description, Queries::Query< MatchFuncArgType, DataFuncArgType, needsConversion >::endChildren(), Queries::Query< MatchFuncArgType, DataFuncArgType, needsConversion >::getNegation(), and Queries::Query< MatchFuncArgType, DataFuncArgType, needsConversion >::setNegation().

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

- XOrQuery.h