Changeset 1158 for XIOS/dev/dev_olga/src/attribute_enum_impl.hpp
- Timestamp:
- 06/06/17 17:58:16 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_olga/src/attribute_enum_impl.hpp
r580 r1158 88 88 void CAttributeEnum<T>::setInheritedValue(const CAttributeEnum& attr) 89 89 { 90 if (this->isEmpty() && attr.hasInheritedValue()) inheritedValue.set(attr.getInheritedValue());90 if (this->isEmpty() && _canInherite && attr.hasInheritedValue()) inheritedValue.set(attr.getInheritedValue()); 91 91 } 92 92 … … 109 109 { 110 110 return !this->isEmpty() || !inheritedValue.isEmpty(); 111 } 112 113 template <class T> 114 bool CAttributeEnum<T>::isEqual(const CAttribute& attr) 115 { 116 return (this->isEqual(dynamic_cast<const CAttributeEnum<T>& >(attr))); 117 } 118 119 template <class T> 120 bool CAttributeEnum<T>::isEqual(const CAttributeEnum& attr) 121 { 122 return ((dynamic_cast<const CEnum<T>& >(*this)) == (dynamic_cast<const CEnum<T>& >(attr))); 111 123 } 112 124
Note: See TracChangeset
for help on using the changeset viewer.