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

operations_research::CPModelLoader Class Reference

CPModelLoader. More...

List of all members.

Public Member Functions

 CPModelLoader (Solver *const solver)
 ~CPModelLoader ()
Solversolver () const
bool BuildFromProto (const CPIntegerExpressionProto &proto)
 Builds integer expression from proto and stores it.
ConstraintBuildFromProto (const CPConstraintProto &proto)
 Builds constraint from proto and returns it.
bool BuildFromProto (const CPIntervalVariableProto &proto)
 Builds interval variable from proto and stores it.
bool BuildFromProto (const CPSequenceVariableProto &proto)
 Builds sequence variable from proto and stores it.
IntExprIntegerExpression (int index) const
 Returns stored integer expression.
IntervalVarIntervalVariable (int index) const
 Returns stored interval variable.
bool ScanOneArgument (int type_index, const CPArgumentProto &arg_proto, int64 *to_fill)
bool ScanOneArgument (int type_index, const CPArgumentProto &arg_proto, IntExpr **to_fill)
bool ScanOneArgument (int type_index, const CPArgumentProto &arg_proto, std::vector< int64 > *to_fill)
bool ScanOneArgument (int type_index, const CPArgumentProto &arg_proto, IntTupleSet *to_fill)
bool ScanOneArgument (int type_index, const CPArgumentProto &arg_proto, std::vector< IntVar * > *to_fill)
bool ScanOneArgument (int type_index, const CPArgumentProto &arg_proto, IntervalVar **to_fill)
bool ScanOneArgument (int type_index, const CPArgumentProto &arg_proto, std::vector< IntervalVar * > *to_fill)
bool ScanOneArgument (int type_index, const CPArgumentProto &arg_proto, SequenceVar **to_fill)
bool ScanOneArgument (int type_index, const CPArgumentProto &arg_proto, std::vector< SequenceVar * > *to_fill)
template<class P, class A>
bool ScanArguments (const string &type, const P &proto, A *to_fill)
int TagIndex (const string &tag) const
void AddTag (const string &tag)


Detailed Description

CPModelLoader.

The class CPModelLoader is responsible for reading a protocol buffer representing a CP model and creating the corresponding CP model with the expressions and constraints. It should not be used directly.

Definition at line 42 of file io.cc.


Constructor & Destructor Documentation

operations_research::CPModelLoader::CPModelLoader ( Solver *const   solver  )  [inline, explicit]

Definition at line 44 of file io.cc.

operations_research::CPModelLoader::~CPModelLoader (  )  [inline]

Definition at line 45 of file io.cc.


Member Function Documentation

Solver* operations_research::CPModelLoader::solver (  )  const [inline]

Definition at line 47 of file io.cc.

bool operations_research::CPModelLoader::BuildFromProto ( const CPIntegerExpressionProto &  proto  ) 

Builds integer expression from proto and stores it.

namespace

It returns true upon success.

CPModelLoader

Definition at line 2192 of file io.cc.

Constraint * operations_research::CPModelLoader::BuildFromProto ( const CPConstraintProto &  proto  ) 

Builds constraint from proto and returns it.

Definition at line 2210 of file io.cc.

bool operations_research::CPModelLoader::BuildFromProto ( const CPIntervalVariableProto &  proto  ) 

Builds interval variable from proto and stores it.

It returns true upon success.

Definition at line 2221 of file io.cc.

bool operations_research::CPModelLoader::BuildFromProto ( const CPSequenceVariableProto &  proto  ) 

Builds sequence variable from proto and stores it.

It returns true upon success.

Definition at line 2238 of file io.cc.

IntExpr * operations_research::CPModelLoader::IntegerExpression ( int  index  )  const

Returns stored integer expression.

Definition at line 2255 of file io.cc.

IntervalVar * operations_research::CPModelLoader::IntervalVariable ( int  index  )  const

Returns stored interval variable.

Definition at line 2262 of file io.cc.

bool operations_research::CPModelLoader::ScanOneArgument ( int  type_index,
const CPArgumentProto &  arg_proto,
int64 *  to_fill 
)

Definition at line 2269 of file io.cc.

bool operations_research::CPModelLoader::ScanOneArgument ( int  type_index,
const CPArgumentProto &  arg_proto,
IntExpr **  to_fill 
)

Definition at line 2280 of file io.cc.

bool operations_research::CPModelLoader::ScanOneArgument ( int  type_index,
const CPArgumentProto &  arg_proto,
std::vector< int64 > *  to_fill 
)

Definition at line 2293 of file io.cc.

bool operations_research::CPModelLoader::ScanOneArgument ( int  type_index,
const CPArgumentProto &  arg_proto,
IntTupleSet *  to_fill 
)

Definition at line 2306 of file io.cc.

bool operations_research::CPModelLoader::ScanOneArgument ( int  type_index,
const CPArgumentProto &  arg_proto,
std::vector< IntVar * > *  to_fill 
)

Definition at line 2330 of file io.cc.

bool operations_research::CPModelLoader::ScanOneArgument ( int  type_index,
const CPArgumentProto &  arg_proto,
IntervalVar **  to_fill 
)

Definition at line 2345 of file io.cc.

bool operations_research::CPModelLoader::ScanOneArgument ( int  type_index,
const CPArgumentProto &  arg_proto,
std::vector< IntervalVar * > *  to_fill 
)

Definition at line 2358 of file io.cc.

bool operations_research::CPModelLoader::ScanOneArgument ( int  type_index,
const CPArgumentProto &  arg_proto,
SequenceVar **  to_fill 
)

Definition at line 2373 of file io.cc.

bool operations_research::CPModelLoader::ScanOneArgument ( int  type_index,
const CPArgumentProto &  arg_proto,
std::vector< SequenceVar * > *  to_fill 
)

Definition at line 2386 of file io.cc.

template<class P, class A>
bool operations_research::CPModelLoader::ScanArguments ( const string &  type,
const P &  proto,
A *  to_fill 
) [inline]

Definition at line 102 of file io.cc.

int operations_research::CPModelLoader::TagIndex ( const string &  tag  )  const [inline]

Definition at line 114 of file io.cc.

void operations_research::CPModelLoader::AddTag ( const string &  tag  )  [inline]

Definition at line 116 of file io.cc.


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