OR-Tools  8.2
IntTupleSet

Detailed Description

Definition at line 49 of file 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 > &tuple)
 
int Insert2 (int64 v0, int64 v1)
 
int Insert3 (int64 v0, int64 v1, int64 v2)
 
int Insert4 (int64 v0, int64 v1, int64 v2, int64 v3)
 
void InsertAll (const std::vector< std::vector< int64 > > &tuples)
 
void InsertAll (const std::vector< std::vector< int > > &tuples)
 
bool Contains (const std::vector< int > &tuple) const
 
bool Contains (const std::vector< int64 > &tuple) const
 
int NumTuples () const
 
int64 Value (int tuple_index, int pos_in_tuple) const
 
int Arity () const
 
const int64RawData () const
 
int NumDifferentValuesInColumn (int col) const
 
IntTupleSet SortedByColumn (int col) const
 
IntTupleSet SortedLexicographically () const
 

Constructor & Destructor Documentation

◆ IntTupleSet() [1/2]

IntTupleSet ( int  arity)
inlineexplicit

Definition at line 268 of file tuple_set.h.

◆ IntTupleSet() [2/2]

IntTupleSet ( const IntTupleSet set)
inline

Definition at line 273 of file tuple_set.h.

◆ ~IntTupleSet()

~IntTupleSet ( )
inline

Definition at line 277 of file tuple_set.h.

Member Function Documentation

◆ Arity()

int Arity ( ) const
inline

Definition at line 353 of file tuple_set.h.

◆ Clear()

void Clear ( )
inline

Definition at line 284 of file tuple_set.h.

◆ Contains() [1/2]

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

Definition at line 323 of file tuple_set.h.

◆ Contains() [2/2]

bool Contains ( const std::vector< int64 > &  tuple) const
inline

Definition at line 327 of file tuple_set.h.

◆ Insert() [1/2]

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

Definition at line 289 of file tuple_set.h.

◆ Insert() [2/2]

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

Definition at line 294 of file tuple_set.h.

◆ Insert2()

int Insert2 ( int64  v0,
int64  v1 
)
inline

Definition at line 299 of file tuple_set.h.

◆ Insert3()

int Insert3 ( int64  v0,
int64  v1,
int64  v2 
)
inline

Definition at line 306 of file tuple_set.h.

◆ Insert4()

int Insert4 ( int64  v0,
int64  v1,
int64  v2,
int64  v3 
)
inline

Definition at line 314 of file tuple_set.h.

◆ InsertAll() [1/2]

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

Definition at line 331 of file tuple_set.h.

◆ InsertAll() [2/2]

void InsertAll ( const std::vector< std::vector< int64 > > &  tuples)
inline

Definition at line 339 of file tuple_set.h.

◆ NumDifferentValuesInColumn()

int NumDifferentValuesInColumn ( int  col) const
inline

Definition at line 357 of file tuple_set.h.

◆ NumTuples()

int NumTuples ( ) const
inline

Definition at line 347 of file tuple_set.h.

◆ RawData()

const int64 * RawData ( ) const
inline

Definition at line 355 of file tuple_set.h.

◆ SortedByColumn()

IntTupleSet SortedByColumn ( int  col) const
inline

Definition at line 373 of file tuple_set.h.

◆ SortedLexicographically()

IntTupleSet SortedLexicographically ( ) const
inline

Definition at line 406 of file tuple_set.h.

◆ Value()

int64 Value ( int  tuple_index,
int  pos_in_tuple 
) const
inline

Definition at line 349 of file tuple_set.h.


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