Skip to content

Commit f077725

Browse files
committed
Cleanup interface
1 parent f01433e commit f077725

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

include/cppcore/Common/TBitField.h

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ template <class T>
3737
class TBitField {
3838
public:
3939
/// @brief The default class constructor.
40-
TBitField();
40+
TBitField() = default;
4141

4242
/// @brief The class constructor with the initial value.
4343
/// @param[in] init The init value.
@@ -48,7 +48,7 @@ class TBitField {
4848

4949
/// @brief Returns the current bit-mask.
5050
/// @return The bitmask.
51-
T GetMask() const;
51+
T getMask() const;
5252

5353
/// @brief Will return the bit at the given position.
5454
/// @param[in] pos The bit position for readout.
@@ -76,23 +76,17 @@ class TBitField {
7676
size_t maxBits() const;
7777

7878
private:
79-
T mBitMask;
79+
T mBitMask = 0;
8080
};
8181

82-
template <class T>
83-
inline TBitField<T>::TBitField() :
84-
mBitMask(0) {
85-
// empty
86-
}
87-
8882
template <class T>
8983
inline TBitField<T>::TBitField(T init) :
9084
mBitMask(init) {
9185
// empty
9286
}
9387

9488
template <class T>
95-
inline T TBitField<T>::GetMask() const {
89+
inline T TBitField<T>::getMask() const {
9690
return mBitMask;
9791
}
9892

0 commit comments

Comments
 (0)