![]() |
Qt 4.8
|
Matches boolean literals. More...
#include <qoptimizerblocks_p.h>
Public Functions | |
| BooleanIdentifier (const bool value) | |
| virtual bool | matches (const Expression::Ptr &expr) const |
Public Functions inherited from QPatternist::ExpressionIdentifier | |
| ExpressionIdentifier () | |
| virtual | ~ExpressionIdentifier () |
Public Functions inherited from QSharedData | |
| QSharedData () | |
| Constructs a QSharedData object with a reference count of 0. More... | |
| QSharedData (const QSharedData &) | |
| Constructs a QSharedData object with reference count 0. More... | |
Properties | |
| const bool | m_value |
Additional Inherited Members | |
Public Types inherited from QPatternist::ExpressionIdentifier | |
| typedef QList< ExpressionIdentifier::Ptr > | List |
| typedef QExplicitlySharedDataPointer< ExpressionIdentifier > | Ptr |
Public Variables inherited from QSharedData | |
| QAtomicInt | ref |
Matches boolean literals.
For example BooleanIdentifier(true) would match the former but not the latter operand in this expression: "true() + false()".
Definition at line 178 of file qoptimizerblocks_p.h.
| BooleanIdentifier::BooleanIdentifier | ( | const bool | value | ) |
Definition at line 118 of file qoptimizerblocks.cpp.
|
virtual |
| expr | the Expression to be tested. This is guranteed to always be a non null, valid pointer. |
true if expr matches as according to this ExpressionIdentifier, otherwise false. Implements QPatternist::ExpressionIdentifier.
Definition at line 122 of file qoptimizerblocks.cpp.
|
private |
Definition at line 185 of file qoptimizerblocks_p.h.
Referenced by matches().