glucat  0.8.2
Public Member Functions | Private 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 (index_set_t &ist, index_t idx)
 index_set reference More...
 
 ~reference ()
 
referenceoperator= (const bool x)
 for b[i] = x; More...
 
referenceoperator= (const reference &j)
 for b[i] = b[j]; More...
 
bool operator~ () const
 Flips a bit. More...
 
 operator bool () const
 for x = b[i]; More...
 
referenceflip ()
 for b[i].flip(); More...
 

Private Member Functions

 reference ()
 Private default constructor is left undefined. More...
 

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 ( )
private

Private default constructor is left undefined.

◆ 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 983 of file index_set_imp.h.

◆ ~reference()

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

Definition at line 184 of file index_set.h.

Member Function Documentation

◆ flip()

template<const index_t LO, const index_t HI>
index_set< LO, HI >::reference & 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 ( ) const
inline

for x = b[i];

Definition at line 1028 of file index_set_imp.h.

◆ operator=() [1/2]

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

for b[i] = x;

Definition at line 993 of file index_set_imp.h.

◆ operator=() [2/2]

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

◆ operator~()

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

Flips a bit.

flips the bit

Definition at line 1021 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 198 of file index_set.h.

Referenced by glucat::index_set< LO, HI >::reference::operator=().

◆ 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 197 of file index_set.h.

Referenced by glucat::index_set< LO, HI >::reference::operator=().


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