Ignore:
Timestamp:
07/26/22 15:26:52 (2 years ago)
Author:
jderouillat
Message:

Set the code structure to compute the hash value of an element based on its attributs, use for now before writing an element in a file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS3/trunk/src/attribute_enum_impl.hpp

    r2305 r2386  
    126126  } 
    127127 
     128  template <class T> 
     129  int CAttributeEnum<T>::computeHash(void) 
     130  { 
     131    // Basic hash computation through string 
     132    return std::hash<string>{}( toString() ); 
     133  } 
     134 
    128135  //--------------------------------------------------------------- 
    129136 
Note: See TracChangeset for help on using the changeset viewer.