librostlab-blast  1.0.1
Classes | Functions
rostlab::blast Namespace Reference

Classes

struct  hit
 Blast hit. More...
 
struct  hsp
 High-scoring segment pair. More...
 
class  location
 Two points in a source file. More...
 
struct  oneline
 One-line description. More...
 
class  parser
 A Bison parser. More...
 
class  parser_driver
 Blast (default, -m 0) output parser. More...
 
class  parser_error
 
class  position
 A point in a source file. More...
 
struct  result
 Blast result for one query. More...
 
struct  round
 Data specific to an iterated blast round. More...
 

Functions

positionoperator+= (position &res, position::counter_type width)
 Add width columns, in place. More...
 
position operator+ (position res, position::counter_type width)
 Add width columns. More...
 
positionoperator-= (position &res, position::counter_type width)
 Subtract width columns, in place. More...
 
position operator- (position res, position::counter_type width)
 Subtract width columns. More...
 
bool operator== (const position &pos1, const position &pos2)
 Compare two position objects. More...
 
bool operator!= (const position &pos1, const position &pos2)
 Compare two position objects. More...
 
template<typename YYChar >
std::basic_ostream< YYChar > & operator<< (std::basic_ostream< YYChar > &ostr, const position &pos)
 Intercept output stream redirection. More...
 
locationoperator+= (location &res, const location &end)
 Join two locations, in place. More...
 
location operator+ (location res, const location &end)
 Join two locations. More...
 
locationoperator+= (location &res, location::counter_type width)
 Add width columns to the end position, in place. More...
 
location operator+ (location res, location::counter_type width)
 Add width columns to the end position. More...
 
locationoperator-= (location &res, location::counter_type width)
 Subtract width columns to the end position, in place. More...
 
location operator- (location res, location::counter_type width)
 Subtract width columns to the end position. More...
 
bool operator== (const location &loc1, const location &loc2)
 Compare two location objects. More...
 
bool operator!= (const location &loc1, const location &loc2)
 Compare two location objects. More...
 
template<typename YYChar >
std::basic_ostream< YYChar > & operator<< (std::basic_ostream< YYChar > &ostr, const location &loc)
 Intercept output stream redirection. More...
 

Function Documentation

◆ operator!=() [1/2]

bool rostlab::blast::operator!= ( const location loc1,
const location loc2 
)
inline

Compare two location objects.

Definition at line 301 of file blast-parser-location.h.

◆ operator!=() [2/2]

bool rostlab::blast::operator!= ( const position pos1,
const position pos2 
)
inline

Compare two position objects.

Definition at line 163 of file blast-parser-location.h.

◆ operator+() [1/3]

location rostlab::blast::operator+ ( location  res,
const location end 
)
inline

Join two locations.

Definition at line 258 of file blast-parser-location.h.

◆ operator+() [2/3]

location rostlab::blast::operator+ ( location  res,
location::counter_type  width 
)
inline

Add width columns to the end position.

Definition at line 273 of file blast-parser-location.h.

◆ operator+() [3/3]

position rostlab::blast::operator+ ( position  res,
position::counter_type  width 
)
inline

Add width columns.

Definition at line 131 of file blast-parser-location.h.

◆ operator+=() [1/3]

location& rostlab::blast::operator+= ( location res,
const location end 
)
inline

Join two locations, in place.

Definition at line 250 of file blast-parser-location.h.

◆ operator+=() [2/3]

location& rostlab::blast::operator+= ( location res,
location::counter_type  width 
)
inline

Add width columns to the end position, in place.

Definition at line 265 of file blast-parser-location.h.

◆ operator+=() [3/3]

position& rostlab::blast::operator+= ( position res,
position::counter_type  width 
)
inline

Add width columns, in place.

Definition at line 123 of file blast-parser-location.h.

◆ operator-() [1/2]

location rostlab::blast::operator- ( location  res,
location::counter_type  width 
)
inline

Subtract width columns to the end position.

Definition at line 287 of file blast-parser-location.h.

◆ operator-() [2/2]

position rostlab::blast::operator- ( position  res,
position::counter_type  width 
)
inline

Subtract width columns.

Definition at line 145 of file blast-parser-location.h.

◆ operator-=() [1/2]

location& rostlab::blast::operator-= ( location res,
location::counter_type  width 
)
inline

Subtract width columns to the end position, in place.

Definition at line 280 of file blast-parser-location.h.

◆ operator-=() [2/2]

position& rostlab::blast::operator-= ( position res,
position::counter_type  width 
)
inline

Subtract width columns, in place.

Definition at line 138 of file blast-parser-location.h.

◆ operator<<() [1/2]

template<typename YYChar >
std::basic_ostream<YYChar>& rostlab::blast::operator<< ( std::basic_ostream< YYChar > &  ostr,
const location loc 
)

Intercept output stream redirection.

Parameters
ostrthe destination output stream
loca reference to the location to redirect

Avoid duplicate information.

Definition at line 314 of file blast-parser-location.h.

◆ operator<<() [2/2]

template<typename YYChar >
std::basic_ostream<YYChar>& rostlab::blast::operator<< ( std::basic_ostream< YYChar > &  ostr,
const position pos 
)

Intercept output stream redirection.

Parameters
ostrthe destination output stream
posa reference to the position to redirect

Definition at line 174 of file blast-parser-location.h.

◆ operator==() [1/2]

bool rostlab::blast::operator== ( const location loc1,
const location loc2 
)
inline

Compare two location objects.

Definition at line 294 of file blast-parser-location.h.

◆ operator==() [2/2]

bool rostlab::blast::operator== ( const position pos1,
const position pos2 
)
inline

Compare two position objects.

Definition at line 152 of file blast-parser-location.h.