Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::SparseBitset< IntegerType > Class Template Reference

Detailed Description

template<typename IntegerType = int64_t>
class operations_research::SparseBitset< IntegerType >

Definition at line 842 of file bitset.h.

#include <bitset.h>

Public Member Functions

 SparseBitset ()
 SparseBitset (IntegerType size)
 SparseBitset (const SparseBitset &)=delete
SparseBitsetoperator= (const SparseBitset &)=delete
IntegerType size () const
void ResetAllToFalse ()
void ClearAndResize (IntegerType size)
void Resize (IntegerType size)
bool operator[] (IntegerType index) const
void Set (IntegerType index)
void CopyFrom (const SparseBitset &other)
Bitset64< IntegerType >::View BitsetView ()
Bitset64< IntegerType >::ConstView BitsetConstView ()
void SetUnsafe (typename Bitset64< IntegerType >::View view, IntegerType index)
void Clear (IntegerType index)
int NumberOfSetCallsWithDifferentArguments () const
const std::vector< IntegerType > & PositionsSetAtLeastOnce () const
void NotifyAllClear ()
Bitset64< IntegerType >::ConstView const_view () const

Constructor & Destructor Documentation

◆ SparseBitset() [1/3]

template<typename IntegerType = int64_t>
operations_research::SparseBitset< IntegerType >::SparseBitset ( )
inline

Definition at line 844 of file bitset.h.

◆ SparseBitset() [2/3]

template<typename IntegerType = int64_t>
operations_research::SparseBitset< IntegerType >::SparseBitset ( IntegerType size)
inlineexplicit

Definition at line 845 of file bitset.h.

◆ SparseBitset() [3/3]

template<typename IntegerType = int64_t>
operations_research::SparseBitset< IntegerType >::SparseBitset ( const SparseBitset< IntegerType > & )
delete

Member Function Documentation

◆ BitsetConstView()

template<typename IntegerType = int64_t>
Bitset64< IntegerType >::ConstView operations_research::SparseBitset< IntegerType >::BitsetConstView ( )
inline

Definition at line 893 of file bitset.h.

◆ BitsetView()

template<typename IntegerType = int64_t>
Bitset64< IntegerType >::View operations_research::SparseBitset< IntegerType >::BitsetView ( )
inline

Definition at line 892 of file bitset.h.

◆ Clear()

template<typename IntegerType = int64_t>
void operations_research::SparseBitset< IntegerType >::Clear ( IntegerType index)
inline

Definition at line 901 of file bitset.h.

◆ ClearAndResize()

template<typename IntegerType = int64_t>
void operations_research::SparseBitset< IntegerType >::ClearAndResize ( IntegerType size)
inline

Definition at line 852 of file bitset.h.

◆ const_view()

template<typename IntegerType = int64_t>
Bitset64< IntegerType >::ConstView operations_research::SparseBitset< IntegerType >::const_view ( ) const
inline

Definition at line 922 of file bitset.h.

◆ CopyFrom()

template<typename IntegerType = int64_t>
void operations_research::SparseBitset< IntegerType >::CopyFrom ( const SparseBitset< IntegerType > & other)
inline

Definition at line 885 of file bitset.h.

◆ NotifyAllClear()

template<typename IntegerType = int64_t>
void operations_research::SparseBitset< IntegerType >::NotifyAllClear ( )
inline

Definition at line 915 of file bitset.h.

◆ NumberOfSetCallsWithDifferentArguments()

template<typename IntegerType = int64_t>
int operations_research::SparseBitset< IntegerType >::NumberOfSetCallsWithDifferentArguments ( ) const
inline

Definition at line 902 of file bitset.h.

◆ operator=()

template<typename IntegerType = int64_t>
SparseBitset & operations_research::SparseBitset< IntegerType >::operator= ( const SparseBitset< IntegerType > & )
delete

◆ operator[]()

template<typename IntegerType = int64_t>
bool operations_research::SparseBitset< IntegerType >::operator[] ( IntegerType index) const
inline

Definition at line 877 of file bitset.h.

◆ PositionsSetAtLeastOnce()

template<typename IntegerType = int64_t>
const std::vector< IntegerType > & operations_research::SparseBitset< IntegerType >::PositionsSetAtLeastOnce ( ) const
inline

Definition at line 905 of file bitset.h.

◆ ResetAllToFalse()

template<typename IntegerType = int64_t>
void operations_research::SparseBitset< IntegerType >::ResetAllToFalse ( )
inline

Definition at line 851 of file bitset.h.

◆ Resize()

template<typename IntegerType = int64_t>
void operations_research::SparseBitset< IntegerType >::Resize ( IntegerType size)
inline

Definition at line 864 of file bitset.h.

◆ Set()

template<typename IntegerType = int64_t>
void operations_research::SparseBitset< IntegerType >::Set ( IntegerType index)
inline

Definition at line 878 of file bitset.h.

◆ SetUnsafe()

template<typename IntegerType = int64_t>
void operations_research::SparseBitset< IntegerType >::SetUnsafe ( typename Bitset64< IntegerType >::View view,
IntegerType index )
inline

Definition at line 896 of file bitset.h.

◆ size()

template<typename IntegerType = int64_t>
IntegerType operations_research::SparseBitset< IntegerType >::size ( ) const
inline

Definition at line 850 of file bitset.h.


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