Functions
OpenRTM_aist::CORBA_SeqUtil Namespace Reference

Functions

def back
 Get the last element of the CORBA sequence.
def clear
 Erase all the elements of the CORBA sequence.
def erase
 Erase the element of the specified index.
def erase_if
def find
 Return the index of CORBA sequence element that functor matches.
def for_each
 Apply the functor to all CORBA sequence elements.
def front
 Get the front element of the CORBA sequence.
def insert
 Insert the element to the CORBA sequence.
def push_back
 Push the new element back to the CORBA sequence.
def push_back_list
def refToVstring
 coil::vstring refToVstring(const CorbaRefSequence& objlist)

Function Documentation

Get the last element of the CORBA sequence.

This operation returns seq[seq.length() - 1].

Parameters:
seqThe CORBA sequence to be get the element

Definition at line 213 of file CORBA_SeqUtil.py.

Erase all the elements of the CORBA sequence.

same as seq.length(0).

Definition at line 280 of file CORBA_SeqUtil.py.

def OpenRTM_aist.CORBA_SeqUtil.erase (   seq,
  index 
)

Erase the element of the specified index.

This operation removes the element of the given index. The other elements are closed up around the hole.

Parameters:
seqThe CORBA sequence to be get the element
indexThe index of the element to be removed

Definition at line 239 of file CORBA_SeqUtil.py.

def OpenRTM_aist.CORBA_SeqUtil.erase_if (   seq,
  f 
)

Definition at line 259 of file CORBA_SeqUtil.py.

def OpenRTM_aist.CORBA_SeqUtil.find (   seq,
  f 
)

Return the index of CORBA sequence element that functor matches.

This operation applies the given functor to the given CORBA sequence, and returns the index of the sequence element that the functor matches. The functor should be bool functor(const CORBA sequence element) type, and it would return true, if the element matched the functor.

Parameters:
seqCORBA sequence to be applied the functor
functorA functor to process CORBA sequence elements
Returns:
The index of the element that functor matches. If no element found, it would return -1.

Definition at line 84 of file CORBA_SeqUtil.py.

def OpenRTM_aist.CORBA_SeqUtil.for_each (   seq,
  f 
)

Apply the functor to all CORBA sequence elements.

Apply the given functor to the given CORBA sequence. functor should be void functor(CORBA sequence element).

Parameters:
seqCORBA sequence to be applied the functor
functorA functor to process CORBA sequence elements
Returns:
Functor that processed all CORBA sequence elements

Definition at line 47 of file CORBA_SeqUtil.py.

Get the front element of the CORBA sequence.

This operation returns seq[0].

Parameters:
seqThe CORBA sequence to be get the element

Definition at line 189 of file CORBA_SeqUtil.py.

def OpenRTM_aist.CORBA_SeqUtil.insert (   seq,
  elem,
  index 
)

Insert the element to the CORBA sequence.

Insert a new element in the given position to the CORBA sequence. If the given index is greater than the length of the sequence, the given element is pushed back to the last of the sequence. The length of the CORBA sequence will be expanded automatically.

Parameters:
seqThe CORBA sequence to be inserted a new element
elemThe new element to be inserted the sequence
indexThe inserting position

Definition at line 161 of file CORBA_SeqUtil.py.

def OpenRTM_aist.CORBA_SeqUtil.push_back (   seq,
  elem 
)

Push the new element back to the CORBA sequence.

Add the given element to the last of CORBA sequence. The length of the CORBA sequence will be expanded automatically.

Parameters:
seqCORBA sequence to be added a new element
elemThe new element to be added to the CORBA sequence

Definition at line 113 of file CORBA_SeqUtil.py.

def OpenRTM_aist.CORBA_SeqUtil.push_back_list (   seq1,
  seq2 
)

Definition at line 129 of file CORBA_SeqUtil.py.

coil::vstring refToVstring(const CorbaRefSequence& objlist)

Definition at line 285 of file CORBA_SeqUtil.py.



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