|
Developer Documentation |
|
Centre for Vision, Speech & Signal Processing |
Comments:
The class BodyBufferC is a basic container based of continous storing
of elements randomly accessed by indexing. The container cannot be
shared.
Variables:
- BufferAccessC buff;
-
The access to the elements of the buffer. The reference elements
of object 'buff' is the first element of an allocated physical buffer.
Methods:
- BodyBufferC()
-
Creates a default empty buffer that is not valid.
- BodyBufferC(const SizeT n)
-
Creates the buffer able to contain up to 'n' elements. If 'n'==0,
a default empty buffer is created.
- BodyBufferC(DataC * bp)
-
- ~BodyBufferC()
-
Destructor.
- const BodyBufferC & operator=(BodyBufferC & b)
-
This buffer overtakes the memory from buffer 'b'. Buffer 'b'
is not valid after this operation.
Access methods
--------------
- const DataC & operator[](const IndexT i) const
-
Read-only access to the ('i'+1)-th element of the buffer.
- DataC & operator[](const IndexT i)
-
Read-write access to the ('i'+1)-th element of the buffer.
- const BufferAccessC<DataC> & Access() const
-
Returns the access function of this buffer.
- operator const BufferAccessC<DataC> &() const
-
Returns the access function of this buffer.
Defined here because of Visual C++.
Modifications
-------------
- const BodyBufferC<DataC> & Swap(BodyBufferC<DataC> & b)
-
Access methods of both buffers are mutually exchanged. The return
value is this object.
- BodyBufferC(const BodyBufferC<DataC> & ba)
-
A physical copy cannot be created because the size of the buffer
is not known. Sharing of the representation is not possible
because object is not reference counted.
Object representation
---------------------
- const BodyBufferC<DataC> & operator=(BodyBufferC<DataC> & b)
-
|
Programmer:Radek Marik, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001
|