Qt 4.8
Public Types | Public Functions | List of all members
QPatternist::AtomicCaster Class Referenceabstract

AtomicCaster is an abstract base class for classes that performs casting between two atomic values of specific types. More...

#include <qatomiccaster_p.h>

Inheritance diagram for QPatternist::AtomicCaster:
QPatternist::AtomicTypeVisitorResult QSharedData QPatternist::AbstractDateTimeToDateCaster QPatternist::AbstractDateTimeToDateTimeCaster QPatternist::AbstractDateTimeToGDayCaster QPatternist::AbstractDateTimeToGMonthCaster QPatternist::AbstractDateTimeToGMonthDayCaster QPatternist::AbstractDateTimeToGYearCaster QPatternist::AbstractDateTimeToGYearMonthCaster QPatternist::AbstractDateTimeToTimeCaster QPatternist::AbstractDurationToDayTimeDurationCaster QPatternist::AbstractDurationToDurationCaster QPatternist::AbstractDurationToYearMonthDurationCaster QPatternist::AnyToDerivedStringCaster< type > QPatternist::Base64BinaryToHexBinaryCaster QPatternist::BooleanToAbstractFloatCaster< isDouble > QPatternist::BooleanToDecimalCaster QPatternist::BooleanToDerivedIntegerCaster< type > QPatternist::BooleanToIntegerCaster QPatternist::HexBinaryToBase64BinaryCaster QPatternist::NumericToAbstractFloatCaster< isDouble > QPatternist::NumericToBooleanCaster QPatternist::NumericToDecimalCaster< IsInteger > QPatternist::NumericToDerivedIntegerCaster< type > QPatternist::SelfToSelfCaster QPatternist::StringToAbstractFloatCaster< isDouble > QPatternist::StringToBase64BinaryCaster QPatternist::StringToBooleanCaster QPatternist::StringToDateCaster QPatternist::StringToDateTimeCaster QPatternist::StringToDayTimeDurationCaster QPatternist::StringToDecimalCaster QPatternist::StringToDerivedIntegerCaster< type > QPatternist::StringToDurationCaster QPatternist::StringToGDayCaster QPatternist::StringToGMonthCaster QPatternist::StringToGMonthDayCaster QPatternist::StringToGYearCaster QPatternist::StringToGYearMonthCaster QPatternist::StringToHexBinaryCaster QPatternist::StringToIntegerCaster QPatternist::StringToTimeCaster QPatternist::StringToYearMonthDurationCaster QPatternist::ToAnyURICaster QPatternist::ToStringCaster< DerivedType > QPatternist::ToUntypedAtomicCaster

Public Types

typedef QExplicitlySharedDataPointer< AtomicCasterPtr
 
- Public Types inherited from QPatternist::AtomicTypeVisitorResult
typedef QExplicitlySharedDataPointer< AtomicTypeVisitorResultPtr
 

Public Functions

 AtomicCaster ()
 
virtual Item castFrom (const Item &from, const QExplicitlySharedDataPointer< DynamicContext > &context) const =0
 
virtual ~AtomicCaster ()
 
- Public Functions inherited from QPatternist::AtomicTypeVisitorResult
 AtomicTypeVisitorResult ()
 
virtual ~AtomicTypeVisitorResult ()
 
- 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...
 

Additional Inherited Members

- Public Variables inherited from QSharedData
QAtomicInt ref
 

Detailed Description

AtomicCaster is an abstract base class for classes that performs casting between two atomic values of specific types.

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

Definition at line 72 of file qatomiccaster_p.h.

Typedefs

◆ Ptr

Definition at line 75 of file qatomiccaster_p.h.

Constructors and Destructors

◆ AtomicCaster()

AtomicCaster::AtomicCaster ( )

Definition at line 48 of file qatomiccaster.cpp.

49 {
50 }

◆ ~AtomicCaster()

AtomicCaster::~AtomicCaster ( )
virtual

Definition at line 52 of file qatomiccaster.cpp.

53 {
54 }

Functions

◆ castFrom()

virtual Item QPatternist::AtomicCaster::castFrom ( const Item from,
const QExplicitlySharedDataPointer< DynamicContext > &  context 
) const
pure virtual

Casts from to an atomic value of the type this class casts to, and returns that value. The context is used for reporting errors in case the casting fails, and to in general access information from the dynamic context.

Implemented in QPatternist::NumericToDerivedIntegerCaster< type >, QPatternist::AnyToDerivedStringCaster< type >, QPatternist::BooleanToDerivedIntegerCaster< type >, QPatternist::StringToDerivedIntegerCaster< type >, QPatternist::AbstractDurationToYearMonthDurationCaster, QPatternist::AbstractDurationToDayTimeDurationCaster, QPatternist::AbstractDurationToDurationCaster, QPatternist::AbstractDateTimeToTimeCaster, QPatternist::AbstractDateTimeToDateCaster, QPatternist::AbstractDateTimeToDateTimeCaster, QPatternist::AbstractDateTimeToGDayCaster, QPatternist::AbstractDateTimeToGMonthDayCaster, QPatternist::AbstractDateTimeToGMonthCaster, QPatternist::AbstractDateTimeToGYearMonthCaster, QPatternist::AbstractDateTimeToGYearCaster, QPatternist::StringToYearMonthDurationCaster, QPatternist::StringToDayTimeDurationCaster, QPatternist::StringToDurationCaster, QPatternist::StringToDateCaster, QPatternist::StringToTimeCaster, QPatternist::StringToDateTimeCaster, QPatternist::StringToGMonthDayCaster, QPatternist::StringToGYearMonthCaster, QPatternist::StringToGMonthCaster, QPatternist::StringToGDayCaster, QPatternist::StringToGYearCaster, QPatternist::SelfToSelfCaster, QPatternist::BooleanToIntegerCaster, QPatternist::BooleanToDecimalCaster, QPatternist::StringToIntegerCaster, QPatternist::StringToDecimalCaster, QPatternist::NumericToDecimalCaster< IsInteger >, QPatternist::StringToBooleanCaster, QPatternist::NumericToBooleanCaster, QPatternist::StringToHexBinaryCaster, QPatternist::StringToBase64BinaryCaster, QPatternist::Base64BinaryToHexBinaryCaster, QPatternist::HexBinaryToBase64BinaryCaster, QPatternist::ToAnyURICaster, QPatternist::BooleanToAbstractFloatCaster< isDouble >, QPatternist::ToUntypedAtomicCaster, QPatternist::StringToAbstractFloatCaster< isDouble >, QPatternist::ToStringCaster< DerivedType >, and QPatternist::NumericToAbstractFloatCaster< isDouble >.


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