Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
OpenRTM_aist.RingBuffer.RingBuffer Class Reference
Inheritance diagram for OpenRTM_aist.RingBuffer.RingBuffer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
 Constructor.
def advanceRptr
 Get the buffer length.
def advanceWptr
 Get the buffer length.
def empty
 Check on whether the buffer is empty.
def full
 Check on whether the buffer is full.
def get
 Write data into the buffer.
def init
 void init(const coil::Properties& prop)
def length
 Get the buffer length.
def put
 Write data into the buffer.
def read
 Readout data from the buffer.
def readable
 Write data into the buffer.
def reset
 Get the buffer length.
def rptr
 Get the buffer length.
def wptr
 Get the buffer length.
def writable
 Write data into the buffer.
def write
 Write data into the buffer.

Static Public Attributes

int RINGBUFFER_DEFAULT_LENGTH = 8

Private Member Functions

def __initLength
 void initLength(const coil::Properties& prop)
def __initReadPolicy
 void initReadPolicy(const coil::Properties& prop)
def __initWritePolicy
 void initWritePolicy(const coil::Properties& prop)

Private Attributes

 _buffer
 _empty_cond
 _empty_mutex
 _fillcount
 _full_cond
 _full_mutex
 _length
 _overwrite
 _pos_mutex
 _readback
 _rpos
 _rtimeout
 _timedread
 _timedwrite
 _wcount
 _wpos
 _wtimeout

Detailed Description

Definition at line 41 of file RingBuffer.py.


Constructor & Destructor Documentation

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

Definition at line 71 of file RingBuffer.py.


Member Function Documentation

def OpenRTM_aist.RingBuffer.RingBuffer.__initLength (   self,
  prop 
) [private]

void initLength(const coil::Properties& prop)

Definition at line 708 of file RingBuffer.py.

def OpenRTM_aist.RingBuffer.RingBuffer.__initReadPolicy (   self,
  prop 
) [private]

void initReadPolicy(const coil::Properties& prop)

Definition at line 741 of file RingBuffer.py.

def OpenRTM_aist.RingBuffer.RingBuffer.__initWritePolicy (   self,
  prop 
) [private]

void initWritePolicy(const coil::Properties& prop)

Definition at line 718 of file RingBuffer.py.

Get the buffer length.

Pure virtual function to get the buffer length.

Returns:
buffer length

DataType* rptr(long int n = 0)

Reimplemented from OpenRTM_aist.BufferBase.BufferBase.

Definition at line 497 of file RingBuffer.py.

Get the buffer length.

Pure virtual function to get the buffer length.

Returns:
buffer length

ReturnCode advanceWptr(long int n = 1)

Reimplemented from OpenRTM_aist.BufferBase.BufferBase.

Definition at line 254 of file RingBuffer.py.

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

Reimplemented from OpenRTM_aist.BufferBase.BufferBase.

Definition at line 702 of file RingBuffer.py.

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

Reimplemented from OpenRTM_aist.BufferBase.BufferBase.

Definition at line 446 of file RingBuffer.py.

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)

Definition at line 540 of file RingBuffer.py.

def OpenRTM_aist.RingBuffer.RingBuffer.init (   self,
  prop 
)

void init(const coil::Properties& prop)

Reimplemented from OpenRTM_aist.BufferBase.BufferBase.

Definition at line 134 of file RingBuffer.py.

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

Get the buffer length.

size_t length(void) const

Definition at line 158 of file RingBuffer.py.

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

Write data into the buffer.

Pure virtual function to write data into the buffer.

Reimplemented from OpenRTM_aist.BufferBase.BufferBase.

Definition at line 300 of file RingBuffer.py.

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)

Reimplemented from OpenRTM_aist.BufferBase.BufferBase.

Definition at line 592 of file RingBuffer.py.

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

Reimplemented from OpenRTM_aist.BufferBase.BufferBase.

Definition at line 677 of file RingBuffer.py.

Get the buffer length.

Pure virtual function to get the buffer length.

Returns:
buffer length

ReturnCode reset()

Reimplemented from OpenRTM_aist.BufferBase.BufferBase.

Definition at line 195 of file RingBuffer.py.

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

Get the buffer length.

Pure virtual function to get the buffer length.

Returns:
buffer length

Reimplemented from OpenRTM_aist.BufferBase.BufferBase.

Definition at line 470 of file RingBuffer.py.

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)

Reimplemented from OpenRTM_aist.BufferBase.BufferBase.

Definition at line 225 of file RingBuffer.py.

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

Reimplemented from OpenRTM_aist.BufferBase.BufferBase.

Definition at line 421 of file RingBuffer.py.

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)

Reimplemented from OpenRTM_aist.BufferBase.BufferBase.

Definition at line 348 of file RingBuffer.py.


Member Data Documentation

Definition at line 71 of file RingBuffer.py.

Definition at line 71 of file RingBuffer.py.

Definition at line 71 of file RingBuffer.py.

Definition at line 71 of file RingBuffer.py.

Definition at line 71 of file RingBuffer.py.

Definition at line 71 of file RingBuffer.py.

Definition at line 71 of file RingBuffer.py.

Definition at line 71 of file RingBuffer.py.

Definition at line 71 of file RingBuffer.py.

Definition at line 71 of file RingBuffer.py.

Definition at line 71 of file RingBuffer.py.

Definition at line 71 of file RingBuffer.py.

Definition at line 71 of file RingBuffer.py.

Definition at line 71 of file RingBuffer.py.

Definition at line 71 of file RingBuffer.py.

Definition at line 71 of file RingBuffer.py.

Definition at line 71 of file RingBuffer.py.

Definition at line 45 of file RingBuffer.py.


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


openrtm_aist_python
Author(s): Shinji Kurihara
autogenerated on Thu Aug 27 2015 14:17:30