Changeset 1107 for XIOS/trunk/src/type
- Timestamp:
- 04/25/17 10:57:59 (7 years ago)
- Location:
- XIOS/trunk/src/type
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
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.