Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

SequenceEx Class Reference

List of all members.

Public Member Functions

 __init__ (_sq)
 Copy constructor from CorbaSequence.
 __del__ ()
 Destructor.
 size ()
 Get size of this sequence.
 max_size ()
 Get current maximum size of this sequence.
 empty ()
 Test whether the sequence is empty.
 resize (new_size, item)
 Resize the length of the sequence.
 insert (position, item)
 Insert a new item to the sequence.
 erase (position)
 Erase an item of the sequence.
 erase_if (f)
 Erase an item according to the given predicate.
 push_back (item)
 Append an item to the end of the sequence.
 pop_back ()
 find (f)

Member Function Documentation

SequenceEx::__del__  ) 
 

Destructor.

SequenceEx::__init__ _sq   ) 
 

Copy constructor from CorbaSequence.

This constructor copies sequence contents from given CorbaSequence to this object.

Parameters:
_sq Copy source of CorbaSequence type

SequenceEx::empty  ) 
 

Test whether the sequence is empty.

This operation returns bool value whether the sequence is empty. If the size of the sequence is 0, this operation returns true, and in other case this operation returns false.

Returns:
The bool value whether the sequence is empty.

SequenceEx::erase position   ) 
 

Erase an item of the sequence.

This operation erases an item from the sequence.

Parameters:
position The position of erased item.

SequenceEx::erase_if  ) 
 

Erase an item according to the given predicate.

This operation erases an item according to the given predicate.

Parameters:
f The predicate functor to decide deletion.

SequenceEx::find  ) 
 

SequenceEx::insert position  ,
item 
 

Insert a new item to the sequence.

This operation inserts a new item to the sequence.

Parameters:
position The position of new inserted item.
item@ Sequence element to be inserted.

SequenceEx::max_size  ) 
 

Get current maximum size of this sequence.

This operation returns the current maximum size of the sequence. This is same as CorbaSequence::maximum().

Returns:
The maximum size of the sequence.

SequenceEx::pop_back  ) 
 

SequenceEx::push_back item   ) 
 

Append an item to the end of the sequence.

This operation push back an item to the of the sequence.

Parameters:
item The object to be added to the end of the sequnce.

SequenceEx::resize new_size  ,
item 
 

Resize the length of the sequence.

This operation resizes the length of the sequence. If longer length than current sequence length is given, newly allocated rooms will be assigned by element given by the argument. If shorter length than current sequence length is given, the excessive element of a sequence is deleted like behavior of CorabSequence

Parameters:
new_size The new size of the sequence
item@ Sequence element to be assigned to new rooms.

SequenceEx::size  ) 
 

Get size of this sequence.

This operation returns the size of the sequence. This is same as CorbaSequence::length().

Returns:
The size of the sequence.


The documentation for this class was generated from the following file:
Generated on Mon Oct 29 15:51:44 2007 for OpenRTM by  doxygen 1.4.3