|
Last change
on this file since 91 was
81,
checked in by rosiere, 18 years ago
|
- Finish Environment (and test)
- Continue predictor_unit
- Add external tools
- svn keyword "Id" set
|
-
Property svn:keywords set to
Id
|
|
File size:
366 bytes
|
| Line | |
|---|
| 1 | #include "../include/Segment.h" |
|---|
| 2 | |
|---|
| 3 | namespace environment { |
|---|
| 4 | namespace data { |
|---|
| 5 | |
|---|
| 6 | bool Segment::test (std::string name) |
|---|
| 7 | { |
|---|
| 8 | return (this->name == name); |
|---|
| 9 | } |
|---|
| 10 | |
|---|
| 11 | bool Segment::test (uint32_t address, uint32_t size) |
|---|
| 12 | { |
|---|
| 13 | bool res = (((address ) >= (this->base )) and |
|---|
| 14 | ((address+size) <= (this->base+this->size))); |
|---|
| 15 | |
|---|
| 16 | return res; |
|---|
| 17 | } |
|---|
| 18 | |
|---|
| 19 | }; |
|---|
| 20 | }; |
|---|
Note: See
TracBrowser
for help on using the repository browser.