| [111] | 1 | // file      : xsd/cxx/tree/date-time.txx | 
|---|
 | 2 | // author    : Boris Kolpackov <boris@codesynthesis.com> | 
|---|
 | 3 | // copyright : Copyright (c) 2005-2008 Code Synthesis Tools CC | 
|---|
 | 4 | // license   : GNU GPL v2 + exceptions; see accompanying LICENSE file | 
|---|
 | 5 |  | 
|---|
 | 6 | namespace xsd | 
|---|
 | 7 | { | 
|---|
 | 8 |   namespace cxx | 
|---|
 | 9 |   { | 
|---|
 | 10 |     namespace tree | 
|---|
 | 11 |     { | 
|---|
 | 12 |       // gday | 
|---|
 | 13 |       // | 
|---|
 | 14 |       template <typename C, typename B> | 
|---|
 | 15 |       gday<C, B>* gday<C, B>:: | 
|---|
 | 16 |       _clone (flags f, container* c) const | 
|---|
 | 17 |       { | 
|---|
 | 18 |         return new gday (*this, f, c); | 
|---|
 | 19 |       } | 
|---|
 | 20 |  | 
|---|
 | 21 |       // gmonth | 
|---|
 | 22 |       // | 
|---|
 | 23 |       template <typename C, typename B> | 
|---|
 | 24 |       gmonth<C, B>* gmonth<C, B>:: | 
|---|
 | 25 |       _clone (flags f, container* c) const | 
|---|
 | 26 |       { | 
|---|
 | 27 |         return new gmonth (*this, f, c); | 
|---|
 | 28 |       } | 
|---|
 | 29 |  | 
|---|
 | 30 |       // gyear | 
|---|
 | 31 |       // | 
|---|
 | 32 |       template <typename C, typename B> | 
|---|
 | 33 |       gyear<C, B>* gyear<C, B>:: | 
|---|
 | 34 |       _clone (flags f, container* c) const | 
|---|
 | 35 |       { | 
|---|
 | 36 |         return new gyear (*this, f, c); | 
|---|
 | 37 |       } | 
|---|
 | 38 |  | 
|---|
 | 39 |       // gmonth_day | 
|---|
 | 40 |       // | 
|---|
 | 41 |       template <typename C, typename B> | 
|---|
 | 42 |       gmonth_day<C, B>* gmonth_day<C, B>:: | 
|---|
 | 43 |       _clone (flags f, container* c) const | 
|---|
 | 44 |       { | 
|---|
 | 45 |         return new gmonth_day (*this, f, c); | 
|---|
 | 46 |       } | 
|---|
 | 47 |  | 
|---|
 | 48 |       // gyear_month | 
|---|
 | 49 |       // | 
|---|
 | 50 |       template <typename C, typename B> | 
|---|
 | 51 |       gyear_month<C, B>* gyear_month<C, B>:: | 
|---|
 | 52 |       _clone (flags f, container* c) const | 
|---|
 | 53 |       { | 
|---|
 | 54 |         return new gyear_month (*this, f, c); | 
|---|
 | 55 |       } | 
|---|
 | 56 |  | 
|---|
 | 57 |       // date | 
|---|
 | 58 |       // | 
|---|
 | 59 |       template <typename C, typename B> | 
|---|
 | 60 |       date<C, B>* date<C, B>:: | 
|---|
 | 61 |       _clone (flags f, container* c) const | 
|---|
 | 62 |       { | 
|---|
 | 63 |         return new date (*this, f, c); | 
|---|
 | 64 |       } | 
|---|
 | 65 |  | 
|---|
 | 66 |       // time | 
|---|
 | 67 |       // | 
|---|
 | 68 |       template <typename C, typename B> | 
|---|
 | 69 |       time<C, B>* time<C, B>:: | 
|---|
 | 70 |       _clone (flags f, container* c) const | 
|---|
 | 71 |       { | 
|---|
 | 72 |         return new time (*this, f, c); | 
|---|
 | 73 |       } | 
|---|
 | 74 |  | 
|---|
 | 75 |       // date_time | 
|---|
 | 76 |       // | 
|---|
 | 77 |       template <typename C, typename B> | 
|---|
 | 78 |       date_time<C, B>* date_time<C, B>:: | 
|---|
 | 79 |       _clone (flags f, container* c) const | 
|---|
 | 80 |       { | 
|---|
 | 81 |         return new date_time (*this, f, c); | 
|---|
 | 82 |       } | 
|---|
 | 83 |  | 
|---|
 | 84 |       // duration | 
|---|
 | 85 |       // | 
|---|
 | 86 |       template <typename C, typename B> | 
|---|
 | 87 |       duration<C, B>* duration<C, B>:: | 
|---|
 | 88 |       _clone (flags f, container* c) const | 
|---|
 | 89 |       { | 
|---|
 | 90 |         return new duration (*this, f, c); | 
|---|
 | 91 |       } | 
|---|
 | 92 |     } | 
|---|
 | 93 |   } | 
|---|
 | 94 | } | 
|---|