Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <model.h>
Public Types | |
enum | Type { ANNOTATION_LIST , IDENTIFIER , FUNCTION_CALL , INT_VALUE , INT_LIST , INTERVAL , VAR_REF , VAR_REF_ARRAY , STRING_VALUE } |
Public Member Functions | |
std::string | DebugString () const |
bool | IsFunctionCallWithIdentifier (absl::string_view identifier) const |
void | AppendAllVariables (std::vector< Variable * > *vars) const |
Static Public Member Functions | |
static Annotation | Empty () |
--— Annotation --— | |
static Annotation | AnnotationList (std::vector< Annotation > list) |
static Annotation | Identifier (absl::string_view id) |
static Annotation | FunctionCallWithArguments (absl::string_view id, std::vector< Annotation > args) |
static Annotation | FunctionCall (absl::string_view id) |
static Annotation | Interval (int64_t interval_min, int64_t interval_max) |
static Annotation | IntegerValue (int64_t value) |
static Annotation | IntegerList (const std::vector< int64_t > &values) |
static Annotation | VarRef (Variable *var) |
static Annotation | VarRefArray (std::vector< Variable * > variables) |
static Annotation | String (absl::string_view str) |
Public Attributes | |
Type | type |
int64_t | interval_min |
int64_t | interval_max |
std::string | id |
std::vector< Annotation > | annotations |
std::vector< Variable * > | variables |
std::vector< int64_t > | values |
std::string | string_value |
An annotation is a set of information. It has two use cases. One during parsing to store intermediate information on model objects (i.e. the defines part of a constraint). The other use case is to store all search declarations. This persists after model parsing.
|
static |
void operations_research::fz::Annotation::AppendAllVariables | ( | std::vector< Variable * > * | vars | ) | const |
std::string operations_research::fz::Annotation::DebugString | ( | ) | const |
|
static |
--— Annotation --—
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
inline |
|
static |
|
static |
|
static |
std::vector<Annotation> operations_research::fz::Annotation::annotations |
std::string operations_research::fz::Annotation::string_value |
std::vector<int64_t> operations_research::fz::Annotation::values |
std::vector<Variable*> operations_research::fz::Annotation::variables |