TwiceAsNice  2019-02-18
Public Member Functions | Private Attributes | Friends | List of all members
Nice::bitset< N > Class Template Reference

#include <Bitset.h>

Collaboration diagram for Nice::bitset< N >:
Collaboration graph

Public Member Functions

 bitset (void)
 
 bitset (unsigned long val)
 
template<class charT , class traits , class Allocator >
 bitset (const std::basic_string< charT, traits, Allocator > &str, typename std::basic_string< charT, traits, Allocator >::size_type pos=0, typename std::basic_string< charT, traits, Allocator >::size_type n=std::basic_string< charT, traits, Allocator >::npos)
 
bool operator[] (size_t pos) const
 
booloperator[] (size_t pos)
 
Nice::bitset< N > & operator &= (const Nice::bitset< N > &rhs)
 
Nice::bitset< N > & operator|= (const Nice::bitset< N > &rhs)
 
Nice::bitset< N > & operator^= (const Nice::bitset< N > &rhs)
 
Nice::bitset< N > & operator<<= (const Nice::bitset< N > &rhs)
 
Nice::bitset< N > & operator>>= (const Nice::bitset< N > &rhs)
 
Nice::bitset< N > operator~ (void) const
 
Nice::bitset< N > operator<< (size_t pos) const
 
Nice::bitset< N > operator>> (size_t pos) const
 
bool operator== (const Nice::bitset< N > &rhs) const
 
bool operator!= (const Nice::bitset< N > &rhs) const
 
Nice::bitset< N > & set (void)
 
Nice::bitset< N > & set (size_t pos, bool val=true)
 
Nice::bitset< N > & flip (void)
 
Nice::bitset< N > & flip (size_t pos)
 
unsigned long to_ulong (void) const
 
template<class charT , class traits , class Allocator >
std::basic_string< charT, traits, Allocator > to_string (void) const
 
size_t count (void) const
 
size_t size (void) const
 
bool test (size_t pos) const
 
bool any (void) const
 
bool none (void) const
 
 operator std::bitset< N > ()
 

Private Attributes

std::bitset< N > storage
 
boost::mutex mutex
 

Friends

template<size_t U>
Nice::bitset< U > operator & (const Nice::bitset< U > &lhs, const Nice::bitset< U > &rhs)
 
template<size_t U>
Nice::bitset< U > operator| (const Nice::bitset< U > &lhs, const Nice::bitset< U > &rhs)
 
template<size_t U>
Nice::bitset< U > operator^ (const Nice::bitset< U > &lhs, const Nice::bitset< U > &rhs)
 
template<class charT , class traits , size_t U>
std::basic_istream< charT, traits > & operator>> (std::basic_istream< charT, traits > &is, Nice::bitset< U > &rhs)
 
template<class charT , class traits , size_t U>
std::basic_ostream< charT, traits > & operator<< (std::basic_ostream< charT, traits > &os, const Nice::bitset< U > &rhs)
 

Constructor & Destructor Documentation

◆ bitset() [1/3]

template<size_t N>
Nice::bitset< N >::bitset ( void  )
inline

◆ bitset() [2/3]

template<size_t N>
Nice::bitset< N >::bitset ( unsigned long  val)
inline

◆ bitset() [3/3]

template<size_t N>
template<class charT , class traits , class Allocator >
Nice::bitset< N >::bitset ( const std::basic_string< charT, traits, Allocator > &  str,
typename std::basic_string< charT, traits, Allocator >::size_type  pos = 0,
typename std::basic_string< charT, traits, Allocator >::size_type  n = std::basic_string<charT,traits,Allocator>::npos 
)
inlineexplicit

Member Function Documentation

◆ any()

template<size_t N>
bool Nice::bitset< N >::any ( void  ) const
inline

◆ count()

template<size_t N>
size_t Nice::bitset< N >::count ( void  ) const
inline

◆ flip() [1/2]

template<size_t N>
Nice::bitset<N>& Nice::bitset< N >::flip ( void  )
inline

◆ flip() [2/2]

template<size_t N>
Nice::bitset<N>& Nice::bitset< N >::flip ( size_t  pos)
inline

◆ none()

template<size_t N>
bool Nice::bitset< N >::none ( void  ) const
inline

◆ operator &=()

template<size_t N>
Nice::bitset<N>& Nice::bitset< N >::operator&= ( const Nice::bitset< N > &  rhs)
inline

◆ operator std::bitset< N >()

template<size_t N>
Nice::bitset< N >::operator std::bitset< N > ( )
inline

◆ operator!=()

template<size_t N>
bool Nice::bitset< N >::operator!= ( const Nice::bitset< N > &  rhs) const
inline

◆ operator<<()

template<size_t N>
Nice::bitset<N> Nice::bitset< N >::operator<< ( size_t  pos) const
inline

◆ operator<<=()

template<size_t N>
Nice::bitset<N>& Nice::bitset< N >::operator<<= ( const Nice::bitset< N > &  rhs)
inline

◆ operator==()

template<size_t N>
bool Nice::bitset< N >::operator== ( const Nice::bitset< N > &  rhs) const
inline

◆ operator>>()

template<size_t N>
Nice::bitset<N> Nice::bitset< N >::operator>> ( size_t  pos) const
inline

◆ operator>>=()

template<size_t N>
Nice::bitset<N>& Nice::bitset< N >::operator>>= ( const Nice::bitset< N > &  rhs)
inline

◆ operator[]() [1/2]

template<size_t N>
bool Nice::bitset< N >::operator[] ( size_t  pos) const
inline

◆ operator[]() [2/2]

template<size_t N>
bool& Nice::bitset< N >::operator[] ( size_t  pos)
inline

◆ operator^=()

template<size_t N>
Nice::bitset<N>& Nice::bitset< N >::operator^= ( const Nice::bitset< N > &  rhs)
inline

◆ operator|=()

template<size_t N>
Nice::bitset<N>& Nice::bitset< N >::operator|= ( const Nice::bitset< N > &  rhs)
inline

◆ operator~()

template<size_t N>
Nice::bitset<N> Nice::bitset< N >::operator~ ( void  ) const
inline

◆ set() [1/2]

template<size_t N>
Nice::bitset<N>& Nice::bitset< N >::set ( void  )
inline

◆ set() [2/2]

template<size_t N>
Nice::bitset<N>& Nice::bitset< N >::set ( size_t  pos,
bool  val = true 
)
inline

◆ size()

template<size_t N>
size_t Nice::bitset< N >::size ( void  ) const
inline

◆ test()

template<size_t N>
bool Nice::bitset< N >::test ( size_t  pos) const
inline

◆ to_string()

template<size_t N>
template<class charT , class traits , class Allocator >
std::basic_string<charT, traits, Allocator> Nice::bitset< N >::to_string ( void  ) const
inline

◆ to_ulong()

template<size_t N>
unsigned long Nice::bitset< N >::to_ulong ( void  ) const
inline

Friends And Related Function Documentation

◆ operator &

template<size_t N>
template<size_t U>
Nice::bitset<U> operator& ( const Nice::bitset< U > &  lhs,
const Nice::bitset< U > &  rhs 
)
friend

◆ operator<<

template<size_t N>
template<class charT , class traits , size_t U>
std::basic_ostream<charT, traits>& operator<< ( std::basic_ostream< charT, traits > &  os,
const Nice::bitset< U > &  rhs 
)
friend

◆ operator>>

template<size_t N>
template<class charT , class traits , size_t U>
std::basic_istream<charT, traits>& operator>> ( std::basic_istream< charT, traits > &  is,
Nice::bitset< U > &  rhs 
)
friend

◆ operator^

template<size_t N>
template<size_t U>
Nice::bitset<U> operator^ ( const Nice::bitset< U > &  lhs,
const Nice::bitset< U > &  rhs 
)
friend

◆ operator|

template<size_t N>
template<size_t U>
Nice::bitset<U> operator| ( const Nice::bitset< U > &  lhs,
const Nice::bitset< U > &  rhs 
)
friend

Member Data Documentation

◆ mutex

template<size_t N>
boost::mutex Nice::bitset< N >::mutex
mutableprivate

◆ storage

template<size_t N>
std::bitset<N> Nice::bitset< N >::storage
private

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