Ignore:
Timestamp:
04/25/17 10:57:48 (7 years ago)
Author:
mhnguyen
Message:

Adding comparison operator between objects of XIOS.
Two objects of a same type are considered equal if they have same non-empty
attributes which have same values

+) Add operator== to class CArray
+) Add comparison operator to some basic attribute classes
+) Add operator== to date and duration (It seems that they don't serve much)

Test
+) On Curie
+) No Unit tests but test with transformation work (the next commit)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/type/type_decl.cpp

    r591 r1105  
    2222/*  template CMessage& operator<< <decl_type> (CMessage& msg, const CType_ref<decl_type>& type) ;*/ \ 
    2323  template CMessage& operator<< <decl_type> (CMessage& msg, const decl_type& type) ; \ 
    24   template CMessage& operator<< <decl_type> (CMessage& msg, 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_ref<decl_type>& lhs, const CType_ref<decl_type>& rhs);     
    2532   
    2633  macro(string) 
Note: See TracChangeset for help on using the changeset viewer.