![]() |
Qt 4.8
|
A name test that is of the type prefix:ncName.
More...
#include <qqnametest_p.h>
Public Types | |
| typedef QHash< QString, QNameTest::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 qName) |
Protected Functions | |
| virtual InstanceOf | instanceOf () const |
Protected Functions inherited from QPatternist::AnyNodeType | |
| AnyNodeType () | |
Private Functions | |
| QNameTest (const ItemType::Ptr &primaryType, const QXmlName qName) | |
Properties | |
| const QXmlName | m_qName |
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 prefix:ncName.
Definition at line 71 of file qqnametest_p.h.
Definition at line 74 of file qqnametest_p.h.
|
private |
Definition at line 54 of file qqnametest.cpp.
Referenced by create().
|
static |
Definition at line 61 of file qqnametest.cpp.
Referenced by QPatternist::yyparse().
|
virtual |
Reimplemented from QPatternist::AnyNodeType.
Definition at line 76 of file qqnametest.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 qqnametest.cpp.
|
virtual |
item is a QXmlNodeModelIndex. Reimplemented from QPatternist::AnyNodeType.
Definition at line 69 of file qqnametest.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 qqnametest.cpp.
|
virtual |
Reimplemented from QPatternist::AnyNodeType.
Definition at line 94 of file qqnametest.cpp.
|
private |
Definition at line 95 of file qqnametest_p.h.
Referenced by displayName(), itemMatches(), and operator==().