RRegionBuf Class Reference

class RRegionBuf : public RRegion

Region with pre-allocated buffer.

This class provides the functionality of an RRegion , but in addition, for optimisation purposes, uses a buffer containing pre-allocated space for as many rectangles as are specified in the granularity.

When this buffer is full, cell allocation takes place as for an RRegion , and the RRegionBuf effectively becomes an RRegion . In this case, the region does not revert to using the buffer, even if the region were to shrink so that the buffer could, once again, contain the region. When the region is no longer required, call Close() , defined in the base class RRegion , to free up all memory.

Inherits from

Public Member Functions
RRegionBuf ()
RRegionBuf (const RRegion &)
RRegionBuf (const RRegionBuf < S > &)
RRegionBuf (const TRect &)
Inherited Functions
RRegion::CheckSpare()const
RRegion::Close()
RRegion::Destroy()
RRegion::RRegion()
RRegion::RRegion(TInt)
RRegion::RRegion(TInt,TInt)
RRegion::RRegion(TInt,TRect *,TInt)
RRegion::RRegion(const RRegion &)
RRegion::RRegion(const TRect &,TInt)
TRegion::AddRect(const TRect &)
TRegion::AppendRect(const TRect &)
TRegion::AppendRegion(TRegion &)
TRegion::BoundingRect()const
TRegion::CheckError()const
TRegion::Clear()
TRegion::ClipRect(const TRect &)
TRegion::Contains(const TPoint &)const
TRegion::Copy(const TRegion &)
TRegion::Count()const
TRegion::DeleteRect(TRect *)
TRegion::ExpandRegion(TInt)
TRegion::ForceError()
TRegion::Intersect(const TRegion &)
TRegion::Intersection(const TRegion &,const TRegion &)
TRegion::Intersects(const TRect &)const
TRegion::IsContainedBy(const TRect &)const
TRegion::IsEmpty()const
TRegion::MergeRect(const TRect &,TBool)
TRegion::Offset(TInt,TInt)
TRegion::Offset(const TPoint &)
TRegion::RectangleList()const
TRegion::RectangleListW()
TRegion::SetListSize(TInt)
TRegion::ShrinkRegion()
TRegion::Sort()
TRegion::Sort(const TPoint &)
TRegion::SubRect(const TRect &,TRegion *)
TRegion::SubRegion(const TRegion &,TRegion *)
TRegion::SubtractRegion(const TRegion &,TRegion *)
TRegion::TRegion()
TRegion::TRegion(TInt)
TRegion::Tidy()
TRegion::Union(const TRegion &)
TRegion::operator[](TInt)const
Inherited Enumerations
TRegion:@21
Private Attributes
TInt8 iRectangleBuf
Inherited Attributes
TRegion::iAllocedRects
TRegion::iCount
TRegion::iError

Constructor & Destructor Documentation

RRegionBuf()

RRegionBuf ( ) [inline]

Constructs a default object.

The granularity is the value of the template parameter.

RRegionBuf(const RRegion &)

RRegionBuf ( const RRegion & aRegion ) [inline]

Constructs this object from the specified RRegion .

Parameters

const RRegion & aRegion The region to assign to this RRegionBuf.

RRegionBuf(const RRegionBuf< S > &)

RRegionBuf ( const RRegionBuf < S > & aRegion ) [inline]

Copy constructs from an existing RRegionBuf object.

Parameters

const RRegionBuf < S > & aRegion The RRegionBuf to be copied.

RRegionBuf(const TRect &)

RRegionBuf ( const TRect & aRect ) [inline]

Constructs an RRegionBuf with a TRect .

Its granularity is initialised to the value contained in the template argument. The resulting region consists of the specified single rectangle.

Parameters

const TRect & aRect The single rectangle with which to initialise the region.

Member Data Documentation

TInt8 iRectangleBuf

TInt8 iRectangleBuf [private]