Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::Coordinates2< T > Struct Template Reference

Real-world coordinates. More...

#include <simple_graph.h>

Public Member Functions

 Coordinates2 ()=default
 
 Coordinates2 (T x, T y)
 

Public Attributes

x = {}
 
y = {}
 

Friends

bool operator== (const Coordinates2 &a, const Coordinates2 &b)
 
bool operator!= (const Coordinates2 &a, const Coordinates2 &b)
 
std::ostream & operator<< (std::ostream &stream, const Coordinates2 &coordinates)
 
template<typename H >
AbslHashValue (H h, const Coordinates2 &coordinates)
 

Detailed Description

template<typename T>
struct operations_research::Coordinates2< T >

Real-world coordinates.

Definition at line 93 of file simple_graph.h.

Constructor & Destructor Documentation

◆ Coordinates2() [1/2]

template<typename T >
operations_research::Coordinates2< T >::Coordinates2 ( )
default

◆ Coordinates2() [2/2]

template<typename T >
operations_research::Coordinates2< T >::Coordinates2 ( T x,
T y )
inline

Definition at line 98 of file simple_graph.h.

Friends And Related Symbol Documentation

◆ AbslHashValue

template<typename T >
template<typename H >
H AbslHashValue ( H h,
const Coordinates2< T > & coordinates )
friend

Definition at line 112 of file simple_graph.h.

◆ operator!=

template<typename T >
bool operator!= ( const Coordinates2< T > & a,
const Coordinates2< T > & b )
friend

Definition at line 103 of file simple_graph.h.

◆ operator<<

template<typename T >
std::ostream & operator<< ( std::ostream & stream,
const Coordinates2< T > & coordinates )
friend

Definition at line 106 of file simple_graph.h.

◆ operator==

template<typename T >
bool operator== ( const Coordinates2< T > & a,
const Coordinates2< T > & b )
friend

Definition at line 100 of file simple_graph.h.

Member Data Documentation

◆ x

template<typename T >
T operations_research::Coordinates2< T >::x = {}

Definition at line 94 of file simple_graph.h.

◆ y

template<typename T >
T operations_research::Coordinates2< T >::y = {}

Definition at line 95 of file simple_graph.h.


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