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

Base class for all instances that represents something at a certain location. More...

#include <qsourcelocationreflection_p.h>

Inheritance diagram for QPatternist::SourceLocationReflection:
QPatternist::AccelTreeBuilder< true > PerformComparison PerformValueConstruction QPatternist::AccelTreeBuilder< FromDocument > QPatternist::DelegatingSourceLocationReflection QPatternist::DistinctIterator QPatternist::Expression QPatternist::IndexOfIterator QPatternist::ReflectYYLTYPE QPatternist::Template QPatternist::XsdSchemaSourceLocationReflection

Public Functions

virtual const SourceLocationReflectionactualReflection () const =0
 
virtual QString description () const
 
virtual QSourceLocation sourceLocation () const
 
 SourceLocationReflection ()
 
virtual ~SourceLocationReflection ()
 

Detailed Description

Base class for all instances that represents something at a certain location.

SourceLocationReflection does not provide the source location itself, the address to an instance is the mark for it, that in turn can be used for looking up the source location where that mapping is provided.

However, this SourceLocationReflection is not itself the mark. The real mark is retrieved by calling actualReflection(). This mechanism allows a SourceLocationReflection sub-class to delegate, or be an alias, for another source location mark.

If sourceLocation() returns a non-null object, it will be used instead of looking up via actualReflection().

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

Definition at line 82 of file qsourcelocationreflection_p.h.

Constructors and Destructors

◆ SourceLocationReflection()

QPatternist::SourceLocationReflection::SourceLocationReflection ( )
inline

Definition at line 85 of file qsourcelocationreflection_p.h.

86  {
87  }

◆ ~SourceLocationReflection()

virtual QPatternist::SourceLocationReflection::~SourceLocationReflection ( )
inlinevirtual

Definition at line 89 of file qsourcelocationreflection_p.h.

90  {
91  }

Functions

◆ actualReflection()

virtual const SourceLocationReflection* QPatternist::SourceLocationReflection::actualReflection ( ) const
pure virtual

◆ description()

virtual QString QPatternist::SourceLocationReflection::description ( ) const
inlinevirtual

A description of what represents the source code location, for human consumption. Must be translated, as appropriate.

Reimplemented in QPatternist::Expression, QPatternist::ReflectYYLTYPE, QPatternist::GenericPredicate, QPatternist::DelegatingSourceLocationReflection, and QPatternist::Literal.

Definition at line 99 of file qsourcelocationreflection_p.h.

Referenced by QPatternist::ReportContext::lookupSourceLocation().

100  {
101  return QString();
102  }
The QString class provides a Unicode character string.
Definition: qstring.h:83

◆ sourceLocation()

QSourceLocation SourceLocationReflection::sourceLocation ( ) const
virtual

Reimplemented in QPatternist::ReflectYYLTYPE, QPatternist::AccelTreeBuilder< FromDocument >, QPatternist::AccelTreeBuilder< true >, and QPatternist::XsdSchemaSourceLocationReflection.

Definition at line 50 of file qsourcelocationreflection.cpp.

Referenced by QPatternist::ReportContext::lookupSourceLocation().

51 {
52  return QSourceLocation();
53 }
The QSourceLocation class identifies a location in a resource by URI, line, and column.

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