OR-Tools  9.6
Bitset64< IndexType >

Detailed Description

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

Definition at line 415 of file bitset.h.

Classes

class  ConstView
 
class  EndIterator
 
class  Iterator
 

Public Member Functions

 Bitset64 ()
 
 Bitset64 (IndexType size)
 
ConstView const_view () const
 
IndexType size () const
 
void PushBack (bool value)
 
void resize (int size)
 
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
 
EndIterator 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 433 of file bitset.h.

◆ Bitset64() [2/2]

Bitset64 ( IndexType  size)
inlineexplicit

Definition at line 434 of file bitset.h.

Member Function Documentation

◆ AreOneOfTwoBitsSet()

bool AreOneOfTwoBitsSet ( IndexType  i) const
inline

Definition at line 497 of file bitset.h.

◆ begin()

Iterator begin ( ) const
inline

Definition at line 626 of file bitset.h.

◆ Clear()

void Clear ( IndexType  i)
inline

Definition at line 476 of file bitset.h.

◆ ClearAll()

void ClearAll ( )
inline

Definition at line 473 of file bitset.h.

◆ ClearAndResize()

void ClearAndResize ( IndexType  size)
inline

Definition at line 459 of file bitset.h.

◆ ClearBucket()

void ClearBucket ( IndexType  i)
inline

Definition at line 483 of file bitset.h.

◆ ClearTwoBits()

void ClearTwoBits ( IndexType  i)
inline

Definition at line 490 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 631 of file bitset.h.

◆ const_view()

ConstView const_view ( ) const
inline

Definition at line 438 of file bitset.h.

◆ CopyBucket()

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

Definition at line 530 of file bitset.h.

◆ DebugString()

std::string DebugString ( ) const
inline

Definition at line 644 of file bitset.h.

◆ end()

EndIterator end ( ) const
inline

Definition at line 627 of file bitset.h.

◆ Intersection()

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

Definition at line 562 of file bitset.h.

◆ IsSet()

bool IsSet ( IndexType  i) const
inline

Definition at line 504 of file bitset.h.

◆ operator[]()

bool operator[] ( IndexType  i) const
inline

Definition at line 511 of file bitset.h.

◆ PushBack()

void PushBack ( bool  value)
inline

Definition at line 444 of file bitset.h.

◆ Resize()

void Resize ( IndexType  size)
inline

Definition at line 452 of file bitset.h.

◆ resize()

void resize ( int  size)
inline

Definition at line 451 of file bitset.h.

◆ Set() [1/2]

void Set ( IndexType  i)
inline

Definition at line 514 of file bitset.h.

◆ Set() [2/2]

void Set ( IndexType  i,
bool  value 
)
inline

Definition at line 521 of file bitset.h.

◆ SetContentFromBitset()

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

Definition at line 539 of file bitset.h.

◆ SetContentFromBitsetOfSameSize()

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

Definition at line 554 of file bitset.h.

◆ size()

IndexType size ( ) const
inline

Definition at line 441 of file bitset.h.

◆ Union()

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

Definition at line 575 of file bitset.h.


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