Qt 4.8
Public Types | Public Functions | List of all members
QPatternist::ExpressionIdentifier Class Referenceabstract

Abstract base class for all classes that identify Expressions based on some criteria. More...

#include <qoptimizerframework_p.h>

Inheritance diagram for QPatternist::ExpressionIdentifier:
QSharedData QPatternist::BooleanIdentifier QPatternist::ByIDIdentifier QPatternist::BySequenceTypeIdentifier QPatternist::ComparisonIdentifier QPatternist::IntegerIdentifier

Public Types

typedef QList< ExpressionIdentifier::PtrList
 
typedef QExplicitlySharedDataPointer< ExpressionIdentifierPtr
 

Public Functions

 ExpressionIdentifier ()
 
virtual bool matches (const Expression::Ptr &expr) const =0
 
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...
 

Additional Inherited Members

- Public Variables inherited from QSharedData
QAtomicInt ref
 

Detailed Description

Abstract base class for all classes that identify Expressions based on some criteria.

ExpressionIdentifier is one of the building block of Patternist's optimizer framework. An ExpressionIdentifier sub-class has the responsibility of determining whether a particular Expression is the one an OptimizationPass should apply for.

This class and sub-classes are never used on their own, but in cooperation with OptimizationPass.

Author
Frans englich frans.nosp@m..eng.nosp@m.lich@.nosp@m.noki.nosp@m.a.com

Definition at line 126 of file qoptimizerframework_p.h.

Typedefs

◆ List

Definition at line 130 of file qoptimizerframework_p.h.

◆ Ptr

Definition at line 129 of file qoptimizerframework_p.h.

Constructors and Destructors

◆ ExpressionIdentifier()

QPatternist::ExpressionIdentifier::ExpressionIdentifier ( )
inline

For some reason this constructor cannot be synthesized.

Definition at line 135 of file qoptimizerframework_p.h.

136  {
137  }

◆ ~ExpressionIdentifier()

ExpressionIdentifier::~ExpressionIdentifier ( )
virtual

Definition at line 48 of file qoptimizerframework.cpp.

49 {
50 }

Functions

◆ matches()

virtual bool QPatternist::ExpressionIdentifier::matches ( const Expression::Ptr expr) const
pure virtual
Parameters
exprthe Expression to be tested. This is guranteed to always be a non null, valid pointer.
Returns
true if expr matches as according to this ExpressionIdentifier, otherwise false.

Implemented in QPatternist::BooleanIdentifier, QPatternist::IntegerIdentifier, QPatternist::ComparisonIdentifier, QPatternist::BySequenceTypeIdentifier, and QPatternist::ByIDIdentifier.


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