AGX Dynamics  2.37.3.2
agx::BitArray< NUM_BITS >::const_reference Class Reference

Class which is a reference into an existing bitarray. More...

#include <BitArray.h>

Public Member Functions

 const_reference (const BitArray *array, size_t index)
 
 const_reference (const const_reference &other)
 Copy constructor. More...
 
 operator bool () const
 Cast operator to read a referenced value as a bool. More...
 
const_reference & operator= (const const_reference &other)
 assignment operator More...
 

Detailed Description

template<size_t NUM_BITS>
class agx::BitArray< NUM_BITS >::const_reference

Class which is a reference into an existing bitarray.

Definition at line 172 of file BitArray.h.

Constructor & Destructor Documentation

◆ const_reference() [1/2]

template<size_t NUM_BITS>
agx::BitArray< NUM_BITS >::const_reference::const_reference ( const BitArray *  array,
size_t  index 
)
inline

Definition at line 175 of file BitArray.h.

◆ const_reference() [2/2]

template<size_t NUM_BITS>
agx::BitArray< NUM_BITS >::const_reference::const_reference ( const const_reference &  other)
inline

Copy constructor.

Definition at line 192 of file BitArray.h.

Member Function Documentation

◆ operator bool()

template<size_t NUM_BITS>
agx::BitArray< NUM_BITS >::const_reference::operator bool ( ) const
inline

Cast operator to read a referenced value as a bool.

Returns
value of the referenced bit in the referenced bitarray

Definition at line 184 of file BitArray.h.

References agxAssert1.

◆ operator=()

template<size_t NUM_BITS>
const_reference& agx::BitArray< NUM_BITS >::const_reference::operator= ( const const_reference &  other)
inline

assignment operator

Definition at line 198 of file BitArray.h.


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