Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
Annotation Struct Reference

Detailed Description

Definition at line 265 of file model.h.

#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 ()
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< Annotationannotations
std::vector< Variable * > variables
std::vector< int64_t > values
std::string string_value

Member Enumeration Documentation

◆ Type

Enumerator
ANNOTATION_LIST 
IDENTIFIER 
FUNCTION_CALL 
INT_VALUE 
INT_LIST 
INTERVAL 
VAR_REF 
VAR_REF_ARRAY 
STRING_VALUE 

Definition at line 266 of file model.h.

Member Function Documentation

◆ AnnotationList()

Definition at line 841 of file model.cc.

◆ AppendAllVariables()

Definition at line 929 of file model.cc.

◆ DebugString()

Definition at line 938 of file model.cc.

◆ Empty()

Definition at line 833 of file model.cc.

◆ FunctionCall()

Definition at line 870 of file model.cc.

◆ FunctionCallWithArguments()

Annotation operations_research::fz::Annotation::FunctionCallWithArguments ( absl::string_view id,
std::vector< Annotation > args )
static

Definition at line 859 of file model.cc.

◆ Identifier()

Definition at line 850 of file model.cc.

◆ IntegerList()

Annotation operations_research::fz::Annotation::IntegerList ( const std::vector< int64_t > & values)
static

Definition at line 894 of file model.cc.

◆ IntegerValue()

Definition at line 887 of file model.cc.

◆ Interval()

Annotation operations_research::fz::Annotation::Interval ( int64_t interval_min,
int64_t interval_max )
static

Definition at line 879 of file model.cc.

◆ IsFunctionCallWithIdentifier()

bool operations_research::fz::Annotation::IsFunctionCallWithIdentifier ( absl::string_view identifier) const
inline

Definition at line 292 of file model.h.

◆ String()

Definition at line 920 of file model.cc.

◆ VarRef()

Definition at line 902 of file model.cc.

◆ VarRefArray()

Definition at line 911 of file model.cc.

Member Data Documentation

◆ annotations

Definition at line 304 of file model.h.

◆ id

Definition at line 303 of file model.h.

◆ interval_max

Definition at line 302 of file model.h.

◆ interval_min

Definition at line 301 of file model.h.

◆ string_value

Definition at line 307 of file model.h.

◆ type

◆ values

Definition at line 306 of file model.h.

◆ variables

Definition at line 305 of file model.h.


The documentation for this struct was generated from the following files: