Jpp
15.0.1-rc.2-highQE
the software that should make you happy
|
Logical location of module. More...
#include <JLocation.hh>
Public Member Functions | |
JLocation () | |
Default constructor. More... | |
JLocation (const int string, const int floor) | |
Constructor. More... | |
const JLocation & | getLocation () const |
Get location. More... | |
JLocation & | getLocation () |
Get location. More... | |
void | setLocation (const JLocation &location) |
Set location. More... | |
std::string | toString () const |
Convert module location to string. More... | |
std::string | toString (const std::string &fmt, const std::string target="%") const |
Convert module loation to string. More... | |
int | getString () const |
Get string number. More... | |
int | getFloor () const |
Get floor number. More... | |
bool | less (const JLocation &location) const |
Less than method. More... | |
Protected Attributes | |
int | string |
int | floor |
Friends | |
std::istream & | operator>> (std::istream &in, JLocation &location) |
Read module location from input. More... | |
std::ostream & | operator<< (std::ostream &out, const JLocation &location) |
Write module location to output. More... | |
JReader & | operator>> (JReader &in, JLocation &location) |
Read module location from input. More... | |
JWriter & | operator<< (JWriter &out, const JLocation &location) |
Write module location to output. More... | |
Logical location of module.
The logical location of a module consists of a string and floor number.
This class implements the JLANG::JComparable interface.
Definition at line 37 of file JLocation.hh.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Convert module location to string.
Definition at line 102 of file JLocation.hh.
|
inline |
Convert module loation to string.
The targets target
in the format string fmt
are consecutively replaced by floor
and string
.
fmt | format |
target | target |
Definition at line 118 of file JLocation.hh.
|
inline |
|
inline |
|
inline |
Less than method.
location | module location |
Definition at line 157 of file JLocation.hh.
|
friend |
Read module location from input.
in | input stream |
location | module location |
Definition at line 173 of file JLocation.hh.
|
friend |
Write module location to output.
out | output stream |
location | module location |
Definition at line 189 of file JLocation.hh.
Read module location from input.
in | reader |
location | module location |
Definition at line 208 of file JLocation.hh.
Write module location to output.
out | writer |
location | module location |
Definition at line 224 of file JLocation.hh.
|
protected |
Definition at line 234 of file JLocation.hh.
|
protected |
Definition at line 235 of file JLocation.hh.