Changeset 1105 for XIOS/trunk/src/attribute_template_impl.hpp
- Timestamp:
- 04/25/17 10:57:48 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/attribute_template_impl.hpp
r1028 r1105 139 139 { 140 140 return !this->isEmpty() || !inheritedValue.isEmpty() ; 141 } 142 143 template <class T> 144 bool CAttributeTemplate<T>::isEqual(const CAttribute& attr) 145 { 146 const CAttributeTemplate<T>& tmp = dynamic_cast<const CAttributeTemplate<T>& >(attr); 147 this->isEqual(tmp); 148 149 } 150 151 template <class T> 152 bool CAttributeTemplate<T>::isEqual(const CAttributeTemplate& attr) 153 { 154 if ((!this->hasInheritedValue() && !attr.hasInheritedValue())) 155 return true; 156 if (this->hasInheritedValue() && attr.hasInheritedValue()) 157 return (this->getInheritedValue() == attr.getInheritedValue()); 158 else 159 return false; 141 160 } 142 161
Note: See TracChangeset
for help on using the changeset viewer.