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
neverclaimyy::location Class Reference

Abstract a location. More...

#include <neverparse/location.hh>

Collaboration diagram for neverclaimyy::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

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

Construct a location from b to e.

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

Construct a 0-width location in p.

neverclaimyy::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 neverclaimyy::location::columns ( unsigned int  count = 1)
inline

Extend the current location to the COUNT next columns.

References end.

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

Initialization.

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

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

Extend the current location to the COUNT next lines.

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

void neverclaimyy::location::step ( )
inline

Reset initial location to final location.

References begin, and end.

Member Data Documentation

position neverclaimyy::location::begin

Beginning of the located region.

Referenced by initialize(), and step().

position neverclaimyy::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