vdiff.cc File Reference

Implementation of class vdiff. More...

#include <string>
#include <vector>
#include <set>
#include <algorithm>
#include "triplet.hh"
#include "rational.hh"
#include "field.hh"
#include "vdiff.hh"
Include dependency graph for vdiff.cc:

Go to the source code of this file.


struct  field_cmp
 Compare fields by their components. More...


template<class A , class B >
static bool lexcmp (const A &a, const B &b)
 Lexicographically compare two containers.

Detailed Description

Implementation of class vdiff.

Definition in file vdiff.cc.

Function Documentation

template<class A , class B >
static bool lexcmp ( const A &  a,
const B &  b 
) [inline, static]

Lexicographically compare two containers.

As the STL implementation of lexicographical comparison has such an awfully long name, and operates on iterator pairs instead of container objects, the use of this wrapper function makes code somewhat shorter.

a the first container to compare.
b the second container to compare.
whether a is lexicographically less than b.

Definition at line 49 of file vdiff.cc.

Referenced by field_cmp::operator()(), and vdiff::operator<().

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