Nvwa  1.1
Public Member Functions | List of all members
nvwa::bool_array::_Element< _Byte_type > Class Template Reference

Class to represent a reference to an array element. More...

Public Member Functions

 _Element (_Byte_type *ptr, size_type pos)
 Constructs a reference to an array element. More...
 
bool operator= (bool value)
 Assigns a new boolean value to an array element. More...
 
 operator bool () const
 Reads the boolean value from an array element. More...
 

Detailed Description

template<typename _Byte_type>
class nvwa::bool_array::_Element< _Byte_type >

Class to represent a reference to an array element.

Constructor & Destructor Documentation

◆ _Element()

template<typename _Byte_type >
nvwa::bool_array::_Element< _Byte_type >::_Element ( _Byte_type *  ptr,
size_type  pos 
)
inline

Constructs a reference to an array element.

Parameters
ptrptr to the interal boolean data
posposition of the array element to access

Member Function Documentation

◆ operator bool()

template<typename _Byte_type >
nvwa::bool_array::_Element< _Byte_type >::operator bool ( ) const
inline

Reads the boolean value from an array element.

Returns
the boolean value of the accessed array element

◆ operator=()

template<typename _Byte_type >
bool nvwa::bool_array::_Element< _Byte_type >::operator= ( bool  value)
inline

Assigns a new boolean value to an array element.

Parameters
valuethe new boolean value
Returns
the assigned boolean value

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