ADC 7.0

- Main Page
- Related Pages
- Classes
- Files

- Class List
- Class Index
- Class Members

All Classes Functions Variables Pages
Public Member Functions | List of all members
RingBuffer Class Reference

`#include <RingBuffer.h>`

## Public Member Functions
| RingBuffer ()
| Default constructor, buffer has a size DEFAULT_BUFFER_SIZE.
virtual | ~RingBuffer ()
int | isFull ()
| Returns 1 (true) if the buffer is full.
int | isEmpty ()
| Returns 1 (true) if the buffer is empty.
void | write (int value)
| Write a value into the buffer.
int | read ()
| Read a value from the buffer.

## Detailed Description

Class RingBuffer implements a circular buffer of fixed size (must be power of 2) Code adapted from http://en.wikipedia.org/wiki/Circular_buffer#Mirroring

## Constructor & Destructor Documentation

RingBuffer::~RingBuffer | ( |  | ) |
| virtual

Default destructor

The documentation for this class was generated from the following files:

- RingBuffer.h
- RingBuffer.cpp