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.
Changes
Revision | Date | Who | Commit message |
---|---|---|---|
4:13b626890ad4 | 2012-11-03 | pclary | Fixed GCC warning |
3:1a33490e1990 | 2012-08-06 | UCSBRobotics | Added comments and switched to standard mbed brace style (K&R) |
2:4080c1770d51 | 2012-08-05 | UCSBRobotics | Moved duplicated index calculating code into a private function |
1:b24970e4c038 | 2012-08-05 | UCSBRobotics | Added the ability to write to arbitrary locations in the buffer and overloaded the [] operator. |
0:787a5401f57e | 2012-08-05 | UCSBRobotics | Initial commit.; Basic circular buffer template is implemented and compiles. |