spot  1.2.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Public Attributes | List of all members
eltlyy::location Class Reference

Abstract a location. More...

#include <eltlparse/location.hh>

Collaboration diagram for eltlyy::location:
Collaboration graph

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 int l=1u, unsigned int c=1u)
 Construct a 0-width location in f, l, c. More...
 
void initialize (std::string *f=YY_NULL, unsigned int l=1u, unsigned int c=1u)
 Initialization. More...
 
Line and Column related manipulators
void step ()
 Reset initial location to final location. More...
 
void columns (unsigned int count=1)
 Extend the current location to the COUNT next columns. More...
 
void lines (unsigned 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

Abstract a location.

Constructor & Destructor Documentation

eltlyy::location::location ( const position b,
const position e 
)
inline

Construct a location from b to e.

eltlyy::location::location ( const position p = position ())
inlineexplicit

Construct a 0-width location in p.

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

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

Member Function Documentation

void eltlyy::location::columns ( unsigned int  count = 1)
inline

Extend the current location to the COUNT next columns.

References end.

void eltlyy::location::initialize ( std::string *  f = YY_NULL,
unsigned int  l = 1u,
unsigned int  c = 1u 
)
inline

Initialization.

References begin, end, and eltlyy::position::initialize().

void eltlyy::location::lines ( unsigned int  count = 1)
inline

Extend the current location to the COUNT next lines.

References end, and eltlyy::position::lines().

void eltlyy::location::step ( )
inline

Reset initial location to final location.

References begin, and end.

Member Data Documentation

position eltlyy::location::begin

Beginning of the located region.

Referenced by initialize(), and step().

position eltlyy::location::end

End of the located region.

Referenced by columns(), initialize(), lines(), and step().


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

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on Thu May 15 2014 11:04:11 for spot by doxygen 1.8.4