| small text normal text large text | |||
|
You are here: home > resources > circularbuffer
descriptionA C++ template class that implements a circular buffer of any data type. A circular buffer consists of a fixed buffer that has two independent pointers, one for reading data from the buffer, the other for writing data to the buffer. It can be thought of as a queue, in that data that is first written into the buffer is first read out, albeit with a fixed size. declaration
usage
To declare a circular buffer, use something like:
The third, optional, parameter (COPYEACH) is used to control the method used when copying items to and from the buffer. If compatibilityDeveloped using Microsoft Visual C++ 6.0; ANSI-compatible. licenceThe source code contains the following statement: "This source code may be used, modified, compiled, duplicated, and/or distributed without restriction provided this copyright notice remains intact. Cyotec Systems Limited and/or its employees cannot be held responsible for any direct or indirect damage or loss of any kind that may result from using this code, and provides no warranty, guarantee, or support." By downloading the source code you automatically agree to these licence terms. current releaseVersion 1.0.2 - 7th October 2004 downloadDownload the CircularBuffer source code here (4 KB) MD5 hash: 25A010117CBBB295D37B2377576CDA79
|
|
Copyright © Cyotec Systems, 2003-2008. All rights reserved. |