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

Abstract a location. More...

#include <tgbaparse/location.hh>

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

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

Construct a location from b to e.

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

Construct a 0-width location in p.

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

Extend the current location to the COUNT next columns.

References end.

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

Initialization.

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

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

Extend the current location to the COUNT next lines.

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

void tgbayy::location::step ( )
inline

Reset initial location to final location.

References begin, and end.

Member Data Documentation

position tgbayy::location::begin

Beginning of the located region.

Referenced by initialize(), and step().

position tgbayy::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 Sat Dec 6 2014 12:28:45 for spot by doxygen 1.8.4