Changeset 1107 for XIOS/trunk


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

Clean up some compilation warnings

Location:
XIOS/trunk/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/attribute.cpp

    r680 r1107  
    1212      { /* Ne rien faire de plus */ } 
    1313/* 
    14       CAttribute::CAttribute(const CAttribute & attribut) 
    15          : CObject(attribut.getId()),CBaseType() 
    16       {  
    17  //        this->value = attribut.getAnyValue();  
    18       } 
    1914*/       
    2015      CAttribute::~CAttribute(void) 
     
    2217       
    2318      ///-------------------------------------------------------------- 
    24 /* 
    25       const boost::any & CAttribute::getAnyValue(void) const 
    26       {  
    27          return (this->value);  
    28       } 
    2919 
    30  
    31       void CAttribute::setAnyValue(const boost::any & value) 
    32       {  
    33          this->value = value;  
    34       } 
    35        
    36       void CAttribute::clear(void) 
    37       { 
    38          this->value = boost::any();  
    39       } 
    40  
    41       //--------------------------------------------------------------- 
    42  
    43       bool CAttribute::isEmpty(void) const 
    44       {  
    45          return (this->value.empty());  
    46       } 
    47 */ 
    4820      const StdString & CAttribute::getName(void) const 
    4921      {  
     
    7951      ///-------------------------------------------------------------- 
    8052 
    81  
    8253      CMessage& operator<<(CMessage& msg,CAttribute& type) 
    8354      { 
  • XIOS/trunk/src/attribute_array.hpp

    r1105 r1107  
    1313{ 
    1414      /// ////////////////////// Déclarations ////////////////////// /// 
     15      /*! 
     16        \class CAttributeArray 
     17        This class implements the attribute representing array of value 
     18      */ 
    1519      template <typename T_numtype, int N_rank> 
    1620         class CAttributeArray : public CAttribute, public CArray<T_numtype, N_rank> 
     
    1923 
    2024           using CArray<T_numtype,N_rank>::operator = ; 
    21 //           using Array<T_numtype,N_rank>::operator = ; 
    2225 
    2326            /// Constructeurs /// 
     
    6366            virtual void generateFortranInterfaceGetDeclaration(ostream& oss,const string& className) ; 
    6467 
    65  
    66          protected : 
    67  
    68             /// Constructeurs /// 
    69  
    7068         private : 
    7169          CArray<T_numtype, N_rank> inheritedValue ; 
  • XIOS/trunk/src/attribute_enum.hpp

    r1105 r1107  
    1515{ 
    1616      /// ////////////////////// Déclarations ////////////////////// /// 
     17        /*! 
     18        \class CAttributeEnum 
     19        This class implements the attribute representing enumeration 
     20      */ 
    1721      template <class T> 
    1822         class CAttributeEnum : public CAttribute, public CEnum<T> 
     
    7074            virtual void generateFortranInterfaceGetDeclaration_(ostream& oss,const string& className) ; 
    7175            virtual void generateFortranInterfaceGetBody_(ostream& oss,const string& className) ; 
    72             virtual void generateFortranInterfaceGetDeclaration(ostream& oss,const string& className) ; 
     76            virtual void generateFortranInterfaceGetDeclaration(ostream& oss,const string& className) ;       
    7377 
    74        
    75          protected : 
    76  
    77             /// Constructeurs /// 
    78 //            CAttributeTemplate(void); // Not implemented. 
    7978         private : 
    8079          StdString _toString(void) const; 
  • XIOS/trunk/src/type/enum.hpp

    r1105 r1107  
    134134  } ; 
    135135   
    136   template <typename T> __INLINE__ bool operator== (const CEnum<T>& lhs, const typename T::t_enum& rhs); 
    137   template <typename T> __INLINE__ bool operator== (const typename T::t_enum& lhs, const CEnum<T>& rhs); 
    138   template <typename T> __INLINE__ bool operator== (const CEnum<T>& lhs, const CEnum<T>& rhs);   
    139   template <typename T> __INLINE__ bool operator== (const CEnum_ref<T>& lhs, const CEnum_ref<T>& rhs); 
    140   template <typename T> __INLINE__ bool operator== (const CEnum_ref<T>& lhs, const typename T::t_enum& rhs); 
    141   template <typename T> __INLINE__ bool operator== (const typename T::t_enum& lhs, const CEnum_ref<T>& rhs); 
    142   template <typename T> __INLINE__ bool operator== (const CEnum<T>& lhs, const CEnum_ref<T>& rhs) {return (lhs.get() == rhs.get());} 
    143   template <typename T> __INLINE__ bool operator== (const CEnum_ref<T>& lhs, const CEnum<T>& rhs) {return (rhs == lhs); } 
     136  template <typename T> bool operator== (const CEnum<T>& lhs, const typename T::t_enum& rhs); 
     137  template <typename T> bool operator== (const typename T::t_enum& lhs, const CEnum<T>& rhs); 
     138  template <typename T> bool operator== (const CEnum<T>& lhs, const CEnum<T>& rhs);   
     139  template <typename T> bool operator== (const CEnum_ref<T>& lhs, const CEnum_ref<T>& rhs); 
     140  template <typename T> bool operator== (const CEnum_ref<T>& lhs, const typename T::t_enum& rhs); 
     141  template <typename T> bool operator== (const typename T::t_enum& lhs, const CEnum_ref<T>& rhs); 
     142  template <typename T> bool operator== (const CEnum<T>& lhs, const CEnum_ref<T>& rhs) {return (lhs.get() == rhs.get());} 
     143  template <typename T> bool operator== (const CEnum_ref<T>& lhs, const CEnum<T>& rhs) {return (rhs == lhs); } 
    144144 
    145145  template <typename T> __INLINE__ CBufferOut& operator<<(CBufferOut& buffer, const CEnum<T>& type) ; 
  • XIOS/trunk/src/type/type.hpp

    r1105 r1107  
    128128  } ; 
    129129 
    130   template <typename T> inline bool operator==(const CType<T>& lhs, const T& rhs);    
    131   template <typename T> inline bool operator==(const T& lhs, const CType<T>& rhs);    
    132   template <typename T> inline bool operator==(const CType_ref<T>& lhs, const T& rhs);    
    133   template <typename T> inline bool operator==(const T& lhs, const CType_ref<T>& rhs);  
    134   template <typename T> inline bool operator==(const CType_ref<T>& lhs, const CType_ref<T>& rhs);  
     130  template <typename T> bool operator==(const CType<T>& lhs, const T& rhs);    
     131  template <typename T> bool operator==(const T& lhs, const CType<T>& rhs);    
     132  template <typename T> bool operator==(const CType_ref<T>& lhs, const T& rhs);    
     133  template <typename T> bool operator==(const T& lhs, const CType_ref<T>& rhs);  
     134  template <typename T> bool operator==(const CType<T>& lhs, const CType<T>& rhs);  
     135  template <typename T> bool operator==(const CType_ref<T>& lhs, const CType_ref<T>& rhs);  
    135136 
    136137  template <typename T> 
    137   inline bool operator==(const CType_ref<T>& lhs, const CType<T>& rhs) 
     138  bool operator==(const CType_ref<T>& lhs, const CType<T>& rhs) 
    138139  { 
    139140    if ((lhs.isEmpty() && !rhs.isEmpty()) || (!lhs.isEmpty() && rhs.isEmpty())) return false; 
     
    143144 
    144145  template <typename T> 
    145   inline bool operator==(const CType<T>& lhs, const CType_ref<T>& rhs) 
     146  bool operator==(const CType<T>& lhs, const CType_ref<T>& rhs) 
    146147  { 
    147148    return (rhs == lhs); 
  • XIOS/trunk/src/type/type_decl.cpp

    r1105 r1107  
    1212  template class CType<decl_type> ; \ 
    1313  template class CType_ref<decl_type> ; \ 
    14   template CBufferOut& operator<< <decl_type> (CBufferOut& buffer, const CType<decl_type>& type) ; \ 
    15   template CBufferOut& operator<< <decl_type> (CBufferOut& buffer, const CType_ref<decl_type>& type) ; \ 
    16   template CBufferOut& operator<< <decl_type> (CBufferOut& buffer, decl_type& type) ; \ 
    17   template CBufferOut& operator<< <decl_type> (CBufferOut& buffer, const decl_type& type) ; \ 
    18   template CBufferIn& operator>> <decl_type> (CBufferIn& buffer, CType<decl_type>& type) ; \ 
    19   template CBufferIn& operator>> <decl_type> (CBufferIn& buffer, const CType_ref<decl_type>& type) ; \ 
    20   template CBufferIn& operator>> <decl_type> (CBufferIn& buffer, decl_type& type) ; \ 
    21 /*  template CMessage& operator<< <decl_type> (CMessage& msg, const CType<decl_type>& type) ;*/ \ 
    22 /*  template CMessage& operator<< <decl_type> (CMessage& msg, const CType_ref<decl_type>& type) ;*/ \ 
    23   template CMessage& operator<< <decl_type> (CMessage& msg, const 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);     \ 
     14  template CBufferOut& operator<< <decl_type> (CBufferOut& buffer, const CType<decl_type>& type) ;       \ 
     15  template CBufferOut& operator<< <decl_type> (CBufferOut& buffer, const CType_ref<decl_type>& type) ;   \ 
     16  template CBufferOut& operator<< <decl_type> (CBufferOut& buffer, decl_type& type) ;                    \ 
     17  template CBufferOut& operator<< <decl_type> (CBufferOut& buffer, const decl_type& type) ;              \ 
     18  template CBufferIn& operator>> <decl_type> (CBufferIn& buffer, CType<decl_type>& type) ;               \ 
     19  template CBufferIn& operator>> <decl_type> (CBufferIn& buffer, const CType_ref<decl_type>& type) ;     \ 
     20  template CBufferIn& operator>> <decl_type> (CBufferIn& buffer, decl_type& type) ;                      \ 
     21/*  template CMessage& operator<< <decl_type> (CMessage& msg, const CType<decl_type>& type) ;*/          \ 
     22/*  template CMessage& operator<< <decl_type> (CMessage& msg, const CType_ref<decl_type>& type) ;*/      \ 
     23  template CMessage& operator<< <decl_type> (CMessage& msg, const 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<decl_type>& lhs, const CType<decl_type>& rhs);                    \ 
    3132  template bool operator==(const CType_ref<decl_type>& lhs, const CType_ref<decl_type>& rhs);     
    3233   
Note: See TracChangeset for help on using the changeset viewer.