Marsyas  0.5.0-beta1
Public Member Functions
SliceShuffle Class Reference

Shuffle the incoming slices randomly. More...

#include <SliceShuffle.h>

Inherits MarSystem.

Public Member Functions

MarSystemclone () const
 Implementation of the MarSystem::clone() method.
void myProcess (realvec &in, realvec &out)
 Implementation of the MarSystem::myProcess method.
 SliceShuffle (std::string name)
 SliceShuffle constructor.
 SliceShuffle (const SliceShuffle &a)
 SliceShuffle copy constructor.
 ~SliceShuffle ()
 SliceShuffle destructor.

Detailed Description

Shuffle the incoming slices randomly.

Incoming slices are stored in a buffer and on each process call a random one is drawn as output.

Controls:

Definition at line 38 of file SliceShuffle.h.


Constructor & Destructor Documentation

SliceShuffle ( std::string  name)

SliceShuffle constructor.

Add any specific controls needed by this MarSystem.

Definition at line 25 of file SliceShuffle.cpp.

SliceShuffle ( const SliceShuffle a)

SliceShuffle copy constructor.

All member MarControlPtr have to be explicitly reassigned in the copy constructor.

Definition at line 31 of file SliceShuffle.cpp.

SliceShuffle destructor.

Definition at line 39 of file SliceShuffle.cpp.


Member Function Documentation

MarSystem * clone ( ) const [virtual]

Implementation of the MarSystem::clone() method.

Implements MarSystem.

Definition at line 44 of file SliceShuffle.cpp.

void myProcess ( realvec in,
realvec out 
) [virtual]

Implementation of the MarSystem::myProcess method.

Pick a random slice.

Get slice from buffer and store the new input.

Implements MarSystem.

Definition at line 75 of file SliceShuffle.cpp.


The documentation for this class was generated from the following files: