mn::fast_type< Bits, TBaseType > Class Template Reference
#include <mn_fast_type.hpp>
Public Types | |
using | self_type = fast_type< Bits, TBaseType > |
using | value_type = TBaseType |
using | bit_type = fbit |
Public Attributes | |
union { | |
value_type | Value |
bit_type | bits [Bits] |
}; | |
Detailed Description
template<size_t Bits, typename TBaseType>
class mn::fast_type< Bits, TBaseType >
Template class for all fast types, a fast type can manupaleted bittable
Member Typedef Documentation
◆ bit_type
template<size_t Bits, typename TBaseType >
using mn::fast_type< Bits, TBaseType >::bit_type = fbit |
◆ self_type
template<size_t Bits, typename TBaseType >
using mn::fast_type< Bits, TBaseType >::self_type = fast_type<Bits, TBaseType> |
◆ value_type
template<size_t Bits, typename TBaseType >
using mn::fast_type< Bits, TBaseType >::value_type = TBaseType |
Constructor & Destructor Documentation
◆ fast_type() [1/2]
template<size_t Bits, typename TBaseType >
|
inlineexplicit |
Ctor
- Parameters
-
value_type the value for this type fast_type<int> a(3);
◆ fast_type() [2/2]
template<size_t Bits, typename TBaseType >
|
inline |
Member Function Documentation
◆ count()
template<size_t Bits, typename TBaseType >
|
inline |
Get the count of bits to set to 1
- Returns
- The count of bits to set to 1
◆ operator!=()
template<size_t Bits, typename TBaseType >
|
inline |
Is the other value with this not equel
- Returns
- True when not equel and false when not
◆ operator&()
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator&=()
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator*()
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator*=() [1/2]
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator*=() [2/2]
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator+()
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator++()
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator+=() [1/2]
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator+=() [2/2]
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator-()
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator--()
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator-=() [1/2]
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator-=() [2/2]
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator/()
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator/=() [1/2]
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator/=() [2/2]
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator<()
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator<<()
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator<<=() [1/2]
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator<<=() [2/2]
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator<=()
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator=() [1/2]
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator=() [2/2]
template<size_t Bits, typename TBaseType >
|
inline |
Set this fast type value to a new value
- Returns
- this
◆ operator==()
template<size_t Bits, typename TBaseType >
|
inline |
Is the other value with this equel
- Returns
- True when equel and false when not
◆ operator>()
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator>=()
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator>>()
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator>>=() [1/2]
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator>>=() [2/2]
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator[]()
template<size_t Bits, typename TBaseType >
|
inline |
Operator to get the bit from given positon
- Returns
- The bit from given positon
◆ operator^()
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator^=()
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator|()
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator|=()
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator~() [1/2]
template<size_t Bits, typename TBaseType >
|
inline |
◆ operator~() [2/2]
template<size_t Bits, typename TBaseType >
|
inline |
◆ set()
template<size_t Bits, typename TBaseType >
|
inline |
Set the a bit on given position
- Parameters
-
[in] pos The position to set [in] b The bit value to set
◆ size()
template<size_t Bits, typename TBaseType >
|
inline |
Get the numbers of bits
- Returns
- The numbers of bits
◆ zeros()
template<size_t Bits, typename TBaseType >
|
inline |
Get the count of bits to set to 0
- Returns
- The count of bits to set to 0
Member Data Documentation
◆
union { ... } |
The new type
The documentation for this class was generated from the following file: