Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set | ||
|
||
// doxy/ or-tools/ src/ constraint_solver/ |
Public Member Functions | |
CPModelLoader (Solver *const solver) | |
~CPModelLoader () | |
Solver * | solver () const |
bool | BuildFromProto (const CPIntegerExpressionProto &proto) |
Builds integer expression from proto and stores it. | |
Constraint * | BuildFromProto (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. | |
IntExpr * | IntegerExpression (int index) const |
Returns stored integer expression. | |
IntervalVar * | IntervalVariable (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) |
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.
operations_research::CPModelLoader::CPModelLoader | ( | Solver *const | solver | ) | [inline, explicit] |
operations_research::CPModelLoader::~CPModelLoader | ( | ) | [inline] |
Solver* operations_research::CPModelLoader::solver | ( | ) | const [inline] |
bool operations_research::CPModelLoader::BuildFromProto | ( | const CPIntegerExpressionProto & | proto | ) |
Builds integer expression from proto and stores it.
namespace
It returns true upon success.
Constraint * operations_research::CPModelLoader::BuildFromProto | ( | const CPConstraintProto & | proto | ) |
bool operations_research::CPModelLoader::BuildFromProto | ( | const CPIntervalVariableProto & | proto | ) |
bool operations_research::CPModelLoader::BuildFromProto | ( | const CPSequenceVariableProto & | proto | ) |
IntExpr * operations_research::CPModelLoader::IntegerExpression | ( | int | index | ) | const |
IntervalVar * operations_research::CPModelLoader::IntervalVariable | ( | int | index | ) | const |
bool operations_research::CPModelLoader::ScanOneArgument | ( | int | type_index, | |
const CPArgumentProto & | arg_proto, | |||
int64 * | to_fill | |||
) |
bool operations_research::CPModelLoader::ScanOneArgument | ( | int | type_index, | |
const CPArgumentProto & | arg_proto, | |||
IntExpr ** | to_fill | |||
) |
bool operations_research::CPModelLoader::ScanOneArgument | ( | int | type_index, | |
const CPArgumentProto & | arg_proto, | |||
std::vector< int64 > * | to_fill | |||
) |
bool operations_research::CPModelLoader::ScanOneArgument | ( | int | type_index, | |
const CPArgumentProto & | arg_proto, | |||
IntTupleSet * | to_fill | |||
) |
bool operations_research::CPModelLoader::ScanOneArgument | ( | int | type_index, | |
const CPArgumentProto & | arg_proto, | |||
std::vector< IntVar * > * | to_fill | |||
) |
bool operations_research::CPModelLoader::ScanOneArgument | ( | int | type_index, | |
const CPArgumentProto & | arg_proto, | |||
IntervalVar ** | to_fill | |||
) |
bool operations_research::CPModelLoader::ScanOneArgument | ( | int | type_index, | |
const CPArgumentProto & | arg_proto, | |||
std::vector< IntervalVar * > * | to_fill | |||
) |
bool operations_research::CPModelLoader::ScanOneArgument | ( | int | type_index, | |
const CPArgumentProto & | arg_proto, | |||
SequenceVar ** | to_fill | |||
) |
bool operations_research::CPModelLoader::ScanOneArgument | ( | int | type_index, | |
const CPArgumentProto & | arg_proto, | |||
std::vector< SequenceVar * > * | to_fill | |||
) |
bool operations_research::CPModelLoader::ScanArguments | ( | const string & | type, | |
const P & | proto, | |||
A * | to_fill | |||
) | [inline] |
int operations_research::CPModelLoader::TagIndex | ( | const string & | tag | ) | const [inline] |
void operations_research::CPModelLoader::AddTag | ( | const string & | tag | ) | [inline] |