YARP
Yet Another Robot Platform
rpLidarCircularBuffer Class Reference

#include <rpLidar/rpLidar.h>

Public Member Functions

bool isFull ()
 
const bytegetRawData ()
 
bool isEmpty ()
 
bool write_elem (byte elem)
 
bool write_elems (byte *elems, int size)
 
int size ()
 
bool read_elem (byte *elem)
 
void throw_away_elem ()
 
void throw_away_elems (int size)
 
byte select_elem (int offset)
 
void select_elems (byte *elems, int size)
 
bool read_elems (byte *elems, int size)
 
unsigned int getMaxSize ()
 
void clear ()
 
unsigned int get_start ()
 
unsigned int get_end ()
 
 rpLidarCircularBuffer (int bufferSize)
 
 ~rpLidarCircularBuffer ()
 

Detailed Description

Definition at line 45 of file rpLidar.h.

Constructor & Destructor Documentation

◆ rpLidarCircularBuffer()

rpLidarCircularBuffer::rpLidarCircularBuffer ( int  bufferSize)

Definition at line 47 of file rpLidar.cpp.

◆ ~rpLidarCircularBuffer()

rpLidarCircularBuffer::~rpLidarCircularBuffer ( )

Definition at line 55 of file rpLidar.cpp.

Member Function Documentation

◆ clear()

void rpLidarCircularBuffer::clear ( )
inline

Definition at line 151 of file rpLidar.h.

◆ get_end()

unsigned int rpLidarCircularBuffer::get_end ( )
inline

Definition at line 162 of file rpLidar.h.

◆ get_start()

unsigned int rpLidarCircularBuffer::get_start ( )
inline

Definition at line 157 of file rpLidar.h.

◆ getMaxSize()

unsigned int rpLidarCircularBuffer::getMaxSize ( )
inline

Definition at line 146 of file rpLidar.h.

◆ getRawData()

const byte* rpLidarCircularBuffer::getRawData ( )
inline

Definition at line 58 of file rpLidar.h.

◆ isEmpty()

bool rpLidarCircularBuffer::isEmpty ( )
inline

Definition at line 63 of file rpLidar.h.

◆ isFull()

bool rpLidarCircularBuffer::isFull ( )
inline

Definition at line 53 of file rpLidar.h.

◆ read_elem()

bool rpLidarCircularBuffer::read_elem ( byte elem)
inline

Definition at line 102 of file rpLidar.h.

◆ read_elems()

bool rpLidarCircularBuffer::read_elems ( byte elems,
int  size 
)
inline

Definition at line 137 of file rpLidar.h.

◆ select_elem()

byte rpLidarCircularBuffer::select_elem ( int  offset)
inline

Definition at line 124 of file rpLidar.h.

◆ select_elems()

void rpLidarCircularBuffer::select_elems ( byte elems,
int  size 
)
inline

Definition at line 129 of file rpLidar.h.

◆ size()

int rpLidarCircularBuffer::size ( )
inline

Definition at line 90 of file rpLidar.h.

◆ throw_away_elem()

void rpLidarCircularBuffer::throw_away_elem ( )
inline

Definition at line 114 of file rpLidar.h.

◆ throw_away_elems()

void rpLidarCircularBuffer::throw_away_elems ( int  size)
inline

Definition at line 119 of file rpLidar.h.

◆ write_elem()

bool rpLidarCircularBuffer::write_elem ( byte  elem)
inline

Definition at line 68 of file rpLidar.h.

◆ write_elems()

bool rpLidarCircularBuffer::write_elems ( byte elems,
int  size 
)
inline

Definition at line 81 of file rpLidar.h.


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