librostlab-blast  1.0.1
Public Member Functions | Public Attributes | List of all members
rostlab::blast::position Class Reference

Abstract a position. More...

#include <blast-parser-position.h>

Public Member Functions

 position (std::string *f=YY_NULLPTR, unsigned int l=1u, unsigned int c=1u)
 Construct a position. More...
 
void initialize (std::string *fn=YY_NULLPTR, unsigned int l=1u, unsigned int c=1u)
 Initialization. More...
 
Line and Column related manipulators
void lines (int count=1)
 (line related) Advance to the COUNT next lines. More...
 
void columns (int count=1)
 (column related) Advance to the COUNT next columns. More...
 

Public Attributes

std::string * filename
 File name to which this position refers. More...
 
unsigned int line
 Current line number. More...
 
unsigned int column
 Current column number. More...
 

Detailed Description

Abstract a position.

Definition at line 57 of file blast-parser-position.h.

Constructor & Destructor Documentation

rostlab::blast::position::position ( std::string *  f = YY_NULLPTR,
unsigned int  l = 1u,
unsigned int  c = 1u 
)
inlineexplicit

Construct a position.

Definition at line 61 of file blast-parser-position.h.

Member Function Documentation

void rostlab::blast::position::columns ( int  count = 1)
inline

(column related) Advance to the COUNT next columns.

Definition at line 94 of file blast-parser-position.h.

void rostlab::blast::position::initialize ( std::string *  fn = YY_NULLPTR,
unsigned int  l = 1u,
unsigned int  c = 1u 
)
inline

Initialization.

Definition at line 72 of file blast-parser-position.h.

void rostlab::blast::position::lines ( int  count = 1)
inline

(line related) Advance to the COUNT next lines.

Definition at line 84 of file blast-parser-position.h.

Member Data Documentation

unsigned int rostlab::blast::position::column

Current column number.

Definition at line 105 of file blast-parser-position.h.

std::string* rostlab::blast::position::filename

File name to which this position refers.

Definition at line 101 of file blast-parser-position.h.

unsigned int rostlab::blast::position::line

Current line number.

Definition at line 103 of file blast-parser-position.h.


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