Range.cpp File Reference

#include "Range.h"
#include <sstream>
#include <vector>
#include "strformat.h"
#include <functional>
#include <limits>

Functions

ostream & operator<< (ostream &ous, const Range &r)
bool lessRangeByDirectional (const Range *r1, const Range *r2)
ostream & operator<< (ostream &ous, const RangeChain &rc)
bool RangeLess (const Range &r1, const Range &r2)
bool RangeLessPtr (const Range *r1, const Range *r2)

Function Documentation

bool lessRangeByDirectional ( const Range r1,
const Range r2 
)

Several helper functions for sorting and find operation on list<Range*>

References Range::lessByDirection().

Referenced by RangeChain::add().

ostream& operator<< ( ostream &  ous,
const RangeChain rc 
)

output using ' | ' as delimiter

References RangeChain::chain, and RangeChain::numberOfRanges().

ostream& operator<< ( ostream &  ous,
const Range r 
)

for human to read, has some helping symbols The derived class Noschain use a virtual print function to make the output operator function properly with derived classes.

References Range::b, and Range::e.

bool RangeLess ( const Range r1,
const Range r2 
)

must define these operators to do the sorting

References Range::directionalLess().

bool RangeLessPtr ( const Range r1,
const Range r2 
)

References Range::directionalLess().

Referenced by RangeChain::order().


Generated on Wed Aug 10 11:57:02 2011 for Softwares from Orpara by  doxygen 1.5.6