Classes | Functions
contrib/oxl/mvl/TripleMatchSet.h File Reference

Store integer triplets. More...

#include <mvl/MatchSet.h>
#include <mvl/PairMatchSet.h>
#include <vcl_cstdlib.h>
#include <vcl_iosfwd.h>

Go to the source code of this file.

Classes

class  TripleMatchSet
class  TripleMatchSet::iterator

Functions

vcl_istream & operator>> (vcl_istream &s, TripleMatchSet &ccc)
vcl_ostream & operator<< (vcl_ostream &s, const TripleMatchSet &ccc)
 Write to vcl_ostream with header.

Detailed Description

Store integer triplets.

A TripleMatchSet contains "triplets": 3-tuples of integers (i1, i2, i3), and methods to access and modify the set. Access is fast only for "forward" matches of the form i1->i2->i3, but this has proved to be adequate for all of the triplet work so far.

An iterator class is provided to allow iteration through all triplets in the set.

TripleMatchSet storage is a pair of subclass-supplied PairMatchSets. Modifying the TripleMatchSet by adding or removing tuples will modify the underlying PairMatchSets.

Author:
Andrew W. Fitzgibbon, Oxford RRG, 09 Aug 96
    Modifications:
     8 jun 97: PVr - removed vcl_vector<bool> instantiation (is in Templates/stl_bool.C)
   

Definition in file TripleMatchSet.h.


Function Documentation

vcl_ostream& operator<< ( vcl_ostream &  s,
const TripleMatchSet ccc 
)

Write to vcl_ostream with header.

Definition at line 110 of file TripleMatchSet.cxx.

vcl_istream& operator>> ( vcl_istream &  s,
TripleMatchSet ccc 
)

Definition at line 117 of file TripleMatchSet.cxx.