Public Member Functions | Friends
PairMatchMultiStrength Class Reference

not implemented. More...

#include <PairMatchMultiStrength.h>

Inheritance diagram for PairMatchMultiStrength:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 PairMatchMultiStrength ()
 PairMatchMultiStrength (const PairMatchMultiStrength &that)
 ~PairMatchMultiStrength ()
PairMatchMultiStrengthoperator= (const PairMatchMultiStrength &that)
void add_match (int i1, int i2)
 Add a match $(i_1, i_2)$ to the set.
void add_match (int i1, int i2, double score)
 Add a match $(i_1, i_2)$ to the set.
bool contains (int i1, int i2) const
double get_score (int i1, int i2) const
void set_score (int i1, int i2, double score)
void clear ()
 Clear all matches.
int size () const
int count () const
unsigned count_matches_12 (int i1) const
 Return the number of matches for i1.
PairMatchMultiIterator get_match_12 (int i1)
 Return an iterator which will run through the list of matches for feature index i1.
PairMatchMultiIterator get_match_21 (int)
 Return an iterator which will run through the list of matches for feature index i2.
PairMatchMultiIterator iter ()
 Return an iterator that traverses the entire match set.
bool is_superset (PairMatchSet &unique_set)
bool operator== (PairMatchMulti const &that) const
bool load (char const *filename)
 load from ascii file.
bool read_ascii (vcl_istream &s)

Friends

class PairMatchMultiIterator

Detailed Description

not implemented.

Definition at line 15 of file PairMatchMultiStrength.h.


Constructor & Destructor Documentation

PairMatchMultiStrength::PairMatchMultiStrength ( )
PairMatchMultiStrength::PairMatchMultiStrength ( const PairMatchMultiStrength that)
PairMatchMultiStrength::~PairMatchMultiStrength ( )

Member Function Documentation

void PairMatchMulti::add_match ( int  i1,
int  i2 
) [inline, inherited]

Add a match $(i_1, i_2)$ to the set.

Definition at line 54 of file PairMatchMulti.h.

void PairMatchMulti::add_match ( int  i1,
int  i2,
double  score 
) [inherited]

Add a match $(i_1, i_2)$ to the set.

Definition at line 63 of file PairMatchMulti.cxx.

void PairMatchMulti::clear ( ) [inline, inherited]

Clear all matches.

Definition at line 67 of file PairMatchMulti.h.

bool PairMatchMulti::contains ( int  i1,
int  i2 
) const [inherited]

Definition at line 77 of file PairMatchMulti.cxx.

int PairMatchMulti::count ( ) const [inline, inherited]

Definition at line 74 of file PairMatchMulti.h.

unsigned PairMatchMulti::count_matches_12 ( int  i1) const [inline, inherited]

Return the number of matches for i1.

Definition at line 77 of file PairMatchMulti.h.

PairMatchMultiIterator PairMatchMulti::get_match_12 ( int  i1) [inline, inherited]

Return an iterator which will run through the list of matches for feature index i1.

Example usage: to print all matches for "target"

   for (PairMatchMultiIterator p = mm.get_match_12(target); !p.done(); p.next())
     vcl_cout << p.get_i1() << ' ' << p.get_i2() << vcl_endl;

Complexity is O(log n).

Definition at line 86 of file PairMatchMulti.h.

PairMatchMultiIterator PairMatchMulti::get_match_21 ( int  ) [inline, inherited]

Return an iterator which will run through the list of matches for feature index i2.

This may be expensive. If it is used a lot, it may be worth maintaining forward and backward maps. Right now it's not even implemented.

Definition at line 94 of file PairMatchMulti.h.

double PairMatchMulti::get_score ( int  i1,
int  i2 
) const [inherited]

Definition at line 85 of file PairMatchMulti.cxx.

bool PairMatchMulti::is_superset ( PairMatchSet unique_set) [inherited]

Definition at line 161 of file PairMatchMulti.cxx.

PairMatchMultiIterator PairMatchMulti::iter ( ) [inline, inherited]

Return an iterator that traverses the entire match set.

Definition at line 97 of file PairMatchMulti.h.

bool PairMatchMulti::load ( char const *  filename) [inherited]

load from ascii file.

Definition at line 201 of file PairMatchMulti.cxx.

PairMatchMultiStrength& PairMatchMultiStrength::operator= ( const PairMatchMultiStrength that)
bool PairMatchMulti::operator== ( PairMatchMulti const &  that) const [inline, inherited]

Definition at line 105 of file PairMatchMulti.h.

bool PairMatchMulti::read_ascii ( vcl_istream &  s) [inherited]

Definition at line 128 of file PairMatchMulti.cxx.

void PairMatchMulti::set_score ( int  i1,
int  i2,
double  score 
) [inherited]

Definition at line 69 of file PairMatchMulti.cxx.

int PairMatchMulti::size ( ) const [inline, inherited]

Definition at line 71 of file PairMatchMulti.h.


Friends And Related Function Documentation

friend class PairMatchMultiIterator [friend, inherited]

Definition at line 40 of file PairMatchMulti.h.


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