torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::generic::location Class Reference

Abstract a location. More...

#include <location.hh>

+ Collaboration diagram for torc::generic::location:

Public Member Functions

 location ()
 Construct a location. More...
 
void initialize (std::string *fn)
 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...
 

Data Fields

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

Detailed Description

Abstract a location.

Definition at line 55 of file generic/edif/location.hh.

Constructor & Destructor Documentation

torc::generic::location::location ( )
inline

Construct a location.

Definition at line 60 of file generic/edif/location.hh.

61  : begin (), end ()
62  {
63  }
position begin
Beginning of the located region.
position end
End of the located region.

Member Function Documentation

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

Extend the current location to the COUNT next columns.

Definition at line 83 of file generic/edif/location.hh.

84  {
85  end += count;
86  }
position end
End of the located region.
void torc::generic::location::initialize ( std::string *  fn)
inline

Initialization.

Definition at line 67 of file generic/edif/location.hh.

68  {
69  begin.initialize (fn);
70  end = begin;
71  }
position begin
Beginning of the located region.
position end
End of the located region.
void initialize(std::string *fn)
Initialization.

+ Here is the call graph for this function:

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

Extend the current location to the COUNT next lines.

Definition at line 89 of file generic/edif/location.hh.

90  {
91  end.lines (count);
92  }
position end
End of the located region.
void lines(int count=1)
(line related) Advance to the COUNT next lines.

+ Here is the call graph for this function:

void torc::generic::location::step ( )
inline

Reset initial location to final location.

Definition at line 77 of file generic/edif/location.hh.

78  {
79  begin = end;
80  }
position begin
Beginning of the located region.
position end
End of the located region.

Field Documentation

position torc::generic::location::begin

Beginning of the located region.

Definition at line 98 of file generic/edif/location.hh.

position torc::generic::location::end

End of the located region.

Definition at line 100 of file generic/edif/location.hh.


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