OR-Tools  9.6
CarpParser

Detailed Description

Definition at line 68 of file carp_parser.h.

Public Member Functions

 CarpParser ()
 
 CarpParser (const CarpParser &)=delete
 
const CarpParseroperator= (const CarpParser &)=delete
 
bool LoadFile (const std::string &file_name)
 
const std::string & name () const
 
const std::string & comment () const
 
int64_t depot () const
 
int64_t NumberOfNodes () const
 
int64_t NumberOfEdges () const
 
int64_t NumberOfEdgesWithServicing () const
 
int64_t NumberOfEdgesWithoutServicing () const
 
int64_t TotalServicingCost () const
 
const gtl::linked_hash_map< Edge, int64_t > & servicing_demands () const
 
const gtl::linked_hash_map< Edge, int64_t > & traversing_costs () const
 
int64_t NumberOfVehicles () const
 
int64_t capacity () const
 
int64_t GetTraversingCost (Edge edge) const
 
int64_t GetTraversingCost (int64_t tail, int64_t head) const
 
int64_t HasServicingNeed (Edge edge) const
 
int64_t HasServicingNeed (int64_t tail, int64_t head) const
 
int64_t GetServicing (Edge edge) const
 
int64_t GetServicing (int64_t tail, int64_t head) const
 

Constructor & Destructor Documentation

◆ CarpParser() [1/2]

Definition at line 29 of file carp_parser.cc.

◆ CarpParser() [2/2]

CarpParser ( const CarpParser )
delete

Member Function Documentation

◆ capacity()

int64_t capacity ( ) const
inline

Definition at line 116 of file carp_parser.h.

◆ comment()

const std::string& comment ( ) const
inline

Definition at line 83 of file carp_parser.h.

◆ depot()

int64_t depot ( ) const
inline

Definition at line 85 of file carp_parser.h.

◆ GetServicing() [1/2]

int64_t GetServicing ( Edge  edge) const
inline

Definition at line 139 of file carp_parser.h.

◆ GetServicing() [2/2]

int64_t GetServicing ( int64_t  tail,
int64_t  head 
) const
inline

Definition at line 144 of file carp_parser.h.

◆ GetTraversingCost() [1/2]

int64_t GetTraversingCost ( Edge  edge) const
inline

Definition at line 120 of file carp_parser.h.

◆ GetTraversingCost() [2/2]

int64_t GetTraversingCost ( int64_t  tail,
int64_t  head 
) const
inline

Definition at line 125 of file carp_parser.h.

◆ HasServicingNeed() [1/2]

int64_t HasServicingNeed ( Edge  edge) const
inline

Definition at line 130 of file carp_parser.h.

◆ HasServicingNeed() [2/2]

int64_t HasServicingNeed ( int64_t  tail,
int64_t  head 
) const
inline

Definition at line 133 of file carp_parser.h.

◆ LoadFile()

bool LoadFile ( const std::string &  file_name)

Definition at line 46 of file carp_parser.cc.

◆ name()

const std::string& name ( ) const
inline

Definition at line 81 of file carp_parser.h.

◆ NumberOfEdges()

int64_t NumberOfEdges ( ) const
inline

Definition at line 90 of file carp_parser.h.

◆ NumberOfEdgesWithoutServicing()

int64_t NumberOfEdgesWithoutServicing ( ) const
inline

Definition at line 100 of file carp_parser.h.

◆ NumberOfEdgesWithServicing()

int64_t NumberOfEdgesWithServicing ( ) const
inline

Definition at line 95 of file carp_parser.h.

◆ NumberOfNodes()

int64_t NumberOfNodes ( ) const
inline

Definition at line 87 of file carp_parser.h.

◆ NumberOfVehicles()

int64_t NumberOfVehicles ( ) const
inline

Definition at line 114 of file carp_parser.h.

◆ operator=()

const CarpParser& operator= ( const CarpParser )
delete

◆ servicing_demands()

const gtl::linked_hash_map<Edge, int64_t>& servicing_demands ( ) const
inline

Definition at line 106 of file carp_parser.h.

◆ TotalServicingCost()

int64_t TotalServicingCost ( ) const
inline

Definition at line 104 of file carp_parser.h.

◆ traversing_costs()

const gtl::linked_hash_map<Edge, int64_t>& traversing_costs ( ) const
inline

Definition at line 110 of file carp_parser.h.


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