Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Public Member Functions | Data Fields
test_set< N > Struct Template Reference

Public Member Functions

 test_set ()
 
 test_set (unsigned long val)
 
 test_set (const std::bitset< N > &rhs)
 
const char * bits () const
 
test_set & random ()
 
std::bitset< N > to_bitset () const
 
test_set & operator&= (const test_set &rhs)
 
test_set & operator|= (const test_set &rhs)
 
test_set & operator^= (const test_set &rhs)
 
test_set & operator<<= (std::size_t n)
 
test_set & operator>>= (std::size_t n)
 
test_set & set ()
 
test_set & set (std::size_t pos, bool val)
 
test_set & reset ()
 
test_set & reset (std::size_t pos)
 
test_set operator~ () const
 
test_set & flip ()
 
test_set & flip (std::size_t pos)
 
std::size_t count () const
 
bool operator== (const test_set &rhs) const
 
bool test (std::size_t pos) const
 

Data Fields

char bits_ [N+1]
 

Detailed Description

template<std::size_t N>
struct test_set< N >

Definition at line 59 of file 23.bitset.cpp.

Constructor & Destructor Documentation

◆ test_set() [1/3]

template<std::size_t N>
test_set< N >::test_set ( )
inline

Definition at line 63 of file 23.bitset.cpp.

◆ test_set() [2/3]

template<std::size_t N>
test_set< N >::test_set ( unsigned long  val)
inlineexplicit

Definition at line 68 of file 23.bitset.cpp.

◆ test_set() [3/3]

template<std::size_t N>
test_set< N >::test_set ( const std::bitset< N > &  rhs)
inlineexplicit

Definition at line 74 of file 23.bitset.cpp.

Member Function Documentation

◆ bits()

template<std::size_t N>
const char * test_set< N >::bits ( ) const
inline

Definition at line 82 of file 23.bitset.cpp.

◆ count()

template<std::size_t N>
std::size_t test_set< N >::count ( ) const
inline

Definition at line 169 of file 23.bitset.cpp.

◆ flip() [1/2]

template<std::size_t N>
test_set & test_set< N >::flip ( )
inline

Definition at line 158 of file 23.bitset.cpp.

◆ flip() [2/2]

template<std::size_t N>
test_set & test_set< N >::flip ( std::size_t  pos)
inline

Definition at line 164 of file 23.bitset.cpp.

◆ operator&=()

template<std::size_t N>
test_set & test_set< N >::operator&= ( const test_set< N > &  rhs)
inline

Definition at line 99 of file 23.bitset.cpp.

◆ operator<<=()

template<std::size_t N>
test_set & test_set< N >::operator<<= ( std::size_t  n)
inline

Definition at line 117 of file 23.bitset.cpp.

◆ operator==()

template<std::size_t N>
bool test_set< N >::operator== ( const test_set< N > &  rhs) const
inline

Definition at line 176 of file 23.bitset.cpp.

◆ operator>>=()

template<std::size_t N>
test_set & test_set< N >::operator>>= ( std::size_t  n)
inline

Definition at line 125 of file 23.bitset.cpp.

◆ operator^=()

template<std::size_t N>
test_set & test_set< N >::operator^= ( const test_set< N > &  rhs)
inline

Definition at line 111 of file 23.bitset.cpp.

◆ operator|=()

template<std::size_t N>
test_set & test_set< N >::operator|= ( const test_set< N > &  rhs)
inline

Definition at line 105 of file 23.bitset.cpp.

◆ operator~()

template<std::size_t N>
test_set test_set< N >::operator~ ( ) const
inline

Definition at line 154 of file 23.bitset.cpp.

◆ random()

template<std::size_t N>
test_set & test_set< N >::random ( )
inline

Definition at line 86 of file 23.bitset.cpp.

◆ reset() [1/2]

template<std::size_t N>
test_set & test_set< N >::reset ( )
inline

Definition at line 144 of file 23.bitset.cpp.

◆ reset() [2/2]

template<std::size_t N>
test_set & test_set< N >::reset ( std::size_t  pos)
inline

Definition at line 150 of file 23.bitset.cpp.

◆ set() [1/2]

template<std::size_t N>
test_set & test_set< N >::set ( )
inline

Definition at line 133 of file 23.bitset.cpp.

◆ set() [2/2]

template<std::size_t N>
test_set & test_set< N >::set ( std::size_t  pos,
bool  val 
)
inline

Definition at line 139 of file 23.bitset.cpp.

◆ test()

template<std::size_t N>
bool test_set< N >::test ( std::size_t  pos) const
inline

Definition at line 183 of file 23.bitset.cpp.

◆ to_bitset()

template<std::size_t N>
std::bitset< N > test_set< N >::to_bitset ( ) const
inline

Definition at line 92 of file 23.bitset.cpp.

Field Documentation

◆ bits_

template<std::size_t N>
char test_set< N >::bits_[N+1]

Definition at line 61 of file 23.bitset.cpp.


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