#include <CORBA_SeqEx.h>
Public Member Functions | |
SequenceEx () | |
Default constructor. | |
SequenceEx (const CorbaSequence &_sq) | |
Copy constructor from CorbaSequence. | |
SequenceEx (const SequenceEx &_sq) | |
Copy constructor. | |
SequenceEx & | operator= (const SequenceEx &_sq) |
Assignment operator. | |
SequenceEx & | operator= (const CorbaSequence &_sq) |
Assignment operator from CorbaSequence. | |
virtual | ~SequenceEx () |
Destructor. | |
CORBA::ULong | size () |
Get size of this sequence. | |
CORBA::ULong | max_size () |
Get current maximum size of this sequence. | |
bool | empty () |
Test whether the sequence is empty. | |
void | resize (CORBA::ULong new_size, SequenceItem &item) |
Resize the length of the sequence. | |
void | insert (CORBA::ULong position, const SequenceItem &item) |
Insert a new item to the sequence. | |
SequenceItem | erase (CORBA::ULong position) |
Erase an item of the sequence. | |
template<class Predicate> | |
SequenceItem | erase_if (Predicate f) |
Erase an item according to the given predicate. | |
void | push_back (const SequenceItem &item) |
Append an item to the end of the sequence. | |
void | pop_back () |
template<class F> | |
SequenceItem | find (F f) const |
Public Attributes | |
Mutex | lock |
This class extends CORBA sequence type, and provides std::vector like interfaces (like size(), max_size(), empty(), resize(), insert(), erase(), erase_if(), push_back(), pop_back(), find()). Since this class inherits CORBA sequence class, user can also use CORBA sequence interfaces (like operator=(), maximum(), length(), operator[]).
|
Default constructor. Default constructor. This default constructor sets the sequence length of CorbaSequence base class.
|
|
Copy constructor from CorbaSequence. This constructor copies sequence contents from given CorbaSequence to this object.
|
|
Copy constructor.
|
|
Destructor.
|
|
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.
|
|
Erase an item of the sequence. This operation erases an item from the sequence.
|
|
Erase an item according to the given predicate. This operation erases an item according to the given predicate.
|
|
|
|
Insert a new item to the sequence. This operation inserts a new item to the sequence.
|
|
Get current maximum size of this sequence. This operation returns the current maximum size of the sequence. This is same as CorbaSequence::maximum().
|
|
Assignment operator from CorbaSequence.
|
|
Assignment operator.
|
|
|
|
Append an item to the end of the sequence. This operation push back an item to the of the sequence.
|
|
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
|
|
Get size of this sequence. This operation returns the size of the sequence. This is same as CorbaSequence::length().
|
|
|