52 #ifndef Patternist_VariableDeclaration_H 53 #define Patternist_VariableDeclaration_H 55 #include <QSharedData> 65 template<
typename T>
class QStack;
QExplicitlySharedDataPointer< VariableDeclaration > Ptr
static QString formatKeyword(const VariableDeclaration::Ptr &var, const NamePool::Ptr &np)
Formats var appropriately for display.
#define QT_END_NAMESPACE
This macro expands to.
Represents a declared variable. Only used at the compilation stage.
The QExplicitlySharedDataPointer class represents a pointer to an explicitly shared object...
Expression::Ptr m_expression
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
bool canSourceRewrite
Whether a reference can rewrite itself to expression().
The QStack class is a template class that provides a stack.
int count(const T &t) const
Returns the number of occurrences of value in the list.
The QString class provides a Unicode character string.
QStack< VariableDeclaration::Ptr > Stack
The QHash class is a template class that provides a hash-table-based dictionary.
QList< VariableDeclaration::Ptr > List
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The namespace for the internal API of QtXmlPatterns.
static bool contains(const VariableDeclaration::List &list, const QXmlName &lookup)
Returns true if list contains lookup.
VariableDeclaration(const QXmlName n, const VariableSlotID varSlot, const Type t, const SequenceType::Ptr &seqType)
The QXmlName class represents the name of an XML node, in an efficient, namespace-aware way...
Contains functions used for formatting arguments, such as keywords and paths, in translated strings...
The QSharedData class is a base class for shared data objects.
void setExpression(const Expression::Ptr &expr)
QHash< QXmlName, VariableDeclaration::Ptr > Hash
The key is the variable name.
const VariableSlotID slot
bool usedByMany() const
Returns how many times this variable is used.
QList< QAElement > lookup(const QList< QAInterface > &interfaces)
VariableReference::List references
const SequenceType::Ptr sequenceType
const Expression::Ptr & expression() const
bool isNull() const
Returns true if this QXmlName is not initialized with a valid combination of {namespace URI}...