COPASI API  4.16.103
Public Member Functions | List of all members
CompareDoubleWithNaN Class Reference

#include <CSort.h>

Public Member Functions

 CompareDoubleWithNaN ()
 
bool operator() (const std::pair< C_FLOAT64 *, size_t > &lhs, const std::pair< C_FLOAT64 *, size_t > &rhs)
 
virtual ~CompareDoubleWithNaN ()
 

Detailed Description

Definition at line 45 of file CSort.h.

Constructor & Destructor Documentation

CompareDoubleWithNaN::CompareDoubleWithNaN ( )
inline

Constructor

Definition at line 51 of file CSort.h.

51 {};
virtual CompareDoubleWithNaN::~CompareDoubleWithNaN ( )
inlinevirtual

Virtual destructor

Definition at line 56 of file CSort.h.

56 {};

Member Function Documentation

bool CompareDoubleWithNaN::operator() ( const std::pair< C_FLOAT64 *, size_t > &  lhs,
const std::pair< C_FLOAT64 *, size_t > &  rhs 
)
inline

Definition at line 58 of file CSort.h.

60  {
61  return
62  isnan(*lhs.first) ?
63  (isnan(*rhs.first) ? lhs.first < rhs.first : false) :
64  (isnan(*rhs.first) ? true : *lhs.first < *rhs.first);
65  }

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