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/object_template.hpp

    r731 r1105  
    6161         static bool dispatchEvent(CEventServer& event) ; 
    6262 
     63         bool isEqual(const string& id); 
     64         bool isEqual(T* obj); 
     65 
    6366         /// Accesseur statique /// 
    6467         static std::vector<boost::shared_ptr<DerivedType> > & 
Note: See TracChangeset for help on using the changeset viewer.