A template for a simple circular buffer. Always assumes that the buffer is full, and allows for negative indices and indices greater than buffer size.

History

Fixed GCC warning default tip

2012-11-03, by pclary [Sat, 03 Nov 2012 19:08:56 +0000] rev 4

Fixed GCC warning


Added comments and switched to standard mbed brace style (K&R)

2012-08-06, by UCSBRobotics [Mon, 06 Aug 2012 06:13:11 +0000] rev 3

Added comments and switched to standard mbed brace style (K&R)


Moved duplicated index calculating code into a private function

2012-08-05, by UCSBRobotics [Sun, 05 Aug 2012 22:18:39 +0000] rev 2

Moved duplicated index calculating code into a private function


Added the ability to write to arbitrary locations in the buffer and overloaded the [] operator.

2012-08-05, by UCSBRobotics [Sun, 05 Aug 2012 08:15:32 +0000] rev 1

Added the ability to write to arbitrary locations in the buffer and overloaded the [] operator.


Initial commit.; Basic circular buffer template is implemented and compiles.

2012-08-05, by UCSBRobotics [Sun, 05 Aug 2012 07:52:40 +0000] rev 0

Initial commit.; Basic circular buffer template is implemented and compiles.