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 |
Definition at line 41 of file RingBuffer.py.
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.
length | Buffer length |
Definition at line 71 of file RingBuffer.py.
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.
def OpenRTM_aist.RingBuffer.RingBuffer.advanceRptr | ( | self, | |
n = 1 |
|||
) |
Get the buffer length.
Pure virtual function to get the buffer length.
DataType* rptr(long int n = 0)
Reimplemented from OpenRTM_aist.BufferBase.BufferBase.
Definition at line 497 of file RingBuffer.py.
def OpenRTM_aist.RingBuffer.RingBuffer.advanceWptr | ( | self, | |
n = 1 |
|||
) |
Get the buffer length.
Pure virtual function to get the buffer length.
ReturnCode advanceWptr(long int n = 1)
Reimplemented from OpenRTM_aist.BufferBase.BufferBase.
Definition at line 254 of file RingBuffer.py.
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.
bool empty(void) const
Reimplemented from OpenRTM_aist.BufferBase.BufferBase.
Definition at line 702 of file RingBuffer.py.
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.
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.
value | Target data to write. |
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 |
|||
) |
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.
value(list) | Readout data |
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.
def OpenRTM_aist.RingBuffer.RingBuffer.readable | ( | self | ) |
Write data into the buffer.
Pure virtual function to write data into the buffer.
value | Target data to write. |
size_t readable() const
Reimplemented from OpenRTM_aist.BufferBase.BufferBase.
Definition at line 677 of file RingBuffer.py.
def OpenRTM_aist.RingBuffer.RingBuffer.reset | ( | self | ) |
Get the buffer length.
Pure virtual function to get the 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.
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.
DataType* wptr(long int n = 0)
Reimplemented from OpenRTM_aist.BufferBase.BufferBase.
Definition at line 225 of file RingBuffer.py.
def OpenRTM_aist.RingBuffer.RingBuffer.writable | ( | self | ) |
Write data into the buffer.
Pure virtual function to write data into the buffer.
value | Target data to write. |
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.
value | Target data for writing |
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.
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.
int OpenRTM_aist::RingBuffer.RingBuffer::RINGBUFFER_DEFAULT_LENGTH = 8 [static] |
Definition at line 45 of file RingBuffer.py.