AGX Dynamics  2.37.3.2
agx::BitSet_small< T > Class Template Reference

Special class for small bitset, because minimum bitset size in clang/gcc is 8 bytes, and we only need 4. More...

#include <BitSet_small.h>

Public Member Functions

 BitSet_small (T state=T(0))
 
 ~BitSet_small ()
 
T get () const
 
T & get ()
 
void set (size_t bit, bool flag)
 
T state () const
 
T & state ()
 
bool test (size_t bit) const
 

Protected Attributes

T m_state
 

Detailed Description

template<typename T>
class agx::BitSet_small< T >

Special class for small bitset, because minimum bitset size in clang/gcc is 8 bytes, and we only need 4.

Definition at line 28 of file BitSet_small.h.

Constructor & Destructor Documentation

◆ BitSet_small()

template<typename T >
agx::BitSet_small< T >::BitSet_small ( T  state = T(0))

Definition at line 50 of file BitSet_small.h.

◆ ~BitSet_small()

template<typename T >
agx::BitSet_small< T >::~BitSet_small ( )

Definition at line 55 of file BitSet_small.h.

Member Function Documentation

◆ get() [1/2]

template<typename T >
T agx::BitSet_small< T >::get ( ) const

Definition at line 74 of file BitSet_small.h.

References agx::BitSet_small< T >::m_state.

◆ get() [2/2]

template<typename T >
T & agx::BitSet_small< T >::get ( )

Definition at line 80 of file BitSet_small.h.

References agx::BitSet_small< T >::m_state.

◆ set()

template<typename T >
void agx::BitSet_small< T >::set ( size_t  bit,
bool  flag 
)

Definition at line 67 of file BitSet_small.h.

References agx::BitSet_small< T >::m_state.

◆ state() [1/2]

template<typename T >
T agx::BitSet_small< T >::state ( ) const

Definition at line 77 of file BitSet_small.h.

References agx::BitSet_small< T >::m_state.

◆ state() [2/2]

template<typename T >
T & agx::BitSet_small< T >::state ( )

Definition at line 83 of file BitSet_small.h.

References agx::BitSet_small< T >::m_state.

◆ test()

template<typename T >
bool agx::BitSet_small< T >::test ( size_t  bit) const

Definition at line 60 of file BitSet_small.h.

References agx::BitSet_small< T >::m_state.

Member Data Documentation

◆ m_state

template<typename T >
T agx::BitSet_small< T >::m_state
protected

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