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

Detailed Description

Definition at line 47 of file tuple_set.h.

#include <tuple_set.h>

Public Member Functions

 IntTupleSet (int arity)
 IntTupleSet (const IntTupleSet &set)
 ~IntTupleSet ()
void Clear ()
int Insert (const std::vector< int > &tuple)
int Insert (const std::vector< int64_t > &tuple)
int Insert2 (int64_t v0, int64_t v1)
int Insert3 (int64_t v0, int64_t v1, int64_t v2)
int Insert4 (int64_t v0, int64_t v1, int64_t v2, int64_t v3)
void InsertAll (const std::vector< std::vector< int64_t > > &tuples)
void InsertAll (const std::vector< std::vector< int > > &tuples)
bool Contains (const std::vector< int > &tuple) const
bool Contains (const std::vector< int64_t > &tuple) const
int NumTuples () const
int64_t Value (int tuple_index, int pos_in_tuple) const
int Arity () const
const int64_t * RawData () const
int NumDifferentValuesInColumn (int col) const
IntTupleSet SortedByColumn (int col) const
IntTupleSet SortedLexicographically () const

Constructor & Destructor Documentation

◆ IntTupleSet() [1/2]

operations_research::IntTupleSet::IntTupleSet ( int arity)
inlineexplicit

Definition at line 265 of file tuple_set.h.

◆ IntTupleSet() [2/2]

operations_research::IntTupleSet::IntTupleSet ( const IntTupleSet & set)
inline

Definition at line 270 of file tuple_set.h.

◆ ~IntTupleSet()

operations_research::IntTupleSet::~IntTupleSet ( )
inline

Definition at line 274 of file tuple_set.h.

Member Function Documentation

◆ Arity()

int operations_research::IntTupleSet::Arity ( ) const
inline

Definition at line 351 of file tuple_set.h.

◆ Clear()

void operations_research::IntTupleSet::Clear ( )
inline

Definition at line 281 of file tuple_set.h.

◆ Contains() [1/2]

bool operations_research::IntTupleSet::Contains ( const std::vector< int > & tuple) const
inline

Definition at line 321 of file tuple_set.h.

◆ Contains() [2/2]

bool operations_research::IntTupleSet::Contains ( const std::vector< int64_t > & tuple) const
inline

Definition at line 325 of file tuple_set.h.

◆ Insert() [1/2]

int operations_research::IntTupleSet::Insert ( const std::vector< int > & tuple)
inline

Definition at line 286 of file tuple_set.h.

◆ Insert() [2/2]

int operations_research::IntTupleSet::Insert ( const std::vector< int64_t > & tuple)
inline

Definition at line 291 of file tuple_set.h.

◆ Insert2()

int operations_research::IntTupleSet::Insert2 ( int64_t v0,
int64_t v1 )
inline

Definition at line 296 of file tuple_set.h.

◆ Insert3()

int operations_research::IntTupleSet::Insert3 ( int64_t v0,
int64_t v1,
int64_t v2 )
inline

Definition at line 303 of file tuple_set.h.

◆ Insert4()

int operations_research::IntTupleSet::Insert4 ( int64_t v0,
int64_t v1,
int64_t v2,
int64_t v3 )
inline

Definition at line 311 of file tuple_set.h.

◆ InsertAll() [1/2]

void operations_research::IntTupleSet::InsertAll ( const std::vector< std::vector< int > > & tuples)
inline

Definition at line 329 of file tuple_set.h.

◆ InsertAll() [2/2]

void operations_research::IntTupleSet::InsertAll ( const std::vector< std::vector< int64_t > > & tuples)
inline

Definition at line 337 of file tuple_set.h.

◆ NumDifferentValuesInColumn()

int operations_research::IntTupleSet::NumDifferentValuesInColumn ( int col) const
inline

Definition at line 355 of file tuple_set.h.

◆ NumTuples()

int operations_research::IntTupleSet::NumTuples ( ) const
inline

Definition at line 345 of file tuple_set.h.

◆ RawData()

const int64_t * operations_research::IntTupleSet::RawData ( ) const
inline

Definition at line 353 of file tuple_set.h.

◆ SortedByColumn()

IntTupleSet operations_research::IntTupleSet::SortedByColumn ( int col) const
inline

Definition at line 371 of file tuple_set.h.

◆ SortedLexicographically()

IntTupleSet operations_research::IntTupleSet::SortedLexicographically ( ) const
inline

Definition at line 404 of file tuple_set.h.

◆ Value()

int64_t operations_research::IntTupleSet::Value ( int tuple_index,
int pos_in_tuple ) const
inline

Definition at line 347 of file tuple_set.h.


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