Version: 8.3.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

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) {};

Member Function Documentation

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

Definition at line 62 of file LinkAStar.hxx.

References F.

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

Member Data Documentation

double YACS::HMI::Cost::F

Definition at line 59 of file LinkAStar.hxx.

Referenced by operator<().

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: