diff options
author | Dirk Huss <dirk_huss@mentor.com> | 2015-11-25 14:38:28 +0100 |
---|---|---|
committer | Dirk Huss <dirk_huss@mentor.com> | 2015-11-25 14:38:28 +0100 |
commit | b6f81b22fcf8d9cf8ee9248408b7d2a72fbff1d9 (patch) | |
tree | 8b0b1438ccaa9450ca4b21221eb9cd74f14b10f5 /include/CommonAPI/Enumeration.hpp | |
parent | 3d2fb21d0e93b6b595610285e910ac80c099a174 (diff) | |
download | genivi-common-api-runtime-b6f81b22fcf8d9cf8ee9248408b7d2a72fbff1d9.tar.gz |
CommonAPI 3.1.4
Diffstat (limited to 'include/CommonAPI/Enumeration.hpp')
-rw-r--r-- | include/CommonAPI/Enumeration.hpp | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/include/CommonAPI/Enumeration.hpp b/include/CommonAPI/Enumeration.hpp index da0372d..15b4748 100644 --- a/include/CommonAPI/Enumeration.hpp +++ b/include/CommonAPI/Enumeration.hpp @@ -8,47 +8,47 @@ namespace CommonAPI { -template<typename _Base> +template<typename Base_> struct Enumeration { - Enumeration() = default; - Enumeration(const _Base &_value) : - value_(_value) { - } + Enumeration() = default; + Enumeration(const Base_ &_value) : + value_(_value) { + } - inline Enumeration &operator=(const _Base &_value) { - value_ = _value; - return (*this); - } + inline Enumeration &operator=(const Base_ &_value) { + value_ = _value; + return (*this); + } - inline operator const _Base() const { - return value_; - } + inline operator const Base_() const { + return value_; + } - inline bool operator==(const Enumeration<_Base> &_other) const { - return (value_ == _other.value_); - } + inline bool operator==(const Enumeration<Base_> &_other) const { + return (value_ == _other.value_); + } - inline bool operator!=(const Enumeration<_Base> &_other) const { - return (value_ != _other.value_); - } + inline bool operator!=(const Enumeration<Base_> &_other) const { + return (value_ != _other.value_); + } - inline bool operator<(const Enumeration<_Base> &_other) const { - return (value_ < _other.value_); - } + inline bool operator<(const Enumeration<Base_> &_other) const { + return (value_ < _other.value_); + } - inline bool operator<=(const Enumeration<_Base> &_other) const { - return (value_ <= _other.value_); - } + inline bool operator<=(const Enumeration<Base_> &_other) const { + return (value_ <= _other.value_); + } - inline bool operator>(const Enumeration<_Base> &_other) const { - return (value_ > _other.value_); - } + inline bool operator>(const Enumeration<Base_> &_other) const { + return (value_ > _other.value_); + } - inline bool operator>=(const Enumeration<_Base> &_other) const { - return (value_ >= _other.value_); - } + inline bool operator>=(const Enumeration<Base_> &_other) const { + return (value_ >= _other.value_); + } - _Base value_; + Base_ value_; }; } // namespace CommonAPI |