BufferBase.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 # -*- coding: euc-jp -*-
3 
4 
17 
18 import OpenRTM_aist
19 
20 
52  """
53  """
54 
55 
56 
94  def init(self, prop):
95  pass
96 
97 
98 
117  def length(self):
118  pass
119 
120 
121 
142  def reset(self):
143  pass
144 
145 
146 
165  def wptr(self, n=0):
166  pass
167 
168 
169 
189  def advanceWptr(self, n = 1):
190  pass
191 
192 
193 
209  def put(self, data):
210  pass
211 
212 
213 
231  def write(self, value, sec=-1, nsec=-1):
232  pass
233 
234 
235 
258  def writable(self):
259  pass
260 
261 
262 
280  def full(self):
281  pass
282 
283 
284 
303  def rptr(self, n = 0):
304  pass
305 
306 
326  def advanceRptr(self, n = 1):
327  pass
328 
329 
330 
347  def get(self):
348  pass
349 
350 
351 
369  def read(self, value, sec = -1, nsec = -1):
370  pass
371 
372 
373 
396  def readable(self):
397  pass
398 
399 
400 
418  def empty(self):
419  pass
420 
421 
422 
423 
438  """
439  """
440 
441 
442 
443 
457  def __init__(self, size=None):
458  self._length = 1
459  self._data = None
460  self._is_new = False
461  self._inited = False
462 
463 
464 
482  def length(self):
483  return 1
484 
485 
486 
503  def write(self, value, sec=-1, nsec=-1):
504  self.put(value)
505  return True
506 
507 
508 
525  def read(self, value):
526  if not self._inited:
527  return False
528  value[0] = self.get()
529  return True
530 
531 
532 
548  def isFull(self):
549  return False
550 
551 
552 
569  def isEmpty(self):
570  return False
571 
572 
573 
589  def isNew(self):
590  return self._is_new
591 
592 
593 
608  def put(self, data):
609  self._data = data
610  self._is_new = True
611  self._inited = True
612 
613 
614 
630  def get(self):
631  self._is_new = False
632  return self._data
633 
634 
635 
653  def getRef(self):
654  return self._data
def rptr(self, n=0)
Get the buffer length.
Definition: BufferBase.py:303
def readable(self)
Write data into the buffer.
Definition: BufferBase.py:396
def advanceRptr(self, n=1)
Get the buffer length.
Definition: BufferBase.py:326
def read(self, value)
Read data from the buffer.
Definition: BufferBase.py:525
def __init__(self, size=None)
Definition: BufferBase.py:457
BufferBase abstract class.
Definition: BufferBase.py:51
def writable(self)
Write data into the buffer.
Definition: BufferBase.py:258
def put(self, data)
Write data into the buffer.
Definition: BufferBase.py:608
def read(self, value, sec=-1, nsec=-1)
Read data from the buffer.
Definition: BufferBase.py:369
def empty(self)
Check on whether the buffer is empty.
Definition: BufferBase.py:418
def isEmpty(self)
Always false.
Definition: BufferBase.py:569
def wptr(self, n=0)
Get the buffer length.
Definition: BufferBase.py:165
def getRef(self)
Get the buffer's reference to be written the next.
Definition: BufferBase.py:653
def write(self, value, sec=-1, nsec=-1)
Write data into the buffer.
Definition: BufferBase.py:503
def get(self)
Get data from the buffer.
Definition: BufferBase.py:630
def get(self)
Get data from the buffer.
Definition: BufferBase.py:347
def write(self, value, sec=-1, nsec=-1)
Write data into the buffer.
Definition: BufferBase.py:231
def advanceWptr(self, n=1)
Get the buffer length.
Definition: BufferBase.py:189
def length(self)
Get the buffer length.
Definition: BufferBase.py:482
def put(self, data)
Write data into the buffer.
Definition: BufferBase.py:209
def length(self)
Get the buffer length.
Definition: BufferBase.py:117
def isFull(self)
Always false.
Definition: BufferBase.py:548
def reset(self)
Get the buffer length.
Definition: BufferBase.py:142
def full(self)
Check on whether the buffer is full.
Definition: BufferBase.py:280


openrtm_aist_python
Author(s): Shinji Kurihara
autogenerated on Thu Jun 6 2019 19:11:34