Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::routing::RoutingSolution::Event Struct Reference

Detailed Description

Definition at line 65 of file solution_serializer.h.

#include <solution_serializer.h>

Public Types

enum class  Type {
  kStart , kEnd , kServeArc , kServeEdge ,
  kServeNode , kTransit
}

Public Member Functions

 Event (Type type, int64_t demand_id, Arc arc)
 Event (Type type, int64_t demand_id, Arc arc, std::string_view arc_name)
bool operator== (const Event &other) const
bool operator!= (const Event &other) const

Public Attributes

Type type
int64_t demand_id
Arc arc
std::string arc_name

Member Enumeration Documentation

◆ Type

Enumerator
kStart 
kEnd 
kServeArc 
kServeEdge 
kServeNode 
kTransit 

Definition at line 67 of file solution_serializer.h.

Constructor & Destructor Documentation

◆ Event() [1/2]

operations_research::routing::RoutingSolution::Event::Event ( Type type,
int64_t demand_id,
Arc arc )
inline

Definition at line 88 of file solution_serializer.h.

◆ Event() [2/2]

operations_research::routing::RoutingSolution::Event::Event ( Type type,
int64_t demand_id,
Arc arc,
std::string_view arc_name )
inline

Definition at line 90 of file solution_serializer.h.

Member Function Documentation

◆ operator!=()

bool operations_research::routing::RoutingSolution::Event::operator!= ( const Event & other) const
inline

Definition at line 97 of file solution_serializer.h.

◆ operator==()

bool operations_research::routing::RoutingSolution::Event::operator== ( const Event & other) const
inline

Definition at line 93 of file solution_serializer.h.

Member Data Documentation

◆ arc

Arc operations_research::routing::RoutingSolution::Event::arc

Definition at line 85 of file solution_serializer.h.

◆ arc_name

std::string operations_research::routing::RoutingSolution::Event::arc_name

Definition at line 86 of file solution_serializer.h.

◆ demand_id

int64_t operations_research::routing::RoutingSolution::Event::demand_id

Definition at line 84 of file solution_serializer.h.

◆ type

Type operations_research::routing::RoutingSolution::Event::type

Definition at line 83 of file solution_serializer.h.


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