Qt 4.8
Public Functions | Static Public Functions | Protected Functions | Friends | List of all members
QPatternist::UntypedAtomic Class Reference

Implements the value instance of the xs:untypedAtomic type. More...

#include <quntypedatomic_p.h>

Inheritance diagram for QPatternist::UntypedAtomic:
QPatternist::AtomicString QPatternist::AtomicValue QSharedData QPatternist::CppCastingHelper< AtomicValue >

Public Functions

virtual ItemType::Ptr type () const
 
- Public Functions inherited from QPatternist::AtomicString
virtual bool evaluateEBV (const QExplicitlySharedDataPointer< DynamicContext > &) const
 
virtual QString stringValue () const
 
- Public Functions inherited from QPatternist::AtomicValue
virtual bool hasError () const
 
virtual ~AtomicValue ()
 
- 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::CppCastingHelper< AtomicValue >
const TCastTarget * as () const
 
TCastTarget * as ()
 

Static Public Functions

static UntypedAtomic::Ptr fromValue (const QString &value)
 
- Static Public Functions inherited from QPatternist::AtomicString
static AtomicString::Ptr fromValue (const QString &value)
 
static AtomicString::Ptr fromValue (const QUrl &value)
 
- Static Public Functions inherited from QPatternist::AtomicValue
static ItemType::Ptr qtToXDMType (const QXmlItem &item)
 
static QVariant toQt (const AtomicValue *const value)
 
static QVariant toQt (const AtomicValue::Ptr &value)
 
static Item toXDM (const QVariant &value)
 

Protected Functions

 UntypedAtomic (const QString &value)
 
- Protected Functions inherited from QPatternist::AtomicString
 AtomicString (const QString &value)
 
- Protected Functions inherited from QPatternist::AtomicValue
 AtomicValue ()
 
- Protected Functions inherited from QPatternist::CppCastingHelper< AtomicValue >
 CppCastingHelper ()
 

Friends

class CommonValues
 

Additional Inherited Members

- Public Types inherited from QPatternist::AtomicString
typedef AtomicValue::Ptr Ptr
 
- Public Types inherited from QPatternist::AtomicValue
typedef QList< AtomicValue::PtrList
 
typedef QExplicitlySharedDataPointer< AtomicValuePtr
 
- Public Variables inherited from QSharedData
QAtomicInt ref
 
- Protected Variables inherited from QPatternist::AtomicString
const QString m_value
 

Detailed Description

Implements the value instance of the xs:untypedAtomic type.

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

Definition at line 70 of file quntypedatomic_p.h.

Constructors and Destructors

◆ UntypedAtomic()

UntypedAtomic::UntypedAtomic ( const QString value)
protected

Definition at line 50 of file quntypedatomic.cpp.

Referenced by fromValue().

50  : AtomicString(s)
51 {
52 }
AtomicString(const QString &value)

Functions

◆ fromValue()

UntypedAtomic::Ptr UntypedAtomic::fromValue ( const QString value)
static

Creates an instance representing value.

This fromValue function takes no context argument because it doesn't need it – it casting to xs:untypedAtomic always succeeds.

Note
This function does not remove the string literal escaping allowed in XPath 2.0

Definition at line 54 of file quntypedatomic.cpp.

Referenced by QPatternist::ToUntypedAtomicCaster::castFrom(), and QPatternist::AccelTree::sequencedTypedValue().

55 {
56  return UntypedAtomic::Ptr(new UntypedAtomic(value));
57 }
UntypedAtomic(const QString &value)

◆ type()

ItemType::Ptr UntypedAtomic::type ( ) const
virtual

Reimplemented from QPatternist::AtomicString.

Definition at line 59 of file quntypedatomic.cpp.

60 {
62 }
static const AtomicType::Ptr xsUntypedAtomic

Friends and Related Functions

◆ CommonValues

friend class CommonValues
friend

Definition at line 73 of file quntypedatomic_p.h.


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