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

Abstract a location. More...

#include <location.hh>

+ Collaboration diagram for torc::location:

Public Member Functions

 location ()
 Construct a location. More...
 
void initialize (std::string *fn)
 Initialization. More...
 
 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...
 
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 51 of file bitstream/assembler/lut/location.hh.

Constructor & Destructor Documentation

torc::location::location ( )
inline

Construct a location.

Definition at line 56 of file bitstream/assembler/lut/location.hh.

57  : begin (), end ()
58  {
59  }
position begin
Beginning of the located region.
position end
End of the located region.
torc::location::location ( )
inline

Construct a location.

Definition at line 56 of file physical/xdl/location.hh.

57  : begin (), end ()
58  {
59  }
position begin
Beginning of the located region.
position end
End of the located region.

Member Function Documentation

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

Extend the current location to the COUNT next columns.

Definition at line 79 of file bitstream/assembler/lut/location.hh.

80  {
81  end += count;
82  }
position end
End of the located region.

+ Here is the caller graph for this function:

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

Extend the current location to the COUNT next columns.

Definition at line 79 of file physical/xdl/location.hh.

80  {
81  end += count;
82  }
position end
End of the located region.
void torc::location::initialize ( std::string *  fn)
inline

Initialization.

Definition at line 63 of file physical/xdl/location.hh.

64  {
65  begin.initialize (fn);
66  end = begin;
67  }
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::location::initialize ( std::string *  fn)
inline

Initialization.

Definition at line 63 of file bitstream/assembler/lut/location.hh.

64  {
65  begin.initialize (fn);
66  end = begin;
67  }
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::location::lines ( unsigned int  count = 1)
inline

Extend the current location to the COUNT next lines.

Definition at line 85 of file bitstream/assembler/lut/location.hh.

86  {
87  end.lines (count);
88  }
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::location::lines ( unsigned int  count = 1)
inline

Extend the current location to the COUNT next lines.

Definition at line 85 of file physical/xdl/location.hh.

86  {
87  end.lines (count);
88  }
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::location::step ( )
inline

Reset initial location to final location.

Definition at line 73 of file physical/xdl/location.hh.

74  {
75  begin = end;
76  }
position begin
Beginning of the located region.
position end
End of the located region.
void torc::location::step ( )
inline

Reset initial location to final location.

Definition at line 73 of file bitstream/assembler/lut/location.hh.

74  {
75  begin = end;
76  }
position begin
Beginning of the located region.
position end
End of the located region.

Field Documentation

position torc::location::begin

Beginning of the located region.

Definition at line 94 of file bitstream/assembler/lut/location.hh.

position torc::location::end

End of the located region.

Definition at line 96 of file bitstream/assembler/lut/location.hh.


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