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

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

Base class for implementing access to a sequence. More...

#include <matrixseq.h>

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

Inheritance graph
[legend]
List of all members.

Public Types

typedef MSequenceStorage<
elemT, Attr, Cont > 
storage_type
typedef MSequenceAccess< elemT,
Attr, Cont > 
access_type
typedef elemT value_type
typedef Attr attributes_type
typedef Cont container_type
typedef container_type::iterator iterator
typedef container_type::const_iterator const_iterator
typedef container_type::reference reference
typedef container_type::const_reference const_reference
typedef MSequenceBase< elemT,
Attr, Cont, storage_type,
access_type
base_type

Public Member Functions

 MSequence (iterator iterStart, iterator iterEnd, storage_type &seq)
 MSequence (storage_type &seq)
virtual ~MSequence ()=0

Protected Member Functions

 MSequence ()

Detailed Description

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

Base class for implementing access to a sequence.

This class behaves similar to a vector of the standard template library (STL), but it does not allocate any storage by itself, depending on the derived class. Either the derived class in fact allocates storage, in which case this base class is the interface to access it. Or the derived class implements a shallow copy of a 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 only possible if the derived class is a storage object, otherwise it 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 MSequenceStorage<elemT,Attr,Cont> mimo::MSequence< elemT, Attr, Cont >::storage_type
 

The referenced storage class.

Reimplemented from mimo::MSequenceBase< elemT, Attr, Cont, MSequenceStorage< elemT, Attr, Cont >, MSequenceAccess< elemT, Attr, Cont > >.

Reimplemented in mimo::MSequenceAccess< elemT, Attr, Cont >.

template<class elemT, class Attr, class Cont>
typedef MSequenceAccess<elemT,Attr,Cont> mimo::MSequence< elemT, Attr, Cont >::access_type
 

The referenced access class.

Reimplemented from mimo::MSequenceBase< elemT, Attr, Cont, MSequenceStorage< elemT, Attr, Cont >, MSequenceAccess< elemT, Attr, Cont > >.

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

Reimplemented from mimo::MSequenceBase< elemT, Attr, Cont, MSequenceStorage< elemT, Attr, Cont >, MSequenceAccess< elemT, Attr, Cont > >.

Reimplemented in mimo::MSequenceStorage< elemT, Attr, Cont >, and mimo::MSequenceAccess< elemT, Attr, Cont >.

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

Reimplemented from mimo::MSequenceBase< elemT, Attr, Cont, MSequenceStorage< elemT, Attr, Cont >, MSequenceAccess< elemT, Attr, Cont > >.

Reimplemented in mimo::MSequenceStorage< elemT, Attr, Cont >, and mimo::MSequenceAccess< elemT, Attr, Cont >.

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

Reimplemented from mimo::MSequenceBase< elemT, Attr, Cont, MSequenceStorage< elemT, Attr, Cont >, MSequenceAccess< elemT, Attr, Cont > >.

Reimplemented in mimo::MSequenceStorage< elemT, Attr, Cont >, and mimo::MSequenceAccess< elemT, Attr, Cont >.

template<class elemT, class Attr, class Cont>
typedef container_type::iterator mimo::MSequence< elemT, Attr, Cont >::iterator
 

Reimplemented from mimo::MSequenceBase< elemT, Attr, Cont, MSequenceStorage< elemT, Attr, Cont >, MSequenceAccess< elemT, Attr, Cont > >.

Reimplemented in mimo::MSequenceStorage< elemT, Attr, Cont >, and mimo::MSequenceAccess< elemT, Attr, Cont >.

template<class elemT, class Attr, class Cont>
typedef container_type::const_iterator mimo::MSequence< elemT, Attr, Cont >::const_iterator
 

Reimplemented from mimo::MSequenceBase< elemT, Attr, Cont, MSequenceStorage< elemT, Attr, Cont >, MSequenceAccess< elemT, Attr, Cont > >.

Reimplemented in mimo::MSequenceStorage< elemT, Attr, Cont >, and mimo::MSequenceAccess< elemT, Attr, Cont >.

template<class elemT, class Attr, class Cont>
typedef container_type::reference mimo::MSequence< elemT, Attr, Cont >::reference
 

Reimplemented from mimo::MSequenceBase< elemT, Attr, Cont, MSequenceStorage< elemT, Attr, Cont >, MSequenceAccess< elemT, Attr, Cont > >.

Reimplemented in mimo::MSequenceStorage< elemT, Attr, Cont >, and mimo::MSequenceAccess< elemT, Attr, Cont >.

template<class elemT, class Attr, class Cont>
typedef container_type::const_reference mimo::MSequence< elemT, Attr, Cont >::const_reference
 

Reimplemented from mimo::MSequenceBase< elemT, Attr, Cont, MSequenceStorage< elemT, Attr, Cont >, MSequenceAccess< elemT, Attr, Cont > >.

Reimplemented in mimo::MSequenceStorage< elemT, Attr, Cont >, and mimo::MSequenceAccess< elemT, Attr, Cont >.

template<class elemT, class Attr, class Cont>
typedef MSequenceBase<elemT, Attr, Cont, storage_type, access_type> mimo::MSequence< elemT, Attr, Cont >::base_type
 

This typedef is used to provide an easier instantiation of concrete classes, e.g. 'template BitSeq::base_type;' This typedef is NOT required for classes used as signal sequence, i.e. used as template argument of the interfaces.

Reimplemented from mimo::MSequenceBase< elemT, Attr, Cont, MSequenceStorage< elemT, Attr, Cont >, MSequenceAccess< elemT, Attr, Cont > >.


Constructor & Destructor Documentation

template<class elemT, class Attr, class Cont>
mimo::MSequence< elemT, Attr, Cont >::MSequence iterator  iterStart,
iterator  iterEnd,
storage_type seq
 

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::MSequence< elemT, Attr, Cont >::MSequence storage_type seq  ) 
 

Copy constructor from another sequence. This object will point to the same underlying storage/deep copy than the given sequence.

This constructor is cheap, too.

template<class elemT, class Attr, class Cont>
virtual mimo::MSequence< elemT, Attr, Cont >::~MSequence  )  [pure virtual]
 

Default destructor. (Pure virtual to force an abstract class.)

template<class elemT, class Attr, class Cont>
mimo::MSequence< elemT, Attr, Cont >::MSequence  )  [inline, protected]
 


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