Commit 538a160e authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[2206] Add const variant of getHeader()

parent e4511523
......@@ -77,6 +77,13 @@ public:
/// \return Returns the ZoneTableHeader for this zone table segment.
virtual ZoneTableHeader* getHeader() = 0;
/// \brief const version of \c getHeader().
///
/// NOTE: This method should never return \c NULL.
///
/// \return Returns the ZoneTableHeader for this zone table segment.
virtual const ZoneTableHeader* getHeader() const = 0;
/// \brief Return the MemorySegment for the zone table segment.
///
/// \return Returns the ZoneTableHeader for this zone table segment.
......
......@@ -25,6 +25,11 @@ ZoneTableSegmentLocal::getHeader() {
return (&header_);
}
const ZoneTableHeader*
ZoneTableSegmentLocal::getHeader() const {
return (&header_);
}
MemorySegment&
ZoneTableSegmentLocal::getMemorySegment() {
return (mem_sgmt_);
......
......@@ -51,6 +51,13 @@ public:
/// \return Returns the ZoneTableHeader for this zone table segment.
virtual ZoneTableHeader* getHeader();
/// \brief const version of \c getHeader().
///
/// NOTE: This method will never return \c NULL.
///
/// \return Returns the ZoneTableHeader for this zone table segment.
virtual const ZoneTableHeader* getHeader() const;
/// \brief Return the MemorySegment for the local zone table segment
/// implementation.
///
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment