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

A point in a source file. More...

#include <blast-parser-location.h>

Public Member Functions

 position (std::string *f=YY_NULLPTR, unsigned l=1u, unsigned c=1u)
 Construct a position. More...
 
void initialize (std::string *fn=YY_NULLPTR, unsigned l=1u, unsigned 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 line
 Current line number. More...
 
unsigned column
 Current column number. More...
 

Detailed Description

A point in a source file.

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

Constructor & Destructor Documentation

◆ position()

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

Construct a position.

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

Member Function Documentation

◆ columns()

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

(column related) Advance to the COUNT next columns.

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

◆ initialize()

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

Initialization.

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

◆ lines()

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

(line related) Advance to the COUNT next lines.

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

Member Data Documentation

◆ column

unsigned rostlab::blast::position::column

Current column number.

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

◆ filename

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

File name to which this position refers.

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

◆ line

unsigned rostlab::blast::position::line

Current line number.

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


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