Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PriceSort Class Reference

Public Member Functions

 PriceSort (const vector< float > &_price, bool _reverse)
 
bool operator() (size_t a, size_t b)
 

Detailed Description

Definition at line 4179 of file basecomputer.cpp.

Constructor & Destructor Documentation

PriceSort::PriceSort ( const vector< float > &  _price,
bool  _reverse 
)
inline

Definition at line 4184 of file basecomputer.cpp.

4185  : price(_price)
4186  , reverse(_reverse)
4187  {
4188  }

Member Function Documentation

bool PriceSort::operator() ( size_t  a,
size_t  b 
)
inline

Definition at line 4190 of file basecomputer.cpp.

References a, and b.

4191  {
4192  if (reverse)
4193  return price[a] > price[b];
4194  else
4195  return price[a] < price[b];
4196  }

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