ppALIGN API documentation

Pair Class Reference

#include <align.hpp>

List of all members.

Public Member Functions

 Pair ()
 Pair (long _i, long _j)

Public Attributes

long i
long j

Friends

std::ostream & operator<< (std::ostream &ost, const Pair &p)
lexiographic order



bool operator< (const Pair &p1, const Pair &p2)
bool operator<= (const Pair &p1, const Pair &p2)
bool operator> (const Pair &p1, const Pair &p2)
bool operator>= (const Pair &p1, const Pair &p2)
bool operator== (const Pair &p1, const Pair &p2)
bool operator!= (const Pair &p1, const Pair &p2)

vector operators



Pairoperator+= (const Pair &p)
Pairoperator-= (const Pair &p)
Pair operator+ (const Pair &p1, const Pair &p2)
Pair operator- (const Pair &p1, const Pair &p2)

Detailed Description

A pair of integers with lexiographic order.

Definition at line 30 of file align.hpp.


Constructor & Destructor Documentation

Pair::Pair (  )  [inline]

Default constructor. set i =0 and j = 0

Definition at line 44 of file align.hpp.

Pair::Pair ( long  _i,
long  _j 
) [inline]

Constructor.

  • If _i>=0 and _j >=0 a pair is added
  • If _i=-1 and _j >=0 an inseration is added
  • If _i>=0 and _j =-1 a deletion is added.
Parameters:
_i position in the first sequence
_j position in the second sequence

Definition at line 55 of file align.hpp.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ost,
const Pair p 
) [friend]

Outstream operator.

Parameters:
ost 
p 
Returns:
ostream object

Member Data Documentation

long Pair::i

positions in the first sequence.

Definition at line 35 of file align.hpp.

long Pair::j

positions in the second sequence.

Definition at line 39 of file align.hpp.


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