Qt 4.8
qatomiccasterlocators_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_AtomicCasterLocators_H
53 #define Patternist_AtomicCasterLocators_H
54 
55 #include "qatomiccasterlocator_p.h"
56 #include "qatomiccasters_p.h"
57 //#include "qderivedinteger_p.h"
58 
66 
68 
69 namespace QPatternist
70 {
75  {
76  public:
79  const SourceLocationReflection *const r) const;
81  const SourceLocationReflection *const r) const;
83  const SourceLocationReflection *const r) const;
85  const SourceLocationReflection *const r) const;
87  const SourceLocationReflection *const r) const;
89  const SourceLocationReflection *const r) const;
91  const SourceLocationReflection *const r) const;
93  const SourceLocationReflection *const r) const;
95  const SourceLocationReflection *const r) const;
97  const SourceLocationReflection *const r) const;
99  const SourceLocationReflection *const r) const;
101  const SourceLocationReflection *const r) const;
103  const SourceLocationReflection *const r) const;
105  const SourceLocationReflection *const r) const;
107  const SourceLocationReflection *const r) const;
109  const SourceLocationReflection *const r) const;
111  const SourceLocationReflection *const r) const;
113  const SourceLocationReflection *const r) const;
115  const SourceLocationReflection *const r) const;
117  const SourceLocationReflection *const r) const;
119  const SourceLocationReflection *const r) const;
121  const SourceLocationReflection *const r) const;
123  const SourceLocationReflection *const r) const;
124  };
125 
130  {
131  public:
134  const SourceLocationReflection *const r) const;
136  const SourceLocationReflection *const r) const;
138  const SourceLocationReflection *const r) const;
140  const SourceLocationReflection *const r) const;
142  const SourceLocationReflection *const r) const;
144  const SourceLocationReflection *const r) const;
146  const SourceLocationReflection *const r) const;
148  const SourceLocationReflection *const r) const;
150  const SourceLocationReflection *const r) const;
152  const SourceLocationReflection *const r) const;
154  const SourceLocationReflection *const r) const;
156  const SourceLocationReflection *const r) const;
158  const SourceLocationReflection *const r) const;
160  const SourceLocationReflection *const r) const;
162  const SourceLocationReflection *const r) const;
164  const SourceLocationReflection *const r) const;
166  const SourceLocationReflection *const r) const;
168  const SourceLocationReflection *const r) const;
170  const SourceLocationReflection *const r) const;
172  const SourceLocationReflection *const r) const;
174  const SourceLocationReflection *const r) const;
176  const SourceLocationReflection *const r) const;
178  const SourceLocationReflection *const r) const;
179  };
180 
185  {
186  public:
189  const SourceLocationReflection *const r) const;
191  const SourceLocationReflection *const r) const;
193  const SourceLocationReflection *const r) const;
194  };
195 
200  {
201  public:
204  const SourceLocationReflection *const r) const;
206  const SourceLocationReflection *const r) const;
208  const SourceLocationReflection *const r) const;
210  const SourceLocationReflection *const r) const;
212  const SourceLocationReflection *const r) const;
214  const SourceLocationReflection *const r) const;
216  const SourceLocationReflection *const r) const;
217  };
218 
223  {
224  public:
227  const SourceLocationReflection *const r) const;
229  const SourceLocationReflection *const r) const;
231  const SourceLocationReflection *const r) const;
233  const SourceLocationReflection *const r) const;
235  const SourceLocationReflection *const r) const;
237  const SourceLocationReflection *const r) const;
239  const SourceLocationReflection *const r) const;
240  };
241 
246  {
247  public:
250  const SourceLocationReflection *const r) const;
252  const SourceLocationReflection *const r) const;
254  const SourceLocationReflection *const r) const;
256  const SourceLocationReflection *const r) const;
258  const SourceLocationReflection *const r) const;
260  const SourceLocationReflection *const r) const;
262  const SourceLocationReflection *const r) const;
263  };
264 
269  {
270  public:
273  const SourceLocationReflection *const r) const;
275  const SourceLocationReflection *const r) const;
277  const SourceLocationReflection *const r) const;
279  const SourceLocationReflection *const r) const;
281  const SourceLocationReflection *const r) const;
283  const SourceLocationReflection *const r) const;
285  const SourceLocationReflection *const r) const;
286  };
287 
292  {
293  public:
296  const SourceLocationReflection *const r) const;
298  const SourceLocationReflection *const r) const;
300  const SourceLocationReflection *const r) const;
302  const SourceLocationReflection *const r) const;
304  const SourceLocationReflection *const r) const;
306  const SourceLocationReflection *const r) const;
308  const SourceLocationReflection *const r) const;
309  };
310 
315  {
316  public:
319  const SourceLocationReflection *const r) const;
321  const SourceLocationReflection *const r) const;
323  const SourceLocationReflection *const r) const;
325  const SourceLocationReflection *const r) const;
326  };
327 
332  {
333  public:
336  const SourceLocationReflection *const r) const;
338  const SourceLocationReflection *const r) const;
340  const SourceLocationReflection *const r) const;
342  const SourceLocationReflection *const r) const;
343  };
344 
349  {
350  public:
353  const SourceLocationReflection *const r) const;
355  const SourceLocationReflection *const r) const;
356  };
357 
362  {
363  public:
366  const SourceLocationReflection *const r) const;
368  const SourceLocationReflection *const r) const;
370  const SourceLocationReflection *const r) const;
372  const SourceLocationReflection *const r) const;
374  const SourceLocationReflection *const r) const;
375  };
376 
381  {
382  public:
385  const SourceLocationReflection *const r) const;
387  const SourceLocationReflection *const r) const;
389  const SourceLocationReflection *const r) const;
391  const SourceLocationReflection *const r) const;
393  const SourceLocationReflection *const r) const;
394  };
395 
400  {
401  public:
404  const SourceLocationReflection *const r) const;
406  const SourceLocationReflection *const r) const;
408  const SourceLocationReflection *const r) const;
410  const SourceLocationReflection *const r) const;
412  const SourceLocationReflection *const r) const;
413  };
414 
419  {
420  public:
423  const SourceLocationReflection *const r) const;
425  const SourceLocationReflection *const r) const;
427  const SourceLocationReflection *const r) const;
429  const SourceLocationReflection *const r) const;
431  const SourceLocationReflection *const r) const;
432  };
433 
438  {
439  public:
442  const SourceLocationReflection *const r) const;
444  const SourceLocationReflection *const r) const;
446  const SourceLocationReflection *const r) const;
448  const SourceLocationReflection *const r) const;
450  const SourceLocationReflection *const r) const;
451  };
452 
457  {
458  public:
461  const SourceLocationReflection *const r) const;
463  const SourceLocationReflection *const r) const;
465  const SourceLocationReflection *const r) const;
467  const SourceLocationReflection *const r) const;
468  };
469 
474  {
475  public:
478  const SourceLocationReflection *const r) const;
480  const SourceLocationReflection *const r) const;
482  const SourceLocationReflection *const r) const;
484  const SourceLocationReflection *const r) const;
485  };
486 
491  {
492  public:
495  const SourceLocationReflection *const r) const;
497  const SourceLocationReflection *const r) const;
499  const SourceLocationReflection *const r) const;
501  const SourceLocationReflection *const r) const;
502  };
503 
508  {
509  public:
512  const SourceLocationReflection *const r) const;
514  const SourceLocationReflection *const r) const;
516  const SourceLocationReflection *const r) const;
518  const SourceLocationReflection *const r) const;
520  const SourceLocationReflection *const r) const;
521  };
522 
527  {
528  public:
531  const SourceLocationReflection *const r) const;
533  const SourceLocationReflection *const r) const;
535  const SourceLocationReflection *const r) const;
537  const SourceLocationReflection *const r) const;
539  const SourceLocationReflection *const r) const;
540  };
541 
546  {
547  public:
550  const SourceLocationReflection *const r) const;
552  const SourceLocationReflection *const r) const;
554  const SourceLocationReflection *const r) const;
556  const SourceLocationReflection *const r) const;
558  const SourceLocationReflection *const r) const;
559  };
560 
564  template<TypeOfDerivedInteger type>
566  {
567  public:
569 
571  const SourceLocationReflection *const r) const
572  {
573  Q_UNUSED(r);
575  }
576 
578  const SourceLocationReflection *const r) const
579  {
580  Q_UNUSED(r);
582  }
583 
585  const SourceLocationReflection *const r) const
586  {
587  Q_UNUSED(r);
589  }
590 
592  const SourceLocationReflection *const r) const
593  {
594  Q_UNUSED(r);
596  }
597 
599  const SourceLocationReflection *const r) const
600  {
601  Q_UNUSED(r);
603  }
604 
606  const SourceLocationReflection *const r) const
607  {
608  Q_UNUSED(r);
610  }
611 
613  const SourceLocationReflection *const r) const
614  {
615  Q_UNUSED(r);
617  }
618 
620  const SourceLocationReflection *const r) const
621  {
622  Q_UNUSED(r);
624  }
625 
627  const SourceLocationReflection *const r) const
628  {
629  Q_UNUSED(r);
631  }
632 
634  const SourceLocationReflection *const r) const
635  {
636  Q_UNUSED(r);
638  }
639 
641  const SourceLocationReflection *const r) const
642  {
643  Q_UNUSED(r);
645  }
646 
648  const SourceLocationReflection *const r) const
649  {
650  Q_UNUSED(r);
652  }
653 
655  const SourceLocationReflection *const r) const
656  {
657  Q_UNUSED(r);
659  }
660 
662  const SourceLocationReflection *const r) const
663  {
664  Q_UNUSED(r);
666  }
667 
669  const SourceLocationReflection *const r) const
670  {
671  Q_UNUSED(r);
673  }
674 
676  const SourceLocationReflection *const r) const
677  {
678  Q_UNUSED(r);
680  }
681 
683  const SourceLocationReflection *const r) const
684  {
685  Q_UNUSED(r);
687  }
688 
690  const SourceLocationReflection *const r) const
691  {
692  Q_UNUSED(r);
694  }
695 
697  const SourceLocationReflection *const r) const
698  {
699  Q_UNUSED(r);
701  }
702  };
703 
707  template<TypeOfDerivedString type>
709  {
710  public:
712 
714  const SourceLocationReflection *const r) const
715  {
716  Q_UNUSED(r);
718  }
719 
721  const SourceLocationReflection *const r) const
722  {
723  Q_UNUSED(r);
725  }
726 
728  const SourceLocationReflection *const r) const
729  {
730  Q_UNUSED(r);
732  }
733 
735  const SourceLocationReflection *const r) const
736  {
737  Q_UNUSED(r);
739  }
740 
741  // TODO TypeString not handled
743  const SourceLocationReflection *const r) const
744  {
745  Q_UNUSED(r);
747  }
748 
750  const SourceLocationReflection *const r) const
751  {
752  Q_UNUSED(r);
754  }
755 
757  const SourceLocationReflection *const r) const
758  {
759  Q_UNUSED(r);
761  }
762 
764  const SourceLocationReflection *const r) const
765  {
766  Q_UNUSED(r);
768  }
769 
771  const SourceLocationReflection *const r) const
772  {
773  Q_UNUSED(r);
775  }
776 
778  const SourceLocationReflection *const r) const
779  {
780  Q_UNUSED(r);
782  }
783 
785  const SourceLocationReflection *const r) const
786  {
787  Q_UNUSED(r);
789  }
790 
792  const SourceLocationReflection *const r) const
793  {
794  Q_UNUSED(r);
796  }
797 
799  const SourceLocationReflection *const r) const
800  {
801  Q_UNUSED(r);
803  }
804 
806  const SourceLocationReflection *const r) const
807  {
808  Q_UNUSED(r);
810  }
811 
813  const SourceLocationReflection *const r) const
814  {
815  Q_UNUSED(r);
817  }
818 
820  const SourceLocationReflection *const r) const
821  {
822  Q_UNUSED(r);
824  }
825 
827  const SourceLocationReflection *const r) const
828  {
829  Q_UNUSED(r);
831  }
832 
834  const SourceLocationReflection *const r) const
835  {
836  Q_UNUSED(r);
838  }
839 
841  const SourceLocationReflection *const r) const
842  {
843  Q_UNUSED(r);
845  }
846 
848  const SourceLocationReflection *const r) const
849  {
850  Q_UNUSED(r);
852  }
853 
855  const SourceLocationReflection *const r) const
856  {
857  Q_UNUSED(r);
859  }
860 
862  const SourceLocationReflection *const r) const
863  {
864  Q_UNUSED(r);
866  }
867 
869  const SourceLocationReflection *const r) const
870  {
871  Q_UNUSED(r);
873  }
874 
876  const SourceLocationReflection *const r) const
877  {
878  Q_UNUSED(r);
880  }
881 
883  const SourceLocationReflection *const r) const
884  {
885  Q_UNUSED(r);
887  }
888 
890  const SourceLocationReflection *const r) const
891  {
892  Q_UNUSED(r);
894  }
895 
897  const SourceLocationReflection *const r) const
898  {
899  Q_UNUSED(r);
901  }
902  };
903 }
904 
906 
908 
909 #endif
virtual AtomicTypeVisitorResult::Ptr visit(const DerivedStringType< TypeNMTOKEN > *, const SourceLocationReflection *const r) const
virtual AtomicTypeVisitorResult::Ptr visit(const UntypedAtomicType *, const SourceLocationReflection *const r) const
virtual AtomicTypeVisitorResult::Ptr visit(const AnyURIType *, const SourceLocationReflection *const r) const
virtual AtomicTypeVisitorResult::Ptr visit(const DerivedStringType< TypeNormalizedString > *, const SourceLocationReflection *const r) const
virtual AtomicTypeVisitorResult::Ptr visit(const DecimalType *, const SourceLocationReflection *const r) const
Implements the type xs:gDay.
virtual AtomicTypeVisitorResult::Ptr visit(const DerivedStringType< TypeENTITY > *, const SourceLocationReflection *const r) const
Casts an xs:string instance to a derived type of xs:integer.
virtual AtomicTypeVisitorResult::Ptr visit(const QNameType *, const SourceLocationReflection *const r) const
Implements the type xs:yearMonthDuration.
#define QT_END_NAMESPACE
This macro expands to.
Definition: qglobal.h:90
virtual AtomicTypeVisitorResult::Ptr visit(const IntegerType *, const SourceLocationReflection *const r) const
virtual AtomicTypeVisitorResult::Ptr visit(const DerivedIntegerType< TypeInt > *, const SourceLocationReflection *const r) const
#define QT_BEGIN_HEADER
Definition: qglobal.h:136
Casts any numeric instance to a derived type of xs:integer.
Implements the type xs:float.
Implements the type xs:time.
virtual AtomicTypeVisitorResult::Ptr visit(const BooleanType *, const SourceLocationReflection *const r) const
virtual AtomicTypeVisitorResult::Ptr visit(const DerivedStringType< TypeIDREF > *, const SourceLocationReflection *const r) const
Implements the type xs:integer.
virtual AtomicTypeVisitorResult::Ptr visit(const AnyURIType *, const SourceLocationReflection *const r) const
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
virtual AtomicTypeVisitorResult::Ptr visit(const FloatType *, const SourceLocationReflection *const r) const
virtual AtomicTypeVisitorResult::Ptr visit(const DerivedStringType< TypeLanguage > *, const SourceLocationReflection *const r) const
Implements the type xs:dateTime.
Casts an xs:boolean instance to a derived type of xs:integer.
virtual AtomicTypeVisitorResult::Ptr visit(const DateType *, const SourceLocationReflection *const r) const
virtual AtomicTypeVisitorResult::Ptr visit(const DerivedIntegerType< TypeUnsignedByte > *, const SourceLocationReflection *const r) const
Implements the type xs:dayTimeDuration.
virtual AtomicTypeVisitorResult::Ptr visit(const GMonthType *, const SourceLocationReflection *const r) const
virtual AtomicTypeVisitorResult::Ptr visit(const GYearType *, const SourceLocationReflection *const r) const
virtual AtomicTypeVisitorResult::Ptr visit(const DateTimeType *, const SourceLocationReflection *const r) const
virtual AtomicTypeVisitorResult::Ptr visit(const StringType *, const SourceLocationReflection *const r) const
virtual AtomicTypeVisitorResult::Ptr visit(const GMonthDayType *, const SourceLocationReflection *const r) const
#define QT_BEGIN_NAMESPACE
This macro expands to.
Definition: qglobal.h:89
Casts an xs:boolean instance to a derived type of xs:integer.
virtual AtomicTypeVisitorResult::Ptr visit(const DerivedIntegerType< TypeNonNegativeInteger > *, const SourceLocationReflection *const r) const
virtual AtomicTypeVisitorResult::Ptr visit(const DoubleType *, const SourceLocationReflection *const r) const
virtual AtomicTypeVisitorResult::Ptr visit(const DerivedIntegerType< TypeUnsignedShort > *, const SourceLocationReflection *const r) const
virtual AtomicTypeVisitorResult::Ptr visit(const DerivedIntegerType< TypeUnsignedInt > *, const SourceLocationReflection *const r) const
The namespace for the internal API of QtXmlPatterns.
virtual AtomicTypeVisitorResult::Ptr visit(const BooleanType *, const SourceLocationReflection *const r) const
virtual AtomicTypeVisitorResult::Ptr visit(const DerivedIntegerType< TypeNegativeInteger > *, const SourceLocationReflection *const r) const
Implements the type xs:anyURI.
Implements the type xs:gYearMonth.
Implements the type xs:date.
virtual AtomicTypeVisitorResult::Ptr visit(const AnyURIType *, const SourceLocationReflection *const r) const
Contains classes sub-classing AtomicCaster and which are responsible of casting an atomic value to an...
QExplicitlySharedDataPointer< AtomicTypeVisitorResult > Ptr
Implements the type xs:decimal.
Implements the type xs:base64Binary.
virtual AtomicTypeVisitorResult::Ptr visit(const SchemaTimeType *, const SourceLocationReflection *const r) const
virtual AtomicTypeVisitorResult::Ptr visit(const GYearMonthType *, const SourceLocationReflection *const r) const
virtual AtomicTypeVisitorResult::Ptr visit(const DurationType *, const SourceLocationReflection *const r) const
virtual AtomicTypeVisitorResult::Ptr visit(const DerivedIntegerType< TypePositiveInteger > *, const SourceLocationReflection *const r) const
Implements the type xs:gMonthDay.
virtual AtomicTypeVisitorResult::Ptr visit(const DerivedIntegerType< TypeShort > *, const SourceLocationReflection *const r) const
Implements the type xs:boolean.
virtual AtomicTypeVisitorResult::Ptr visit(const DerivedIntegerType< TypeByte > *, const SourceLocationReflection *const r) const
virtual AtomicTypeVisitorResult::Ptr visit(const DerivedIntegerType< TypeUnsignedLong > *, const SourceLocationReflection *const r) const
virtual AtomicTypeVisitorResult::Ptr visit(const StringType *, const SourceLocationReflection *const r) const
virtual AtomicTypeVisitorResult::Ptr visit(const DerivedIntegerType< TypeLong > *, const SourceLocationReflection *const r) const
Implements the type xs:NOTATION.
virtual AtomicTypeVisitorResult::Ptr visit(const DoubleType *, const SourceLocationReflection *const r) const
virtual AtomicTypeVisitorResult::Ptr visit(const GDayType *, const SourceLocationReflection *const r) const
virtual AtomicTypeVisitorResult::Ptr visit(const DerivedStringType< TypeName > *, const SourceLocationReflection *const r) const
Implements the type xs:hexBinary.
virtual AtomicTypeVisitorResult::Ptr visit(const DerivedStringType< TypeNCName > *, const SourceLocationReflection *const r) const
virtual AtomicTypeVisitorResult::Ptr visit(const AnyAtomicType *, const SourceLocationReflection *const reflection) const
virtual AtomicTypeVisitorResult::Ptr visit(const DerivedStringType< TypeToken > *, const SourceLocationReflection *const r) const
virtual AtomicTypeVisitorResult::Ptr visit(const FloatType *, const SourceLocationReflection *const r) const
virtual AtomicTypeVisitorResult::Ptr visit(const UntypedAtomicType *, const SourceLocationReflection *const r) const
Implements the type xs:duration.
#define QT_END_HEADER
Definition: qglobal.h:137
Implements the type xs:gYear.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729
Implements the type xs:QName.
Implements the type xs:gMonth.
virtual AtomicTypeVisitorResult::Ptr visit(const DerivedIntegerType< TypeNonPositiveInteger > *, const SourceLocationReflection *const r) const
virtual AtomicTypeVisitorResult::Ptr visit(const DerivedStringType< TypeID > *, const SourceLocationReflection *const r) const
virtual AtomicTypeVisitorResult::Ptr visit(const BooleanType *, const SourceLocationReflection *const r) const
Base class for all instances that represents something at a certain location.
virtual AtomicTypeVisitorResult::Ptr visit(const IntegerType *, const SourceLocationReflection *const r) const