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

Two points in a source file. More...

#include <blast-parser-location.h>

Collaboration diagram for rostlab::blast::location:
Collaboration graph
[legend]

Public Member Functions

 location (const position &b, const position &e)
 Construct a location from b to e. More...
 
 location (const position &p=position())
 Construct a 0-width location in p. More...
 
 location (std::string *f, unsigned l=1u, unsigned c=1u)
 Construct a 0-width location in f, l, c. More...
 
void initialize (std::string *f=YY_NULLPTR, unsigned l=1u, unsigned c=1u)
 Initialization. More...
 
Line and Column related manipulators
void step ()
 Reset initial location to final location. More...
 
void columns (int count=1)
 Extend the current location to the COUNT next columns. More...
 
void lines (int count=1)
 Extend the current location to the COUNT next lines. More...
 

Public Attributes

position begin
 Beginning of the located region. More...
 
position end
 End of the located region. More...
 

Detailed Description

Two points in a source file.

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

Constructor & Destructor Documentation

◆ location() [1/3]

rostlab::blast::location::location ( const position b,
const position e 
)
inline

Construct a location from b to e.

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

◆ location() [2/3]

rostlab::blast::location::location ( const position p = position ())
inlineexplicit

Construct a 0-width location in p.

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

◆ location() [3/3]

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

Construct a 0-width location in f, l, c.

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

Member Function Documentation

◆ columns()

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

Extend the current location to the COUNT next columns.

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

◆ initialize()

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

Initialization.

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

◆ lines()

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

Extend the current location to the COUNT next lines.

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

◆ step()

void rostlab::blast::location::step ( )
inline

Reset initial location to final location.

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

Member Data Documentation

◆ begin

position rostlab::blast::location::begin

Beginning of the located region.

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

◆ end

position rostlab::blast::location::end

End of the located region.

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


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