Vcsn  2.0
Be Rational
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
vcsn::rat::location Class Reference

Abstract a location. More...

#include <location.hh>

Collaboration diagram for vcsn::rat::location:

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=0, 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 (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

Abstract a location.

Definition at line 47 of file location.hh.

Constructor & Destructor Documentation

vcsn::rat::location::location ( const position b,
const position e 
)
inline

Construct a location from b to e.

Definition at line 52 of file location.hh.

Referenced by vcsn::detail::dot::parser::parse(), and vcsn::rat::parser::parse().

vcsn::rat::location::location ( const position p = position ())
inlineexplicit

Construct a 0-width location in p.

Definition at line 59 of file location.hh.

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

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

Definition at line 66 of file location.hh.

Member Function Documentation

void vcsn::rat::location::columns ( int  count = 1)
inline

Extend the current location to the COUNT next columns.

Definition at line 94 of file location.hh.

References end.

void vcsn::rat::location::initialize ( std::string *  f = 0,
unsigned int  l = 1u,
unsigned int  c = 1u 
)
inline

Initialization.

Definition at line 76 of file location.hh.

References begin, end, and vcsn::rat::position::initialize().

Here is the call graph for this function:

void vcsn::rat::location::lines ( int  count = 1)
inline

Extend the current location to the COUNT next lines.

Definition at line 100 of file location.hh.

References end, and vcsn::rat::position::lines().

Here is the call graph for this function:

void vcsn::rat::location::step ( )
inline

Reset initial location to final location.

Definition at line 88 of file location.hh.

References begin, and end.

Member Data Documentation

position vcsn::rat::location::begin

Beginning of the located region.

Definition at line 109 of file location.hh.

Referenced by initialize(), and step().

position vcsn::rat::location::end

End of the located region.

Definition at line 111 of file location.hh.

Referenced by columns(), initialize(), lines(), vcsn::rat::operator<<(), and step().


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