Cern
LibTmsApi 2.3.0

This class implements a pointer into the Fifo's circular buffer. More...

#include <BFifoCirc.h>

Public Member Functions

 BFifoCircPos (uint32_t size)
 
void setSize (uint32_t size)
 
void set (uint32_t pos)
 Sets the position.
 
uint32_t pos ()
 The current position.
 
void increment (uint32_t numFifoSamples)
 Increment the pointer by the given value.
 
uint32_t difference (const BFifoCircPos &pos)
 Return the difference between the two pointers.
 
 operator int ()
 
void operator+= (uint32_t numFifoSamples)
 
int operator== (const BFifoCircPos &pos)
 
int operator!= (const BFifoCircPos &pos)
 

Private Attributes

uint32_t osize
 
uint32_t opos
 

Detailed Description

This class implements a pointer into the Fifo's circular buffer.

Constructor & Destructor Documentation

◆ BFifoCircPos()

BFifoCircPos::BFifoCircPos ( uint32_t  size)

Member Function Documentation

◆ difference()

uint32_t BFifoCircPos::difference ( const BFifoCircPos pos)

Return the difference between the two pointers.

◆ increment()

void BFifoCircPos::increment ( uint32_t  numFifoSamples)

Increment the pointer by the given value.

◆ operator int()

BFifoCircPos::operator int ( )

◆ operator!=()

int BFifoCircPos::operator!= ( const BFifoCircPos pos)

◆ operator+=()

void BFifoCircPos::operator+= ( uint32_t  numFifoSamples)

◆ operator==()

int BFifoCircPos::operator== ( const BFifoCircPos pos)

◆ pos()

uint32_t BFifoCircPos::pos ( )

The current position.

◆ set()

void BFifoCircPos::set ( uint32_t  pos)

Sets the position.

◆ setSize()

void BFifoCircPos::setSize ( uint32_t  size)

Member Data Documentation

◆ opos

uint32_t BFifoCircPos::opos
private

◆ osize

uint32_t BFifoCircPos::osize
private

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