proxygen
folly::bititerator_detail::BitReference< Ref, Value > Class Template Reference

#include <BitIteratorDetail.h>

Public Member Functions

 BitReference (Ref r, size_t bit)
 
 operator bool () const
 
BitReferenceoperator= (bool b)
 
void set ()
 
void clear ()
 
void flip ()
 

Private Attributes

Ref ref_
 
size_t bit_
 

Static Private Attributes

static const Value one_ = 1
 

Detailed Description

template<class Ref, class Value>
class folly::bititerator_detail::BitReference< Ref, Value >

Definition at line 36 of file BitIteratorDetail.h.

Constructor & Destructor Documentation

template<class Ref , class Value >
folly::bititerator_detail::BitReference< Ref, Value >::BitReference ( Ref  r,
size_t  bit 
)
inline

Member Function Documentation

template<class Ref , class Value >
BitReference& folly::bititerator_detail::BitReference< Ref, Value >::operator= ( bool  b)
inline

Definition at line 44 of file BitIteratorDetail.h.

References folly::bititerator_detail::BitReference< Ref, Value >::clear().

44  {
45  if (b) {
46  set();
47  } else {
48  clear();
49  }
50  return *this;
51  }
char b

Member Data Documentation


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