Qt 4.8
Public Types | Public Functions | Protected Functions | Friends | List of all members
QPatternist::BooleanType Class Reference

Implements the type xs:boolean. More...

#include <qbuiltinatomictypes_p.h>

Inheritance diagram for QPatternist::BooleanType:
QPatternist::BuiltinAtomicType QPatternist::AtomicType QPatternist::ItemType QPatternist::AnySimpleType QSharedData QPatternist::AnyType QPatternist::SchemaType QPatternist::SchemaComponent QSharedData

Public Types

typedef QExplicitlySharedDataPointer< BooleanTypePtr
 
- Public Types inherited from QPatternist::BuiltinAtomicType
typedef QExplicitlySharedDataPointer< BuiltinAtomicTypePtr
 
- Public Types inherited from QPatternist::AtomicType
typedef QExplicitlySharedDataPointer< AtomicTypePtr
 
- Public Types inherited from QPatternist::ItemType
enum  Category { NodeNameTest = 1, Other = 2 }
 
enum  InstanceOf { ClassLocalNameTest, ClassNamespaceNameTest, ClassQNameTest, ClassOther }
 
typedef QList< ItemType::PtrList
 
typedef QExplicitlySharedDataPointer< ItemTypePtr
 
- Public Types inherited from QPatternist::AnySimpleType
typedef QList< AnySimpleType::PtrList
 
typedef QExplicitlySharedDataPointer< AnySimpleTypePtr
 
- Public Types inherited from QPatternist::AnyType
typedef QExplicitlySharedDataPointer< AnyTypePtr
 
- Public Types inherited from QPatternist::SchemaType
enum  DerivationConstraint { RestrictionConstraint = 1, ExtensionConstraint = 2, ListConstraint = 4, UnionConstraint = 8 }
 
enum  DerivationMethod {
  DerivationRestriction = 1, DerivationExtension = 2, DerivationUnion = 4, DerivationList = 8,
  NoDerivation = 16
}
 
typedef QHash< QXmlName, SchemaType::PtrHash
 
typedef QList< SchemaType::PtrList
 
typedef QExplicitlySharedDataPointer< SchemaTypePtr
 
enum  TypeCategory {
  None = 0, SimpleTypeAtomic, SimpleTypeList, SimpleTypeUnion,
  ComplexType
}
 

Public Functions

virtual AtomicTypeVisitorResult::Ptr accept (const AtomicTypeVisitor::Ptr &visitor, const SourceLocationReflection *const reflection) const
 
virtual AtomicTypeVisitorResult::Ptr accept (const ParameterizedAtomicTypeVisitor::Ptr &visitor, const qint16 op, const SourceLocationReflection *const reflection) const
 
virtual QString displayName (const NamePool::Ptr &np) const
 
virtual QXmlName name (const NamePool::Ptr &np) const
 Returns the name of the type. More...
 
- Public Functions inherited from QPatternist::BuiltinAtomicType
virtual AtomicCasterLocator::Ptr casterLocator () const
 
virtual AtomicComparatorLocator::Ptr comparatorLocator () const
 
virtual bool isAbstract () const
 
virtual AtomicMathematicianLocator::Ptr mathematicianLocator () const
 
virtual SchemaType::Ptr wxsSuperType () const
 
virtual ItemType::Ptr xdtSuperType () const
 
- Public Functions inherited from QPatternist::AtomicType
virtual AtomicTypeVisitorResult::Ptr accept (const QExplicitlySharedDataPointer< AtomicTypeVisitor > &visitor, const SourceLocationReflection *const) const =0
 
virtual ItemType::Ptr atomizedType () const
 
virtual TypeCategory category () const
 
virtual DerivationMethod derivationMethod () const
 
virtual bool isAtomicType () const
 
virtual bool isNodeType () const
 
virtual bool itemMatches (const Item &item) const
 
virtual bool xdtTypeMatches (const ItemType::Ptr &other) const
 
virtual ~AtomicType ()
 
- 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 ItemTypeoperator| (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::AnySimpleType
virtual bool isComplexType () const
 
virtual bool isSimpleType () const
 
virtual ~AnySimpleType ()
 
- Public Functions inherited from QPatternist::AnyType
virtual DerivationConstraints derivationConstraints () const
 
virtual bool wxsTypeMatches (const SchemaType::Ptr &other) const
 
virtual ~AnyType ()
 
- Public Functions inherited from QPatternist::SchemaType
virtual bool isDefinedBySchema () const
 
 SchemaType ()
 
virtual ~SchemaType ()
 
- Public Functions inherited from QPatternist::SchemaComponent
 SchemaComponent ()
 
virtual ~SchemaComponent ()
 

Protected Functions

 BooleanType ()
 
- Protected Functions inherited from QPatternist::BuiltinAtomicType
 BuiltinAtomicType (const AtomicType::Ptr &baseType, const AtomicComparatorLocator::Ptr &comp, const AtomicMathematicianLocator::Ptr &mather, const AtomicCasterLocator::Ptr &casterLocator)
 
- Protected Functions inherited from QPatternist::AtomicType
 AtomicType ()
 
- Protected Functions inherited from QPatternist::AnySimpleType
 AnySimpleType ()
 
- Protected Functions inherited from QPatternist::AnyType
 AnyType ()
 This constructor is protected, because this class must be sub-classed. More...
 

Friends

class BuiltinTypes
 

Additional Inherited Members

- Public Variables inherited from QSharedData
QAtomicInt ref
 

Detailed Description

Implements the type xs:boolean.

Author
Frans Englich frans.nosp@m..eng.nosp@m.lich@.nosp@m.noki.nosp@m.a.com

Definition at line 559 of file qbuiltinatomictypes_p.h.

Typedefs

◆ Ptr

Definition at line 562 of file qbuiltinatomictypes_p.h.

Constructors and Destructors

◆ BooleanType()

QPatternist::BooleanType::BooleanType ( )
protected

Functions

◆ accept() [1/2]

virtual AtomicTypeVisitorResult::Ptr QPatternist::BooleanType::accept ( const AtomicTypeVisitor::Ptr visitor,
const SourceLocationReflection *const  reflection 
) const
virtual

◆ accept() [2/2]

virtual AtomicTypeVisitorResult::Ptr QPatternist::BooleanType::accept ( const ParameterizedAtomicTypeVisitor::Ptr visitor,
const qint16  op,
const SourceLocationReflection *const  reflection 
) const
virtual

◆ displayName()

virtual QString QPatternist::BooleanType::displayName ( const NamePool::Ptr np) const
virtual
Returns
the result of SharedQXmlName::displayName(), of the SharedQName object returned from the name() function.

Reimplemented from QPatternist::AtomicType.

◆ name()

virtual QXmlName QPatternist::BooleanType::name ( const NamePool::Ptr np) const
virtual

Returns the name of the type.

The reason to why we take the name pool argument, is that the basic types, xs:anySimpleType and so on, are stored globally in BuiltinTypes and ComonSequenceTypes, and therefore cannot be tied to a certain name pool. Type instances that knows they always will be used with a certain name pool, can therefore ignore np and return a QXmlName instance stored as a member.

If the type code was refactored to not be store globally and therefore by design would be tied to a name pool, this argument could be removed.

Reimplemented from QPatternist::AnySimpleType.

Friends and Related Functions

◆ BuiltinTypes

friend class BuiltinTypes
friend

Definition at line 573 of file qbuiltinatomictypes_p.h.


The documentation for this class was generated from the following file: