Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

task_reader_greater_s Struct Reference

A type that defines a comparison function between task/reader pairs. More...

#include <Page_Reduced_Reader.hh>

List of all members.

Public Methods

bool operator() (const task_reader_pair_t *const x, const task_reader_pair_t *const y)


Detailed Description

A type that defines a comparison function between task/reader pairs.

The definition of an STL priority queue is that it uses a function like this one to return true if x < y, and then return the largest element in the queue. By defining this function to return true if x > y, we force the priority queue to return the smallest element in the queue.

Definition at line 53 of file Page_Reduced_Reader.hh.


Member Function Documentation

bool task_reader_greater_s::operator() const task_reader_pair_t *const    x,
const task_reader_pair_t *const    y
[inline]
 

Definition at line 54 of file Page_Reduced_Reader.hh.

00055                                           {
00056     return (x->second->next_cycle_timestamp() >
00057       y->second->next_cycle_timestamp());
00058   }


The documentation for this struct was generated from the following file:
Generated on Fri Jan 31 10:33:40 2003 for Laplace-merge by doxygen1.3-rc2