field_cmp Struct Reference

Compare fields by their components. More...

List of all members.

Public Member Functions

bool operator() (const field *a, const field *b)
 Compare fields by their components.

Detailed Description

Compare fields by their components.

This helper class can be passed as a template argument to containers class or generic algorithm to define sorting on field pointers.

Definition at line 59 of file vdiff.cc.


Member Function Documentation

bool field_cmp::operator() ( const field a,
const field b 
) [inline]

Compare fields by their components.

Parameters:
a a pointer to the first field to be compared.
b a pointer to the second field to be compared.
Returns:
whether the values of a are lexicographically less than those of b.

Definition at line 67 of file vdiff.cc.

References lexcmp(), and field::values.


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

Generated on Fri Aug 21 08:15:08 2009 for mqn2mps by  doxygen 1.6.0