Qt 4.8
qatomictypedispatch_p.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
4 ** Contact: http://www.qt-project.org/legal
5 **
6 ** This file is part of the QtXmlPatterns module of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:LGPL$
9 ** Commercial License Usage
10 ** Licensees holding valid commercial Qt licenses may use this file in
11 ** accordance with the commercial license agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and Digia. For licensing terms and
14 ** conditions see http://qt.digia.com/licensing. For further information
15 ** use the contact form at http://qt.digia.com/contact-us.
16 **
17 ** GNU Lesser General Public License Usage
18 ** Alternatively, this file may be used under the terms of the GNU Lesser
19 ** General Public License version 2.1 as published by the Free Software
20 ** Foundation and appearing in the file LICENSE.LGPL included in the
21 ** packaging of this file. Please review the following information to
22 ** ensure the GNU Lesser General Public License version 2.1 requirements
23 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24 **
25 ** In addition, as a special exception, Digia gives you certain additional
26 ** rights. These rights are described in the Digia Qt LGPL Exception
27 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
28 **
29 ** GNU General Public License Usage
30 ** Alternatively, this file may be used under the terms of the GNU
31 ** General Public License version 3.0 as published by the Free Software
32 ** Foundation and appearing in the file LICENSE.GPL included in the
33 ** packaging of this file. Please review the following information to
34 ** ensure the GNU General Public License version 3.0 requirements will be
35 ** met: http://www.gnu.org/copyleft/gpl.html.
36 **
37 **
38 ** $QT_END_LICENSE$
39 **
40 ****************************************************************************/
41 
42 //
43 // W A R N I N G
44 // -------------
45 //
46 // This file is not part of the Qt API. It exists purely as an
47 // implementation detail. This header file may change from version to
48 // version without notice, or even be removed.
49 //
50 // We mean it.
51 
52 #ifndef Patternist_AtomicTypeDispatch_H
53 #define Patternist_AtomicTypeDispatch_H
54 
55 #include <QSharedData>
56 
57 
59 
61 
62 namespace QPatternist
63 {
64  class AnyAtomicType;
65  class AnyURIType;
66  class Base64BinaryType;
67  class BooleanType;
68  class DateTimeType;
69  class DateType;
70  class DayTimeDurationType;
71  class DecimalType;
72  class DoubleType;
73  class DurationType;
74  class FloatType;
75  class GDayType;
76  class GMonthDayType;
77  class GMonthType;
78  class GYearMonthType;
79  class GYearType;
80  class HexBinaryType;
81  class IntegerType;
82  class NOTATIONType;
83  class QNameType;
84  class SourceLocationReflection;
85  class StringType;
86  class SchemaTimeType;
87  class UntypedAtomicType;
89 
91  {
104  };
105 
106  template<TypeOfDerivedInteger DerivedType> class DerivedIntegerType;
107 
109  {
120  };
121 
122  template<TypeOfDerivedString DerivedType> class DerivedStringType;
123 
139  {
140  public:
144  };
145 
154  {
155  public:
157  virtual ~AtomicTypeVisitor() {}
158 
159  virtual AtomicTypeVisitorResult::Ptr visit(const AnyAtomicType *,
160  const SourceLocationReflection *const reflection) const = 0;
161  virtual AtomicTypeVisitorResult::Ptr visit(const AnyURIType *,
162  const SourceLocationReflection *const reflection) const = 0;
163  virtual AtomicTypeVisitorResult::Ptr visit(const Base64BinaryType *,
164  const SourceLocationReflection *const reflection) const = 0;
165  virtual AtomicTypeVisitorResult::Ptr visit(const BooleanType *,
166  const SourceLocationReflection *const reflection) const = 0;
167  virtual AtomicTypeVisitorResult::Ptr visit(const DateTimeType *,
168  const SourceLocationReflection *const reflection) const = 0;
169  virtual AtomicTypeVisitorResult::Ptr visit(const DateType *,
170  const SourceLocationReflection *const reflection) const = 0;
172  const SourceLocationReflection *const reflection) const = 0;
173  virtual AtomicTypeVisitorResult::Ptr visit(const DecimalType *,
174  const SourceLocationReflection *const reflection) const = 0;
175  virtual AtomicTypeVisitorResult::Ptr visit(const DoubleType *,
176  const SourceLocationReflection *const reflection) const = 0;
177  virtual AtomicTypeVisitorResult::Ptr visit(const DurationType *,
178  const SourceLocationReflection *const reflection) const = 0;
179  virtual AtomicTypeVisitorResult::Ptr visit(const FloatType *,
180  const SourceLocationReflection *const reflection) const = 0;
181  virtual AtomicTypeVisitorResult::Ptr visit(const GDayType *,
182  const SourceLocationReflection *const reflection) const = 0;
183  virtual AtomicTypeVisitorResult::Ptr visit(const GMonthDayType *,
184  const SourceLocationReflection *const reflection) const = 0;
185  virtual AtomicTypeVisitorResult::Ptr visit(const GMonthType *,
186  const SourceLocationReflection *const reflection) const = 0;
187  virtual AtomicTypeVisitorResult::Ptr visit(const GYearMonthType *,
188  const SourceLocationReflection *const reflection) const = 0;
189  virtual AtomicTypeVisitorResult::Ptr visit(const GYearType *,
190  const SourceLocationReflection *const reflection) const = 0;
191  virtual AtomicTypeVisitorResult::Ptr visit(const HexBinaryType *,
192  const SourceLocationReflection *const reflection) const = 0;
193  virtual AtomicTypeVisitorResult::Ptr visit(const IntegerType *,
194  const SourceLocationReflection *const reflection) const = 0;
195  virtual AtomicTypeVisitorResult::Ptr visit(const NOTATIONType *,
196  const SourceLocationReflection *const reflection) const = 0;
197  virtual AtomicTypeVisitorResult::Ptr visit(const QNameType *,
198  const SourceLocationReflection *const reflection) const = 0;
199  virtual AtomicTypeVisitorResult::Ptr visit(const StringType *,
200  const SourceLocationReflection *const reflection) const = 0;
201  virtual AtomicTypeVisitorResult::Ptr visit(const SchemaTimeType *,
202  const SourceLocationReflection *const reflection) const = 0;
203  virtual AtomicTypeVisitorResult::Ptr visit(const UntypedAtomicType *,
204  const SourceLocationReflection *const reflection) const = 0;
206  const SourceLocationReflection *const reflection) const = 0;
207  };
208 
217  {
218  public:
221 
222  virtual AtomicTypeVisitorResult::Ptr visit(const AnyAtomicType *, const qint16 param,
223  const SourceLocationReflection *const reflection) const = 0;
224  virtual AtomicTypeVisitorResult::Ptr visit(const AnyURIType *, const qint16 param,
225  const SourceLocationReflection *const reflection) const = 0;
226  virtual AtomicTypeVisitorResult::Ptr visit(const Base64BinaryType *, const qint16 param,
227  const SourceLocationReflection *const reflection) const = 0;
228  virtual AtomicTypeVisitorResult::Ptr visit(const BooleanType *, const qint16 param,
229  const SourceLocationReflection *const reflection) const = 0;
230  virtual AtomicTypeVisitorResult::Ptr visit(const DateTimeType *, const qint16 param,
231  const SourceLocationReflection *const reflection) const = 0;
232  virtual AtomicTypeVisitorResult::Ptr visit(const DateType *, const qint16 param,
233  const SourceLocationReflection *const reflection) const = 0;
234  virtual AtomicTypeVisitorResult::Ptr visit(const DayTimeDurationType *, const qint16 param,
235  const SourceLocationReflection *const reflection) const = 0;
236  virtual AtomicTypeVisitorResult::Ptr visit(const DecimalType *, const qint16 param,
237  const SourceLocationReflection *const reflection) const = 0;
238  virtual AtomicTypeVisitorResult::Ptr visit(const DoubleType *, const qint16 param,
239  const SourceLocationReflection *const reflection) const = 0;
240  virtual AtomicTypeVisitorResult::Ptr visit(const DurationType *, const qint16 param,
241  const SourceLocationReflection *const reflection) const = 0;
242  virtual AtomicTypeVisitorResult::Ptr visit(const FloatType *, const qint16 param,
243  const SourceLocationReflection *const reflection) const = 0;
244  virtual AtomicTypeVisitorResult::Ptr visit(const GDayType *, const qint16 param,
245  const SourceLocationReflection *const reflection) const = 0;
246  virtual AtomicTypeVisitorResult::Ptr visit(const GMonthDayType *, const qint16 param,
247  const SourceLocationReflection *const reflection) const = 0;
248  virtual AtomicTypeVisitorResult::Ptr visit(const GMonthType *, const qint16 param,
249  const SourceLocationReflection *const reflection) const = 0;
250  virtual AtomicTypeVisitorResult::Ptr visit(const GYearMonthType *, const qint16 param,
251  const SourceLocationReflection *const reflection) const = 0;
252  virtual AtomicTypeVisitorResult::Ptr visit(const GYearType *, const qint16 param,
253  const SourceLocationReflection *const reflection) const = 0;
254  virtual AtomicTypeVisitorResult::Ptr visit(const HexBinaryType *, const qint16 param,
255  const SourceLocationReflection *const reflection) const = 0;
256  virtual AtomicTypeVisitorResult::Ptr visit(const IntegerType *, const qint16 param,
257  const SourceLocationReflection *const reflection) const = 0;
258  virtual AtomicTypeVisitorResult::Ptr visit(const NOTATIONType *, const qint16 param,
259  const SourceLocationReflection *const reflection) const = 0;
260  virtual AtomicTypeVisitorResult::Ptr visit(const QNameType *, const qint16 param,
261  const SourceLocationReflection *const reflection) const = 0;
262  virtual AtomicTypeVisitorResult::Ptr visit(const StringType *, const qint16 param,
263  const SourceLocationReflection *const reflection) const = 0;
264  virtual AtomicTypeVisitorResult::Ptr visit(const SchemaTimeType *, const qint16 param,
265  const SourceLocationReflection *const reflection) const = 0;
266  virtual AtomicTypeVisitorResult::Ptr visit(const UntypedAtomicType *, const qint16 param,
267  const SourceLocationReflection *const reflection) const = 0;
268  virtual AtomicTypeVisitorResult::Ptr visit(const YearMonthDurationType *, const qint16 param,
269  const SourceLocationReflection *const reflection) const = 0;
270  };
271 }
272 
274 
276 
277 #endif
Implements the type xs:gDay.
Implements the type xs:anyAtomicType.
Implements the type xs:yearMonthDuration.
#define QT_END_NAMESPACE
This macro expands to.
Definition: qglobal.h:90
AllCompOperators AtomicComparator::OperatorEqual AtomicComparator::OperatorNotEqual AllCompOperators FloatType IntegerType FloatType IntegerType FloatType AllCompOperators FloatType AllCompOperators AtomicComparator::OperatorEqual AtomicComparator::OperatorNotEqual AtomicComparator::OperatorEqual AtomicComparator::OperatorNotEqual AtomicComparator::OperatorEqual AtomicComparator::OperatorNotEqual AllCompOperators AtomicComparator::OperatorEqual AtomicComparator::OperatorNotEqual AtomicComparator::OperatorEqual AtomicComparator::OperatorNotEqual DurationType
AllCompOperators AtomicComparator::OperatorEqual AtomicComparator::OperatorNotEqual AllCompOperators FloatType IntegerType FloatType IntegerType FloatType AllCompOperators FloatType AllCompOperators AtomicComparator::OperatorEqual AtomicComparator::OperatorNotEqual AtomicComparator::OperatorEqual AtomicComparator::OperatorNotEqual AtomicComparator::OperatorEqual AtomicComparator::OperatorNotEqual AllCompOperators DayTimeDurationType
AllCompOperators AtomicComparator::OperatorEqual AtomicComparator::OperatorNotEqual AllCompOperators FloatType IntegerType FloatType IntegerType FloatType AllCompOperators FloatType AllCompOperators AtomicComparator::OperatorEqual AtomicComparator::OperatorNotEqual AtomicComparator::OperatorEqual AtomicComparator::OperatorNotEqual AtomicComparator::OperatorEqual AtomicComparator::OperatorNotEqual AllCompOperators AtomicComparator::OperatorEqual AtomicComparator::OperatorNotEqual YearMonthDurationType
#define QT_BEGIN_HEADER
Definition: qglobal.h:136
AllCompOperators AtomicComparator::OperatorEqual AtomicComparator::OperatorNotEqual BooleanType
Implements the type xs:float.
Implements the type xs:time.
Implements the type xs:integer.
Implements the type xs:untypedAtomic.
Implements the type xs:double.
The QExplicitlySharedDataPointer class represents a pointer to an explicitly shared object...
Definition: qshareddata.h:136
Implements the type xs:dateTime.
AllMathOperators AllMathOperators AtomicMathematician::Multiply AllMathOperators AllMathOperators AtomicMathematician::Multiply AllMathOperators AllMathOperators AtomicMathematician::Multiply AllMathOperators AllMathOperators AtomicMathematician::Multiply DateType
Implements the type xs:dayTimeDuration.
#define QT_BEGIN_NAMESPACE
This macro expands to.
Definition: qglobal.h:89
AllCompOperators HexBinaryType
short qint16
Definition: qglobal.h:935
The namespace for the internal API of QtXmlPatterns.
Implements the type xs:anyURI.
Implements the type xs:gYearMonth.
AllCompOperators AtomicComparator::OperatorEqual AtomicComparator::OperatorNotEqual AllCompOperators FloatType IntegerType FloatType IntegerType FloatType AllCompOperators FloatType AllCompOperators AtomicComparator::OperatorEqual AtomicComparator::OperatorNotEqual AtomicComparator::OperatorEqual AtomicComparator::OperatorNotEqual GMonthDayType
Implements the type xs:date.
AllMathOperators AllMathOperators AtomicMathematician::Multiply AllMathOperators AllMathOperators AtomicMathematician::Multiply AllMathOperators AllMathOperators AtomicMathematician::Multiply AllMathOperators AllMathOperators AtomicMathematician::Multiply AtomicMathematician::Add DivMultiply FloatType
AllCompOperators AtomicComparator::OperatorEqual AtomicComparator::OperatorNotEqual AllCompOperators FloatType IntegerType FloatType IntegerType FloatType AllCompOperators FloatType AllCompOperators AtomicComparator::OperatorEqual AtomicComparator::OperatorNotEqual AtomicComparator::OperatorEqual AtomicComparator::OperatorNotEqual AtomicComparator::OperatorEqual AtomicComparator::OperatorNotEqual SchemaTimeType
QExplicitlySharedDataPointer< AtomicTypeVisitorResult > Ptr
Implements the type xs:decimal.
Implements the type xs:base64Binary.
The QSharedData class is a base class for shared data objects.
Definition: qshareddata.h:56
Implements the type xs:gMonthDay.
AllMathOperators AllMathOperators AtomicMathematician::Multiply AllMathOperators AllMathOperators AtomicMathematician::Multiply AllMathOperators AllMathOperators AtomicMathematician::Multiply AllMathOperators AllMathOperators AtomicMathematician::Multiply AtomicMathematician::Add DecimalType
Implements the type xs:boolean.
QExplicitlySharedDataPointer< ParameterizedAtomicTypeVisitor > Ptr
AllCompOperators AtomicComparator::OperatorEqual AtomicComparator::OperatorNotEqual AllCompOperators FloatType IntegerType FloatType IntegerType FloatType AllCompOperators FloatType AllCompOperators GYearType
Implements the type xs:NOTATION.
QExplicitlySharedDataPointer< AtomicTypeVisitor > Ptr
Implements the type xs:hexBinary.
AllCompOperators AtomicComparator::OperatorEqual AtomicComparator::OperatorNotEqual AllCompOperators FloatType IntegerType FloatType IntegerType FloatType AllCompOperators FloatType AllCompOperators AtomicComparator::OperatorEqual AtomicComparator::OperatorNotEqual GMonthType
Implements the type xs:duration.
#define QT_END_HEADER
Definition: qglobal.h:137
Implements the type xs:gYear.
Implements the type xs:QName.
Implements the type xs:gMonth.
AllCompOperators AtomicComparator::OperatorEqual AtomicComparator::OperatorNotEqual AllCompOperators FloatType IntegerType FloatType IntegerType FloatType IntegerType
Base class for all instances that represents something at a certain location.