Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

mimo::MSequenceAccess< elemT, Attr, Cont > Class Template Reference

Implementation of a shallow copy of a sequence. More...

#include <matrixseq.h>

Inheritance diagram for mimo::MSequenceAccess< elemT, Attr, Cont >:

Inheritance graph
[legend]
List of all members.

Public Types

typedef base_type::value_type value_type
typedef base_type::attributes_type attributes_type
typedef base_type::container_type container_type
typedef base_type::iterator iterator
typedef base_type::const_iterator const_iterator
typedef base_type::reference reference
typedef base_type::const_reference const_reference
typedef base_type::storage_type storage_type

Public Member Functions

 MSequenceAccess (iterator iterStart, iterator iterEnd, storage_type &seq)
 MSequenceAccess (const MSequence< elemT, Attr, Cont > &seq)

Detailed Description

template<class elemT, class Attr, class Cont>
class mimo::MSequenceAccess< elemT, Attr, Cont >

Implementation of a shallow copy of a sequence.

This class behaves similar to a vector of the standard template library (STL), but it does not allocate any storage by itself. Instead, it only represents a shallow copy of another storage allocated elsewhere.

Characteristics: Element access in this class always directly affects the elements of the referenced SignalSequenceStorage class. Resizing to a larger size is not possible and will throw an exception. Resizing to a smaller size does not resize the referenced storage -- instead, the begin/end iterators in this class simply point to a smaller part of the referenced storage.


Member Typedef Documentation

template<class elemT, class Attr, class Cont>
typedef base_type::value_type mimo::MSequenceAccess< elemT, Attr, Cont >::value_type
 

Reimplemented from mimo::MSequence< elemT, Attr, Cont >.

template<class elemT, class Attr, class Cont>
typedef base_type::attributes_type mimo::MSequenceAccess< elemT, Attr, Cont >::attributes_type
 

Reimplemented from mimo::MSequence< elemT, Attr, Cont >.

template<class elemT, class Attr, class Cont>
typedef base_type::container_type mimo::MSequenceAccess< elemT, Attr, Cont >::container_type
 

Reimplemented from mimo::MSequence< elemT, Attr, Cont >.

template<class elemT, class Attr, class Cont>
typedef base_type::iterator mimo::MSequenceAccess< elemT, Attr, Cont >::iterator
 

Reimplemented from mimo::MSequence< elemT, Attr, Cont >.

template<class elemT, class Attr, class Cont>
typedef base_type::const_iterator mimo::MSequenceAccess< elemT, Attr, Cont >::const_iterator
 

Reimplemented from mimo::MSequence< elemT, Attr, Cont >.

template<class elemT, class Attr, class Cont>
typedef base_type::reference mimo::MSequenceAccess< elemT, Attr, Cont >::reference
 

Reimplemented from mimo::MSequence< elemT, Attr, Cont >.

template<class elemT, class Attr, class Cont>
typedef base_type::const_reference mimo::MSequenceAccess< elemT, Attr, Cont >::const_reference
 

Reimplemented from mimo::MSequence< elemT, Attr, Cont >.

template<class elemT, class Attr, class Cont>
typedef base_type::storage_type mimo::MSequenceAccess< elemT, Attr, Cont >::storage_type
 

The referenced storage class.

Reimplemented from mimo::MSequence< elemT, Attr, Cont >.


Constructor & Destructor Documentation

template<class elemT, class Attr, class Cont>
mimo::MSequenceAccess< elemT, Attr, Cont >::MSequenceAccess iterator  iterStart,
iterator  iterEnd,
storage_type seq
[inline]
 

This constructor is used to create a shallow copy (or reference copy) of an already existing MSequence. This means that the newly created sequence does not allocate new memory for elements, but instead it works on a part of an already existing sequence. Hence the attributes of an object generated with this constructor are also an shallow copy of the original class.

In other words, this constructor is always cheap.

template<class elemT, class Attr, class Cont>
mimo::MSequenceAccess< elemT, Attr, Cont >::MSequenceAccess const MSequence< elemT, Attr, Cont > &  seq  )  [inline]
 

Constructor which directly creates a new shallow-copy-sequence of the given SequenceStorage.

This is a cheap constructor, too.


Generated on Tue Aug 9 14:43:41 2005 for mimolib by  doxygen 1.4.1