Version: 9.15.0
YACS::HMI::Cost Struct Reference

#include <LinkAStar.hxx>

Collaboration diagram for YACS::HMI::Cost:

Public Member Functions

 Cost (double f, std::pair< int, int > p)
 
bool operator< (const Cost &a) const
 

Public Attributes

double F
 
std::pair< int, int > pos
 

Detailed Description

Definition at line 57 of file LinkAStar.hxx.

Constructor & Destructor Documentation

◆ Cost()

YACS::HMI::Cost::Cost ( double  f,
std::pair< int, int >  p 
)
inline

Definition at line 59 of file LinkAStar.hxx.

59 :F(f),pos(p) {};
Proc * p
Definition: driver.cxx:216
std::pair< int, int > pos
Definition: LinkAStar.hxx:61

Member Function Documentation

◆ operator<()

bool YACS::HMI::Cost::operator< ( const Cost a) const
inline

Definition at line 62 of file LinkAStar.hxx.

63  {
64  return (a.F < F);
65  }

References gui.CONNECTOR::a, and F.

Member Data Documentation

◆ F

double YACS::HMI::Cost::F

Definition at line 60 of file LinkAStar.hxx.

Referenced by operator<().

◆ pos

std::pair<int,int> YACS::HMI::Cost::pos

Definition at line 61 of file LinkAStar.hxx.


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