File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ template <class T>
37
37
class TBitField {
38
38
public:
39
39
// / @brief The default class constructor.
40
- TBitField ();
40
+ TBitField () = default ;
41
41
42
42
// / @brief The class constructor with the initial value.
43
43
// / @param[in] init The init value.
@@ -48,7 +48,7 @@ class TBitField {
48
48
49
49
// / @brief Returns the current bit-mask.
50
50
// / @return The bitmask.
51
- T GetMask () const ;
51
+ T getMask () const ;
52
52
53
53
// / @brief Will return the bit at the given position.
54
54
// / @param[in] pos The bit position for readout.
@@ -76,23 +76,17 @@ class TBitField {
76
76
size_t maxBits () const ;
77
77
78
78
private:
79
- T mBitMask ;
79
+ T mBitMask = 0 ;
80
80
};
81
81
82
- template <class T >
83
- inline TBitField<T>::TBitField() :
84
- mBitMask (0 ) {
85
- // empty
86
- }
87
-
88
82
template <class T >
89
83
inline TBitField<T>::TBitField(T init) :
90
84
mBitMask (init) {
91
85
// empty
92
86
}
93
87
94
88
template <class T >
95
- inline T TBitField<T>::GetMask () const {
89
+ inline T TBitField<T>::getMask () const {
96
90
return mBitMask ;
97
91
}
98
92
You can’t perform that action at this time.
0 commit comments