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

    r996 r1105  
    1212{ 
    1313      /// ////////////////////// Déclarations ////////////////////// /// 
     14      /*! 
     15        \class CAttributeMap 
     16        This class represents the set of attributes which an object can have. 
     17      */ 
     18 
    1419      class CAttributeMap 
    1520         : public xios_map<StdString, CAttribute*> 
     
    3439 
    3540            void clearAttribute(const StdString& key); 
     41            bool isEqual(const CAttributeMap& another); 
    3642 
    3743            /// Destructeur /// 
Note: See TracChangeset for help on using the changeset viewer.