Changeset 1107
- Timestamp:
- 04/25/17 10:57:59 (7 years ago)
- Location:
- XIOS/trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/attribute.cpp
r680 r1107 12 12 { /* Ne rien faire de plus */ } 13 13 /* 14 CAttribute::CAttribute(const CAttribute & attribut)15 : CObject(attribut.getId()),CBaseType()16 {17 // this->value = attribut.getAnyValue();18 }19 14 */ 20 15 CAttribute::~CAttribute(void) … … 22 17 23 18 ///-------------------------------------------------------------- 24 /*25 const boost::any & CAttribute::getAnyValue(void) const26 {27 return (this->value);28 }29 19 30 31 void CAttribute::setAnyValue(const boost::any & value)32 {33 this->value = value;34 }35 36 void CAttribute::clear(void)37 {38 this->value = boost::any();39 }40 41 //---------------------------------------------------------------42 43 bool CAttribute::isEmpty(void) const44 {45 return (this->value.empty());46 }47 */48 20 const StdString & CAttribute::getName(void) const 49 21 { … … 79 51 ///-------------------------------------------------------------- 80 52 81 82 53 CMessage& operator<<(CMessage& msg,CAttribute& type) 83 54 { -
XIOS/trunk/src/attribute_array.hpp
r1105 r1107 13 13 { 14 14 /// ////////////////////// Déclarations ////////////////////// /// 15 /*! 16 \class CAttributeArray 17 This class implements the attribute representing array of value 18 */ 15 19 template <typename T_numtype, int N_rank> 16 20 class CAttributeArray : public CAttribute, public CArray<T_numtype, N_rank> … … 19 23 20 24 using CArray<T_numtype,N_rank>::operator = ; 21 // using Array<T_numtype,N_rank>::operator = ;22 25 23 26 /// Constructeurs /// … … 63 66 virtual void generateFortranInterfaceGetDeclaration(ostream& oss,const string& className) ; 64 67 65 66 protected :67 68 /// Constructeurs ///69 70 68 private : 71 69 CArray<T_numtype, N_rank> inheritedValue ; -
XIOS/trunk/src/attribute_enum.hpp
r1105 r1107 15 15 { 16 16 /// ////////////////////// Déclarations ////////////////////// /// 17 /*! 18 \class CAttributeEnum 19 This class implements the attribute representing enumeration 20 */ 17 21 template <class T> 18 22 class CAttributeEnum : public CAttribute, public CEnum<T> … … 70 74 virtual void generateFortranInterfaceGetDeclaration_(ostream& oss,const string& className) ; 71 75 virtual void generateFortranInterfaceGetBody_(ostream& oss,const string& className) ; 72 virtual void generateFortranInterfaceGetDeclaration(ostream& oss,const string& className) ; 76 virtual void generateFortranInterfaceGetDeclaration(ostream& oss,const string& className) ; 73 77 74 75 protected :76 77 /// Constructeurs ///78 // CAttributeTemplate(void); // Not implemented.79 78 private : 80 79 StdString _toString(void) const; -
XIOS/trunk/src/type/enum.hpp
r1105 r1107 134 134 } ; 135 135 136 template <typename T> __INLINE__bool operator== (const CEnum<T>& lhs, const typename T::t_enum& rhs);137 template <typename T> __INLINE__bool operator== (const typename T::t_enum& lhs, const CEnum<T>& rhs);138 template <typename T> __INLINE__bool operator== (const CEnum<T>& lhs, const CEnum<T>& rhs);139 template <typename T> __INLINE__bool operator== (const CEnum_ref<T>& lhs, const CEnum_ref<T>& rhs);140 template <typename T> __INLINE__bool operator== (const CEnum_ref<T>& lhs, const typename T::t_enum& rhs);141 template <typename T> __INLINE__bool operator== (const typename T::t_enum& lhs, const CEnum_ref<T>& rhs);142 template <typename T> __INLINE__bool operator== (const CEnum<T>& lhs, const CEnum_ref<T>& rhs) {return (lhs.get() == rhs.get());}143 template <typename T> __INLINE__bool operator== (const CEnum_ref<T>& lhs, const CEnum<T>& rhs) {return (rhs == lhs); }136 template <typename T> bool operator== (const CEnum<T>& lhs, const typename T::t_enum& rhs); 137 template <typename T> bool operator== (const typename T::t_enum& lhs, const CEnum<T>& rhs); 138 template <typename T> bool operator== (const CEnum<T>& lhs, const CEnum<T>& rhs); 139 template <typename T> bool operator== (const CEnum_ref<T>& lhs, const CEnum_ref<T>& rhs); 140 template <typename T> bool operator== (const CEnum_ref<T>& lhs, const typename T::t_enum& rhs); 141 template <typename T> bool operator== (const typename T::t_enum& lhs, const CEnum_ref<T>& rhs); 142 template <typename T> bool operator== (const CEnum<T>& lhs, const CEnum_ref<T>& rhs) {return (lhs.get() == rhs.get());} 143 template <typename T> bool operator== (const CEnum_ref<T>& lhs, const CEnum<T>& rhs) {return (rhs == lhs); } 144 144 145 145 template <typename T> __INLINE__ CBufferOut& operator<<(CBufferOut& buffer, const CEnum<T>& type) ; -
XIOS/trunk/src/type/type.hpp
r1105 r1107 128 128 } ; 129 129 130 template <typename T> inline bool operator==(const CType<T>& lhs, const T& rhs); 131 template <typename T> inline bool operator==(const T& lhs, const CType<T>& rhs); 132 template <typename T> inline bool operator==(const CType_ref<T>& lhs, const T& rhs); 133 template <typename T> inline bool operator==(const T& lhs, const CType_ref<T>& rhs); 134 template <typename T> inline bool operator==(const CType_ref<T>& lhs, const CType_ref<T>& rhs); 130 template <typename T> bool operator==(const CType<T>& lhs, const T& rhs); 131 template <typename T> bool operator==(const T& lhs, const CType<T>& rhs); 132 template <typename T> bool operator==(const CType_ref<T>& lhs, const T& rhs); 133 template <typename T> bool operator==(const T& lhs, const CType_ref<T>& rhs); 134 template <typename T> bool operator==(const CType<T>& lhs, const CType<T>& rhs); 135 template <typename T> bool operator==(const CType_ref<T>& lhs, const CType_ref<T>& rhs); 135 136 136 137 template <typename T> 137 inlinebool operator==(const CType_ref<T>& lhs, const CType<T>& rhs)138 bool operator==(const CType_ref<T>& lhs, const CType<T>& rhs) 138 139 { 139 140 if ((lhs.isEmpty() && !rhs.isEmpty()) || (!lhs.isEmpty() && rhs.isEmpty())) return false; … … 143 144 144 145 template <typename T> 145 inlinebool operator==(const CType<T>& lhs, const CType_ref<T>& rhs)146 bool operator==(const CType<T>& lhs, const CType_ref<T>& rhs) 146 147 { 147 148 return (rhs == lhs); -
XIOS/trunk/src/type/type_decl.cpp
r1105 r1107 12 12 template class CType<decl_type> ; \ 13 13 template class CType_ref<decl_type> ; \ 14 template CBufferOut& operator<< <decl_type> (CBufferOut& buffer, const CType<decl_type>& type) ; \ 15 template CBufferOut& operator<< <decl_type> (CBufferOut& buffer, const CType_ref<decl_type>& type) ; \ 16 template CBufferOut& operator<< <decl_type> (CBufferOut& buffer, decl_type& type) ; \ 17 template CBufferOut& operator<< <decl_type> (CBufferOut& buffer, const decl_type& type) ; \ 18 template CBufferIn& operator>> <decl_type> (CBufferIn& buffer, CType<decl_type>& type) ; \ 19 template CBufferIn& operator>> <decl_type> (CBufferIn& buffer, const CType_ref<decl_type>& type) ; \ 20 template CBufferIn& operator>> <decl_type> (CBufferIn& buffer, decl_type& type) ; \ 21 /* template CMessage& operator<< <decl_type> (CMessage& msg, const CType<decl_type>& type) ;*/ \ 22 /* template CMessage& operator<< <decl_type> (CMessage& msg, const CType_ref<decl_type>& type) ;*/ \ 23 template CMessage& operator<< <decl_type> (CMessage& msg, const decl_type& type) ; \ 24 template CMessage& operator<< <decl_type> (CMessage& msg, decl_type& type) ; \ 25 template bool operator==(const CType<decl_type>& lhs, const decl_type& rhs); \ 26 template bool operator==(const decl_type& lhs, const CType<decl_type>& rhs); \ 27 template bool operator==(const CType_ref<decl_type>& lhs, const decl_type& rhs); \ 28 template bool operator==(const decl_type& lhs, const CType_ref<decl_type>& rhs); \ 29 template bool operator==(const CType_ref<decl_type>& lhs, const CType<decl_type>& rhs); \ 30 template bool operator==(const CType<decl_type>& lhs, const CType_ref<decl_type>& rhs); \ 14 template CBufferOut& operator<< <decl_type> (CBufferOut& buffer, const CType<decl_type>& type) ; \ 15 template CBufferOut& operator<< <decl_type> (CBufferOut& buffer, const CType_ref<decl_type>& type) ; \ 16 template CBufferOut& operator<< <decl_type> (CBufferOut& buffer, decl_type& type) ; \ 17 template CBufferOut& operator<< <decl_type> (CBufferOut& buffer, const decl_type& type) ; \ 18 template CBufferIn& operator>> <decl_type> (CBufferIn& buffer, CType<decl_type>& type) ; \ 19 template CBufferIn& operator>> <decl_type> (CBufferIn& buffer, const CType_ref<decl_type>& type) ; \ 20 template CBufferIn& operator>> <decl_type> (CBufferIn& buffer, decl_type& type) ; \ 21 /* template CMessage& operator<< <decl_type> (CMessage& msg, const CType<decl_type>& type) ;*/ \ 22 /* template CMessage& operator<< <decl_type> (CMessage& msg, const CType_ref<decl_type>& type) ;*/ \ 23 template CMessage& operator<< <decl_type> (CMessage& msg, const decl_type& type) ; \ 24 template CMessage& operator<< <decl_type> (CMessage& msg, decl_type& type) ; \ 25 template bool operator==(const CType<decl_type>& lhs, const decl_type& rhs); \ 26 template bool operator==(const decl_type& lhs, const CType<decl_type>& rhs); \ 27 template bool operator==(const CType_ref<decl_type>& lhs, const decl_type& rhs); \ 28 template bool operator==(const decl_type& lhs, const CType_ref<decl_type>& rhs); \ 29 template bool operator==(const CType_ref<decl_type>& lhs, const CType<decl_type>& rhs); \ 30 template bool operator==(const CType<decl_type>& lhs, const CType_ref<decl_type>& rhs); \ 31 template bool operator==(const CType<decl_type>& lhs, const CType<decl_type>& rhs); \ 31 32 template bool operator==(const CType_ref<decl_type>& lhs, const CType_ref<decl_type>& rhs); 32 33
Note: See TracChangeset
for help on using the changeset viewer.