glucat 0.12.0
Public Member Functions | Private Attributes | Friends | List of all members
glucat::index_set< LO, HI >::reference Class Reference

Index set member reference. More...

#include <index_set.h>

Collaboration diagram for glucat::index_set< LO, HI >::reference:
Collaboration graph
[legend]

Public Member Functions

 reference ()=delete
 Default constructor is deleted.
 
 reference (index_set_t &ist, index_t idx)
 index_set reference
 
 ~reference ()=default
 
auto operator== (const reference &c_j) const -> bool
 for b[i] == c[j];
 
auto operator= (const bool x) -> reference &
 for b[i] = x;
 
auto operator= (const reference &c_j) -> reference &
 for b[i] = c[j];
 
auto operator~ () const -> bool
 Flips a bit.
 
 operator bool () const
 for x = b[i];
 
auto flip () -> reference &
 for b[i].flip();
 

Private Attributes

index_set_tm_pst
 
index_t m_idx
 

Friends

class index_set
 

Detailed Description

template<const index_t LO, const index_t HI>
class glucat::index_set< LO, HI >::reference

Index set member reference.

Definition at line 177 of file index_set.h.

Constructor & Destructor Documentation

◆ reference() [1/2]

template<const index_t LO, const index_t HI>
glucat::index_set< LO, HI >::reference::reference ( )
delete

Default constructor is deleted.

◆ reference() [2/2]

template<const index_t LO, const index_t HI>
glucat::index_set< LO, HI >::reference::reference ( index_set_t ist,
index_t  idx 
)
inline

index_set reference

Definition at line 985 of file index_set_imp.h.

◆ ~reference()

template<const index_t LO, const index_t HI>
glucat::index_set< LO, HI >::reference::~reference ( )
default

Member Function Documentation

◆ flip()

template<const index_t LO, const index_t HI>
auto glucat::index_set< LO, HI >::reference::flip
inline

◆ operator bool()

template<const index_t LO, const index_t HI>
glucat::index_set< LO, HI >::reference::operator bool
inline

for x = b[i];

Definition at line 1041 of file index_set_imp.h.

◆ operator=() [1/2]

template<const index_t LO, const index_t HI>
auto glucat::index_set< LO, HI >::reference::operator= ( const bool  x) -> reference&
inline

for b[i] = x;

Definition at line 1003 of file index_set_imp.h.

◆ operator=() [2/2]

template<const index_t LO, const index_t HI>
auto glucat::index_set< LO, HI >::reference::operator= ( const reference c_j) -> reference&
inline

for b[i] = c[j];

Definition at line 1017 of file index_set_imp.h.

◆ operator==()

template<const index_t LO, const index_t HI>
auto glucat::index_set< LO, HI >::reference::operator== ( const reference c_j) const -> bool
inline

for b[i] == c[j];

Definition at line 995 of file index_set_imp.h.

◆ operator~()

template<const index_t LO, const index_t HI>
auto glucat::index_set< LO, HI >::reference::operator~
inline

Flips a bit.

flips the bit

Definition at line 1034 of file index_set_imp.h.

Friends And Related Function Documentation

◆ index_set

template<const index_t LO, const index_t HI>
friend class index_set
friend

Definition at line 178 of file index_set.h.

Member Data Documentation

◆ m_idx

template<const index_t LO, const index_t HI>
index_t glucat::index_set< LO, HI >::reference::m_idx
private

Definition at line 200 of file index_set.h.

◆ m_pst

template<const index_t LO, const index_t HI>
index_set_t* glucat::index_set< LO, HI >::reference::m_pst
private

Definition at line 199 of file index_set.h.


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