Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set
// doxy/ or-tools/ src/ util/

operations_research::IntTupleSet Class Reference

Main IntTupleSet class. More...

#include <tuple_set.h>

List of all members.

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.


Detailed Description

Main IntTupleSet class.

Definition at line 47 of file tuple_set.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

void operations_research::IntTupleSet::Clear (  )  [inline]

Clears data.

Definition at line 249 of file tuple_set.h.

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]

Inserts the tuples.

Definition at line 292 of file tuple_set.h.

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]

Checks if the tuple is in the set.

Definition at line 283 of file tuple_set.h.

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]

Returns the number of tuples.

Definition at line 310 of file tuple_set.h.

int64 operations_research::IntTupleSet::Value ( int  tuple_index,
int  pos_in_tuple 
) const [inline]

Get the given tuple's value at the given position.

Definition at line 314 of file tuple_set.h.

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

Returns the arity of the set.

Definition at line 318 of file tuple_set.h.

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.


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