![]() |
Qt 4.8
|
A name test that is of the type prefix:*.
More...
#include <qnamespacenametest_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 |
| 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::NamespaceCode namespaceURI) |
Protected Functions | |
| virtual InstanceOf | instanceOf () const |
Protected Functions inherited from QPatternist::AnyNodeType | |
| AnyNodeType () | |
Private Functions | |
| NamespaceNameTest (const ItemType::Ptr &primaryType, const QXmlName::NamespaceCode namespaceURI) | |
Properties | |
| const QXmlName::NamespaceCode | m_namespaceURI |
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:*.
Definition at line 71 of file qnamespacenametest_p.h.
Definition at line 74 of file qnamespacenametest_p.h.
|
private |
Definition at line 54 of file qnamespacenametest.cpp.
Referenced by create().
|
static |
Definition at line 60 of file qnamespacenametest.cpp.
Referenced by QPatternist::yyparse().
|
virtual |
Reimplemented from QPatternist::AnyNodeType.
Definition at line 74 of file qnamespacenametest.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 79 of file qnamespacenametest.cpp.
|
virtual |
item is a QXmlNodeModelIndex. Reimplemented from QPatternist::AnyNodeType.
Definition at line 67 of file qnamespacenametest.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 84 of file qnamespacenametest.cpp.
|
virtual |
Reimplemented from QPatternist::AnyNodeType.
Definition at line 90 of file qnamespacenametest.cpp.
|
private |
Definition at line 93 of file qnamespacenametest_p.h.
Referenced by displayName(), itemMatches(), and operator==().