Developer Documentation
Centre for Vision, Speech & Signal Processing
USER IN NAMESPACE AMMA TREE ROOT AMMA SEARCH AMMA HOME
 

  PUBLIC
BodyBufferC::BodyBufferC(void)
BodyBufferC::BodyBufferC(const SizeT)
BodyBufferC::BodyBufferC(DataC *)
BodyBufferC::~BodyBufferC(void)
BodyBufferC::operator=(BodyBufferC &)
BodyBufferC::operator[](const IndexT) const
BodyBufferC::operator[](const IndexT)
BodyBufferC::Access(void) const
BodyBufferC::operator const BufferAccessC &(void) const
BodyBufferC::Swap(BodyBufferC &)
BodyBufferC::BodyBufferC(const BodyBufferC &)
BodyBufferC::operator=(BodyBufferC &)
BodyBufferC<class DataC>
 
A set of elements with random access
 
include "amma/BBuffer.hh"
User Level:Default
Library:Mbuff
Example:exBuffer.cc
Section:Containers.Arrays.Buffer
In Scope:std

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