| class CCirBuf : public CCirBufBase |
A circular buffer containing objects of a type defined by the template parameter.
| Public Member Functions | |
|---|---|
| CCirBuf () | |
| TInt | Add (const T *) |
| TInt | Add (const T *, TInt ) |
| TInt | Remove (T *) |
| TInt | Remove (T *, TInt ) |
| Inherited Attributes | |
|---|---|
| CCirBufBase::iCount | |
| CCirBufBase::iHead | |
| CCirBufBase::iLength | |
| CCirBufBase::iPtr | |
| CCirBufBase::iPtrE | |
| CCirBufBase::iSize | |
| CCirBufBase::iTail | |
| CCirBuf | ( | ) | [inline] |
Default C++ constructor.
The size of each object in the buffer is fixed and is the length of the class passed as the template parameter.
| TInt | Add | ( | const T * | aPtr | ) | [inline] |
Adds a single object to the circular buffer.
The object is of type class T and is only added if there is space available.
| const T * aPtr | A pointer to the object of type class T to be added to the circular buffer. |
| TInt | Add | ( | const T * | aPtr, |
| TInt | aCount | |||
| ) | [inline] | |||
Adds multiple objects to the circular buffer.
The function attempts to add aCount objects of type class T. The objects are only added if there is space available.
| const T * aPtr | A pointer to a set of contiguous objects of type class T to be added to the circular buffer. |
| TInt aCount | The number of objects to be added to the circular buffer. |
| TInt | Remove | ( | T * | aPtr | ) | [inline] |
Removes a single object from the circular buffer.
An object can only be removed if there are objects in the buffer.
A binary copy of the object is made to aPtr.
| T * aPtr | A pointer to an object of type class T supplied by the caller. |
| TInt | Remove | ( | T * | aPtr, |
| TInt | aCount | |||
| ) | [inline] | |||
Removes multiple objects from the circular buffer.
The function attempts to remove aCount objects of type class T. Objects can only be removed if there are objects in the buffer
A binary copy of the objects is made to aPtr.
| T * aPtr | A pointer to contiguous memory able to hold aCount class T objects, supplied by the caller. |
| TInt aCount | The number of objects to be removed from the circular buffer. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.