phylopomp
Phylodynamics for POMPs
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ball_order Struct Reference

Ordering for balls in pockets. More...

#include <pocket.h>

Public Member Functions

bool operator() (const ball_t *a, const ball_t *b) const
 

Detailed Description

Ordering for balls in pockets.

Without this, order depends on machine state, defeating reproducibility. The correctness of the algorithms depends on this order.

Definition at line 19 of file pocket.h.

Member Function Documentation

◆ operator()()

bool ball_order::operator() ( const ball_t a,
const ball_t b 
) const
inline

Definition at line 20 of file pocket.h.

20  {
21  return (a->color < b->color) ||
22  ((a->color == b->color) && (a->uniq < b->uniq));
23  };
name_t uniq
Definition: ball.h:37
color_t color
Definition: ball.h:38

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