I want to set up a priority queue for my class DeformationCandidate and sets the priority based on the value of the density variable. I am having a rough time determining the syntax for the queue and am not sure how I need to overload the ==, <, > operators.
//The row number of the candidate point
//The column number of the candidate point
//The tissue density of the candidate point
First, how do I declare the queue? Is it:
# include "DeformationCandidate.h"
//Initialize variable values
row = -1;
column = -1;
density = -1;
Second, what do I need to do for the operators?
I'm having a hard time finding a good resource for priority queues, so please let me know if you have any recommended resources.