CppELib 1.7.0
Loading...
Searching...
No Matches
Container::BitPattern< T > Class Template Reference

The container with bitwise operation like std::bitset. More...

#include <BitPattern.h>

Public Member Functions

 BitPattern ()
 
 BitPattern (T pattern)
 
std::size_t size () const
 
BitPatternset ()
 
BitPatternset (std::size_t pos)
 
BitPatternreset ()
 
BitPatternreset (std::size_t pos)
 
BitPatternflip ()
 
BitPatternflip (std::size_t pos)
 
 operator const T & () const
 
 operator T& ()
 
bool test (std::size_t pos) const
 
bool all () const
 
bool any () const
 
bool none () const
 

Detailed Description

template<typename T>
class Container::BitPattern< T >

The container with bitwise operation like std::bitset.

Size of BitPattern<T> is the bit width of type T.

Template Parameters
TUnsigned integer type with any width

Constructor & Destructor Documentation

◆ BitPattern() [1/2]

template<typename T >
Container::BitPattern< T >::BitPattern ( )
inline

◆ BitPattern() [2/2]

template<typename T >
Container::BitPattern< T >::BitPattern ( pattern)
inline

Member Function Documentation

◆ all()

template<typename T >
bool Container::BitPattern< T >::all ( ) const
inline

◆ any()

template<typename T >
bool Container::BitPattern< T >::any ( ) const
inline

◆ flip() [1/2]

template<typename T >
BitPattern & Container::BitPattern< T >::flip ( )
inline

◆ flip() [2/2]

template<typename T >
BitPattern & Container::BitPattern< T >::flip ( std::size_t  pos)
inline

◆ none()

template<typename T >
bool Container::BitPattern< T >::none ( ) const
inline

◆ operator const T &()

template<typename T >
Container::BitPattern< T >::operator const T & ( ) const
inline

◆ operator T&()

template<typename T >
Container::BitPattern< T >::operator T& ( )
inline

◆ reset() [1/2]

template<typename T >
BitPattern & Container::BitPattern< T >::reset ( )
inline

◆ reset() [2/2]

template<typename T >
BitPattern & Container::BitPattern< T >::reset ( std::size_t  pos)
inline

◆ set() [1/2]

template<typename T >
BitPattern & Container::BitPattern< T >::set ( )
inline

◆ set() [2/2]

template<typename T >
BitPattern & Container::BitPattern< T >::set ( std::size_t  pos)
inline

◆ size()

template<typename T >
std::size_t Container::BitPattern< T >::size ( ) const
inline

◆ test()

template<typename T >
bool Container::BitPattern< T >::test ( std::size_t  pos) const
inline

The documentation for this class was generated from the following file: