OpenRTM-aist-Python 1.1.2
Public Member Functions | List of all members
OpenRTM_aist.RingBuffer.RingBuffer Class Reference
Inheritance diagram for OpenRTM_aist.RingBuffer.RingBuffer:
OpenRTM_aist.BufferBase.BufferBase OpenRTM_aist.BufferStatus.BufferStatus OpenRTM_aist.CdrRingBuffer.CdrRingBuffer

Public Member Functions

def __init__ (self, length=RINGBUFFER_DEFAULT_LENGTH)
 Constructor. More...
 
def init (self, prop)
 void init(const coil::Properties& prop)
 
def length (self, n=None)
 Get the buffer length. More...
 
def reset (self)
 Get the buffer length. More...
 
def wptr (self, n=0)
 Get the buffer length. More...
 
def advanceWptr (self, n=1)
 Get the buffer length. More...
 
def put (self, value)
 Write data into the buffer. More...
 
def write (self, value, sec=-1, nsec=0)
 Write data into the buffer. More...
 
def writable (self)
 Write data into the buffer. More...
 
def full (self)
 Check on whether the buffer is full. More...
 
def rptr (self, n=0)
 Get the buffer length. More...
 
def advanceRptr (self, n=1)
 Get the buffer length. More...
 
def get (self, value=None)
 Write data into the buffer. More...
 
def read (self, value, sec=-1, nsec=0)
 Readout data from the buffer. More...
 
def readable (self)
 Write data into the buffer. More...
 
def empty (self)
 Check on whether the buffer is empty. More...
 
- Public Member Functions inherited from OpenRTM_aist.BufferBase.BufferBase
def length (self)
 Get the buffer length. More...
 
def reset (self)
 Get the buffer length. More...
 
def wptr (self, n=0)
 Get the buffer length. More...
 
def advanceWptr (self, n=1)
 Get the buffer length. More...
 
def put (self, data)
 Write data into the buffer. More...
 
def write (self, value, sec=-1, nsec=-1)
 Write data into the buffer. More...
 
def writable (self)
 Write data into the buffer. More...
 
def full (self)
 Check on whether the buffer is full. More...
 
def rptr (self, n=0)
 Get the buffer length. More...
 
def advanceRptr (self, n=1)
 Get the buffer length. More...
 
def get (self)
 Get data from the buffer. More...
 
def read (self, value, sec=-1, nsec=-1)
 Read data from the buffer. More...
 
def readable (self)
 Write data into the buffer. More...
 
def empty (self)
 Check on whether the buffer is empty. More...
 

Detailed Description

 

Constructor & Destructor Documentation

def OpenRTM_aist.RingBuffer.RingBuffer.__init__ (   self,
  length = RINGBUFFER_DEFAULT_LENGTH 
)

Constructor.

Constructor. Initialize the buffer by specified buffer length. However, if the specified length is less than two, the buffer should be initialized by two in length.

Parameters
lengthBuffer length

Member Function Documentation

def OpenRTM_aist.RingBuffer.RingBuffer.advanceRptr (   self,
  n = 1 
)

Get the buffer length.

Pure virtual function to get the buffer length.

Returns
buffer length

DataType* rptr(long int n = 0)

def OpenRTM_aist.RingBuffer.RingBuffer.advanceWptr (   self,
  n = 1 
)

Get the buffer length.

Pure virtual function to get the buffer length.

Returns
buffer length

ReturnCode advanceWptr(long int n = 1)

def OpenRTM_aist.RingBuffer.RingBuffer.empty (   self)

Check on whether the buffer is empty.

Pure virtual function to check on whether the buffer is empty.

Returns
True if the buffer is empty, else false.

bool empty(void) const

def OpenRTM_aist.RingBuffer.RingBuffer.full (   self)

Check on whether the buffer is full.

Pure virtual function to check on whether the buffer is full.

Returns
True if the buffer is full, else false.

bool full(void) const

def OpenRTM_aist.RingBuffer.RingBuffer.get (   self,
  value = None 
)

Write data into the buffer.

Pure virtual function to write data into the buffer.

Parameters
valueTarget data to write.
Returns
Result of having written in data (true:Successful, false:Failed)

ReturnCode get(DataType& value)

def OpenRTM_aist.RingBuffer.RingBuffer.length (   self,
  n = None 
)

Get the buffer length.

size_t length(void) const

def OpenRTM_aist.RingBuffer.RingBuffer.put (   self,
  value 
)

Write data into the buffer.

Pure virtual function to write data into the buffer.

def OpenRTM_aist.RingBuffer.RingBuffer.read (   self,
  value,
  sec = -1,
  nsec = 0 
)

Readout data from the buffer.

Readout data stored into the buffer.

Parameters
value(list)Readout data
Returns
Readout result (Always true: readout success is returned)

ReturnCode read(DataType& value, long int sec = -1, long int nsec = 0)

def OpenRTM_aist.RingBuffer.RingBuffer.readable (   self)

Write data into the buffer.

Pure virtual function to write data into the buffer.

Parameters
valueTarget data to write.
Returns
Result of having written in data (true:Successful, false:Failed)

size_t readable() const

def OpenRTM_aist.RingBuffer.RingBuffer.reset (   self)

Get the buffer length.

Pure virtual function to get the buffer length.

Returns
buffer length

ReturnCode reset()

def OpenRTM_aist.RingBuffer.RingBuffer.rptr (   self,
  n = 0 
)

Get the buffer length.

Pure virtual function to get the buffer length.

Returns
buffer length
def OpenRTM_aist.RingBuffer.RingBuffer.wptr (   self,
  n = 0 
)

Get the buffer length.

Pure virtual function to get the buffer length.

Returns
buffer length

DataType* wptr(long int n = 0)

def OpenRTM_aist.RingBuffer.RingBuffer.writable (   self)

Write data into the buffer.

Pure virtual function to write data into the buffer.

Parameters
valueTarget data to write.
Returns
Result of having written in data (true:Successful, false:Failed)

size_t writable() const

def OpenRTM_aist.RingBuffer.RingBuffer.write (   self,
  value,
  sec = -1,
  nsec = 0 
)

Write data into the buffer.

Write data which is given argument into the buffer.

Parameters
valueTarget data for writing
Returns
Writing result (Always true: writing success is returned)

ReturnCode write(const DataType& value, long int sec = -1, long int nsec = 0)


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