![]() |
Qt 4.8
|
A name test that is of the type *:local-name.
More...
#include <qlocalnametest_p.h>
Public Types | |
| typedef QHash< QString, ItemType::Ptr > | Hash |
Public Types inherited from QPatternist::AnyNodeType | |
| typedef QExplicitlySharedDataPointer< AnyNodeType > | Ptr |
Public Types inherited from QPatternist::ItemType | |
| enum | Category { NodeNameTest = 1, Other = 2 } |
| enum | InstanceOf { ClassLocalNameTest, ClassNamespaceNameTest, ClassQNameTest, ClassOther } |
| typedef QList< ItemType::Ptr > | List |
| typedef QExplicitlySharedDataPointer< ItemType > | Ptr |
Public Functions | |
| virtual QString | displayName (const NamePool::Ptr &np) const |
| virtual bool | itemMatches (const Item &item) const |
| virtual bool | operator== (const ItemType &other) const |
| virtual PatternPriority | patternPriority () const |
Public Functions inherited from QPatternist::AbstractNodeTest | |
| AbstractNodeTest (const ItemType::Ptr &primaryType) | |
| virtual ItemType::Ptr | atomizedType () const |
| virtual ItemType::Ptr | xdtSuperType () const |
| virtual bool | xdtTypeMatches (const ItemType::Ptr &other) const |
Returns true if other matches this type. That is, if other is equal to this type or a subtype of this type. More... | |
Public Functions inherited from QPatternist::AnyNodeType | |
| virtual bool | isAtomicType () const |
| virtual bool | isNodeType () const |
| virtual QXmlNodeModelIndex::NodeKind | nodeKind () const |
Public Functions inherited from QPatternist::ItemType | |
| ItemType () | |
| virtual Category | itemTypeCategory () const |
| bool | operator!= (const ItemType &other) const |
| virtual const ItemType & | operator| (const ItemType &other) const |
| virtual | ~ItemType () |
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... | |
Static Public Functions | |
| static ItemType::Ptr | create (const ItemType::Ptr &primaryType, const QXmlName::LocalNameCode localName) |
Protected Functions | |
| virtual InstanceOf | instanceOf () const |
Protected Functions inherited from QPatternist::AnyNodeType | |
| AnyNodeType () | |
Private Functions | |
| LocalNameTest (const ItemType::Ptr &primaryType, const QXmlName::LocalNameCode &ncName) | |
Properties | |
| const QXmlName::LocalNameCode | m_ncName |
Additional Inherited Members | |
Public Variables inherited from QSharedData | |
| QAtomicInt | ref |
Protected Variables inherited from QPatternist::AbstractNodeTest | |
| const ItemType::Ptr | m_primaryType |
Related Functions inherited from QPatternist::ItemType | |
| ItemType::Ptr | operator| (const ItemType::Ptr &op1, const ItemType::Ptr &op2) |
| void | operator|= (ItemType::Ptr &op1, const ItemType::Ptr &op2) |
Computes the union type of op1 and op2, and assigns it to op1. More... | |
A name test that is of the type *:local-name.
Definition at line 71 of file qlocalnametest_p.h.
Definition at line 74 of file qlocalnametest_p.h.
|
private |
Definition at line 55 of file qlocalnametest.cpp.
Referenced by create().
|
static |
Definition at line 61 of file qlocalnametest.cpp.
Referenced by QPatternist::yyparse().
|
virtual |
Reimplemented from QPatternist::AnyNodeType.
Definition at line 75 of file qlocalnametest.cpp.
|
protectedvirtual |
Determines what class this ItemType is an instance of. This is in needed in some implementations of operator operator==(). By default, Other is returned.
Reimplemented from QPatternist::ItemType.
Definition at line 83 of file qlocalnametest.cpp.
|
virtual |
item is a QXmlNodeModelIndex. Reimplemented from QPatternist::AnyNodeType.
Definition at line 68 of file qlocalnametest.cpp.
|
virtual |
Determines whether this ItemType is equal to other.
Many types are represented by singleton instances. For example, there exists only one instance of IntegerType. This operator==() takes advantage of that and uses equalness of object addresses for determining semantic equalness. This function is as a result fast.
However, it's overridden in some cases, such as for name tests, where it's not guaranteed that there exists two types.
true if this ItemType is equal to other, otherwise false. Reimplemented from QPatternist::ItemType.
Definition at line 88 of file qlocalnametest.cpp.
|
virtual |
Reimplemented from QPatternist::AnyNodeType.
Definition at line 94 of file qlocalnametest.cpp.
|
private |
Definition at line 94 of file qlocalnametest_p.h.
Referenced by displayName(), itemMatches(), and operator==().