OR-Tools  9.3
Bitset64< IndexType >

Detailed Description

template<typename IndexType = int64_t>
class operations_research::Bitset64< IndexType >

Definition at line 414 of file bitset.h.

Classes

class  Iterator
 

Public Member Functions

 Bitset64 ()
 
 Bitset64 (IndexType size)
 
IndexType size () const
 
void PushBack (bool value)
 
void Resize (IndexType size)
 
void ClearAndResize (IndexType size)
 
void ClearAll ()
 
void Clear (IndexType i)
 
void ClearBucket (IndexType i)
 
void ClearTwoBits (IndexType i)
 
bool AreOneOfTwoBitsSet (IndexType i) const
 
bool IsSet (IndexType i) const
 
bool operator[] (IndexType i) const
 
void Set (IndexType i)
 
void Set (IndexType i, bool value)
 
void CopyBucket (const Bitset64< IndexType > &other, IndexType i)
 
template<typename OtherIndexType >
void SetContentFromBitset (const Bitset64< OtherIndexType > &other)
 
template<typename OtherIndexType >
void SetContentFromBitsetOfSameSize (const Bitset64< OtherIndexType > &other)
 
void Intersection (const Bitset64< IndexType > &other)
 
void Union (const Bitset64< IndexType > &other)
 
Iterator begin () const
 
Iterator end () const
 
std::string DebugString () const
 

Static Public Member Functions

static uint64_t ConditionalXorOfTwoBits (IndexType i, uint64_t use1, const Bitset64< IndexType > &set1, uint64_t use2, const Bitset64< IndexType > &set2)
 

Constructor & Destructor Documentation

◆ Bitset64() [1/2]

Bitset64 ( )
inline

Definition at line 416 of file bitset.h.

◆ Bitset64() [2/2]

Bitset64 ( IndexType  size)
inlineexplicit

Definition at line 417 of file bitset.h.

Member Function Documentation

◆ AreOneOfTwoBitsSet()

bool AreOneOfTwoBitsSet ( IndexType  i) const
inline

Definition at line 478 of file bitset.h.

◆ begin()

Iterator begin ( ) const
inline

Definition at line 638 of file bitset.h.

◆ Clear()

void Clear ( IndexType  i)
inline

Definition at line 457 of file bitset.h.

◆ ClearAll()

void ClearAll ( )
inline

Definition at line 454 of file bitset.h.

◆ ClearAndResize()

void ClearAndResize ( IndexType  size)
inline

Definition at line 440 of file bitset.h.

◆ ClearBucket()

void ClearBucket ( IndexType  i)
inline

Definition at line 464 of file bitset.h.

◆ ClearTwoBits()

void ClearTwoBits ( IndexType  i)
inline

Definition at line 471 of file bitset.h.

◆ ConditionalXorOfTwoBits()

static uint64_t ConditionalXorOfTwoBits ( IndexType  i,
uint64_t  use1,
const Bitset64< IndexType > &  set1,
uint64_t  use2,
const Bitset64< IndexType > &  set2 
)
inlinestatic

Definition at line 643 of file bitset.h.

◆ CopyBucket()

void CopyBucket ( const Bitset64< IndexType > &  other,
IndexType  i 
)
inline

Definition at line 511 of file bitset.h.

◆ DebugString()

std::string DebugString ( ) const
inline

Definition at line 657 of file bitset.h.

◆ end()

Iterator end ( ) const
inline

Definition at line 639 of file bitset.h.

◆ Intersection()

void Intersection ( const Bitset64< IndexType > &  other)
inline

Definition at line 543 of file bitset.h.

◆ IsSet()

bool IsSet ( IndexType  i) const
inline

Definition at line 485 of file bitset.h.

◆ operator[]()

bool operator[] ( IndexType  i) const
inline

Definition at line 492 of file bitset.h.

◆ PushBack()

void PushBack ( bool  value)
inline

Definition at line 426 of file bitset.h.

◆ Resize()

void Resize ( IndexType  size)
inline

Definition at line 433 of file bitset.h.

◆ Set() [1/2]

void Set ( IndexType  i)
inline

Definition at line 495 of file bitset.h.

◆ Set() [2/2]

void Set ( IndexType  i,
bool  value 
)
inline

Definition at line 502 of file bitset.h.

◆ SetContentFromBitset()

void SetContentFromBitset ( const Bitset64< OtherIndexType > &  other)
inline

Definition at line 520 of file bitset.h.

◆ SetContentFromBitsetOfSameSize()

void SetContentFromBitsetOfSameSize ( const Bitset64< OtherIndexType > &  other)
inline

Definition at line 535 of file bitset.h.

◆ size()

IndexType size ( ) const
inline

Definition at line 423 of file bitset.h.

◆ Union()

void Union ( const Bitset64< IndexType > &  other)
inline

Definition at line 556 of file bitset.h.


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