Ignore:
Timestamp:
12/19/18 18:45:46 (5 years ago)
Author:
yushan
Message:

inlining calendar fonctions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_trunk_omp/src/date/gregorian.hpp

    r591 r1629  
    2828            virtual int getYearTotalLength(const CDate & date) const; 
    2929            virtual int getMonthLength(const CDate & date) const; 
    30             virtual StdString getType(void) const; 
     30            inline virtual StdString getType(void) const { return (StdString("gregorian")); }; 
     31            inline virtual int getYearLength (void) const { return 12; } ; 
    3132 
    32             virtual bool hasLeapYear() const; 
     33            inline virtual bool hasLeapYear() const { return true; }; 
    3334 
    3435            /// Destructeur /// 
Note: See TracChangeset for help on using the changeset viewer.