Qt 4.8
|
AtomicCaster is an abstract base class for classes that performs casting between two atomic values of specific types. More...
#include <qatomiccaster_p.h>
Public Types | |
typedef QExplicitlySharedDataPointer< AtomicCaster > | Ptr |
Public Types inherited from QPatternist::AtomicTypeVisitorResult | |
typedef QExplicitlySharedDataPointer< AtomicTypeVisitorResult > | Ptr |
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 |
AtomicCaster is an abstract base class for classes that performs casting between two atomic values of specific types.
Definition at line 72 of file qatomiccaster_p.h.
Definition at line 75 of file qatomiccaster_p.h.
AtomicCaster::AtomicCaster | ( | ) |
Definition at line 48 of file qatomiccaster.cpp.
|
virtual |
Definition at line 52 of file qatomiccaster.cpp.
|
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 >.