Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set | ||
|
||
#include <tuple_set.h>
Public Member Functions | |
IntTupleSet (int arity) | |
Creates an empty tuple set with a fixed length for all tuples. | |
IntTupleSet (const IntTupleSet &set) | |
Copy constructor (it actually does a lazy copy, see toplevel comment). | |
~IntTupleSet () | |
void | Clear () |
Clears data. | |
void | Insert (const std::vector< int > &tuple) |
Inserts the tuple to the set. | |
void | Insert (const std::vector< int64 > &tuple) |
void | Insert2 (int64 v0, int64 v1) |
Arity fixed version of Insert removing the need for a vector for the user. | |
void | Insert3 (int64 v0, int64 v1, int64 v2) |
void | Insert4 (int64 v0, int64 v1, int64 v2, int64 v3) |
void | InsertAll (const std::vector< std::vector< int64 > > &tuples) |
Inserts the tuples. | |
void | InsertAll (const std::vector< std::vector< int > > &tuples) |
bool | Contains (const std::vector< int > &tuple) |
Checks if the tuple is in the set. | |
bool | Contains (const std::vector< int64 > &tuple) |
int | NumTuples () const |
Returns the number of tuples. | |
int64 | Value (int tuple_index, int pos_in_tuple) const |
Get the given tuple's value at the given position. | |
int | Arity () const |
Returns the arity of the set. | |
const int64 * | RawData () const |
Access the raw data, see IntTupleSet::Data::flat_tuples_. | |
Classes | |
class | Data |
Class that holds the actual data of an IntTupleSet. |
Definition at line 47 of file tuple_set.h.
operations_research::IntTupleSet::IntTupleSet | ( | int | arity | ) | [inline, explicit] |
Creates an empty tuple set with a fixed length for all tuples.
Definition at line 233 of file tuple_set.h.
operations_research::IntTupleSet::IntTupleSet | ( | const IntTupleSet & | set | ) | [inline] |
Copy constructor (it actually does a lazy copy, see toplevel comment).
NOLINT
Definition at line 238 of file tuple_set.h.
operations_research::IntTupleSet::~IntTupleSet | ( | ) | [inline] |
Definition at line 242 of file tuple_set.h.
void operations_research::IntTupleSet::Clear | ( | ) | [inline] |
void operations_research::IntTupleSet::Insert | ( | const std::vector< int > & | tuple | ) | [inline] |
Inserts the tuple to the set.
It does nothing if the tuple is already in the set. The size of the tuple must be equal to the arity of the set.
Definition at line 254 of file tuple_set.h.
void operations_research::IntTupleSet::Insert | ( | const std::vector< int64 > & | tuple | ) | [inline] |
Definition at line 287 of file tuple_set.h.
void operations_research::IntTupleSet::Insert2 | ( | int64 | v0, | |
int64 | v1 | |||
) | [inline] |
Arity fixed version of Insert removing the need for a vector for the user.
Definition at line 259 of file tuple_set.h.
void operations_research::IntTupleSet::Insert3 | ( | int64 | v0, | |
int64 | v1, | |||
int64 | v2 | |||
) | [inline] |
Definition at line 266 of file tuple_set.h.
void operations_research::IntTupleSet::Insert4 | ( | int64 | v0, | |
int64 | v1, | |||
int64 | v2, | |||
int64 | v3 | |||
) | [inline] |
Definition at line 274 of file tuple_set.h.
void operations_research::IntTupleSet::InsertAll | ( | const std::vector< std::vector< int64 > > & | tuples | ) | [inline] |
void operations_research::IntTupleSet::InsertAll | ( | const std::vector< std::vector< int > > & | tuples | ) | [inline] |
Definition at line 299 of file tuple_set.h.
bool operations_research::IntTupleSet::Contains | ( | const std::vector< int > & | tuple | ) | [inline] |
bool operations_research::IntTupleSet::Contains | ( | const std::vector< int64 > & | tuple | ) | [inline] |
Definition at line 306 of file tuple_set.h.
int operations_research::IntTupleSet::NumTuples | ( | ) | const [inline] |
int64 operations_research::IntTupleSet::Value | ( | int | tuple_index, | |
int | pos_in_tuple | |||
) | const [inline] |
int operations_research::IntTupleSet::Arity | ( | ) | const [inline] |
const int64 * operations_research::IntTupleSet::RawData | ( | ) | const [inline] |
Access the raw data, see IntTupleSet::Data::flat_tuples_.
Definition at line 322 of file tuple_set.h.