Home | History | Annotate | Download | only in courgette

Lines Matching defs:Region

14 // A Region is a descriptor for a region of memory.  It has a start address and
15 // a length measured in bytes. The Region object does not own the memory.
17 class Region {
19 // Default constructor: and empty region.
20 Region() : start_(NULL), length_(0) {}
23 Region(const void* start, size_t length)
28 // String constructor. Region is owned by the string, so the string should
29 // have a lifetime greater than the region.
30 explicit Region(const std::string& string)
36 Region(const Region& other) : start_(other.start_), length_(other.length_) {}
38 // Assignment 'operator' makes |this| region the same as |other|.
39 Region& assign(const Region& other) {
45 // Returns the starting address of the region.
48 // Returns the length of the region.
51 // Returns the address after the last byte of the region.
58 void operator=(const Region&); // Disallow assignment operator.