Qt 4.8
|
Represents the type for which a value of can an Effective Boolean Value be extracted from. More...
#include <qebvtype_p.h>
Public Types | |
typedef QExplicitlySharedDataPointer< EBVType > | 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 Types inherited from QPatternist::SequenceType | |
typedef QList< SequenceType::Ptr > | List |
typedef QExplicitlySharedDataPointer< const SequenceType > | Ptr |
Public Functions | |
virtual ItemType::Ptr | atomizedType () const |
virtual Cardinality | cardinality () const |
virtual QString | displayName (const NamePool::Ptr &np) const |
virtual bool | isAtomicType () const |
virtual bool | isNodeType () const |
virtual bool | itemMatches (const Item &item) const |
virtual ItemType::Ptr | itemType () 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::ItemType | |
virtual InstanceOf | instanceOf () const |
ItemType () | |
virtual Category | itemTypeCategory () const |
bool | operator!= (const ItemType &other) const |
virtual 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... | |
Public Functions inherited from QPatternist::SequenceType | |
bool | is (const SequenceType::Ptr &other) const |
bool | matches (const SequenceType::Ptr other) const |
SequenceType () | |
virtual | ~SequenceType () |
Protected Functions | |
EBVType () | |
Friends | |
class | CommonSequenceTypes |
Additional Inherited Members | |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
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... | |
Represents the type for which a value of can an Effective Boolean Value be extracted from.
EBVType is an artificial type. It is not available to users of any host language or is specified in any specification. It is used for implementing static type checking for expressions such as IfThenClause and AndExpression.
Definition at line 76 of file qebvtype_p.h.
Definition at line 80 of file qebvtype_p.h.
|
protected |
Definition at line 52 of file qebvtype.cpp.
|
virtual |
null
Implements QPatternist::ItemType.
Definition at line 116 of file qebvtype.cpp.
|
virtual |
Implements QPatternist::SequenceType.
Definition at line 91 of file qebvtype.cpp.
|
virtual |
Implements QPatternist::ItemType.
Definition at line 83 of file qebvtype.cpp.
|
virtual |
Implements QPatternist::ItemType.
Definition at line 106 of file qebvtype.cpp.
|
virtual |
|
virtual |
Implements QPatternist::ItemType.
Definition at line 56 of file qebvtype.cpp.
|
virtual |
Implements QPatternist::SequenceType.
Definition at line 101 of file qebvtype.cpp.
|
virtual |
Implements QPatternist::ItemType.
Definition at line 96 of file qebvtype.cpp.
|
virtual |
Returns true
if other
matches this type. That is, if other
is equal to this type or a subtype of this type.
For instance this statements evaluates to true:
but this evaluates to false:
other | the other ItemType that is to be matched. This is guaranteed by the caller to never be null . |
Implements QPatternist::ItemType.
Definition at line 69 of file qebvtype.cpp.
|
friend |
Definition at line 126 of file qebvtype_p.h.