Beatmup
Beatmup::Fragments::SequenceToolkit< T > Class Template Reference

#include <sequence.h>

Inheritance diagram for Beatmup::Fragments::SequenceToolkit< T >:
Beatmup::Fragments::Sequence Beatmup::Object

Public Member Functions

T * copy (dtime fromTime, dtime toTime) const
 
- Public Member Functions inherited from Beatmup::Fragments::Sequence
const dtime getDuration () const
 Returns sequence duration in number of samples. More...
 
bool isEmpty () const
 Returns true if sequence contains no samples. More...
 
void clear ()
 Removes the content of the sequence making it empty (of zero duration). More...
 
void shrink (dtime timeLeft, dtime timeRight)
 Shrinks the sequence to given time bounds. More...
 
Sequencecopy (dtime fromTime, dtime toTime) const
 Copies a given piece of the current sequence into new Sequence. More...
 
void insert (const Sequence &sequence, dtime time)
 Inserts a Sequence at a given position in time. More...
 
void remove (dtime fromTime, dtime toTime)
 Erases a part of the sequence between two given time moments. More...
 
void split (dtime time, Sequence *left, Sequence *right) const
 Splits the sequence in two at a specific time. More...
 
- Public Member Functions inherited from Beatmup::Object
virtual ~Object ()
 

Additional Inherited Members

- Protected Member Functions inherited from Beatmup::Fragments::Sequence
 Sequence ()
 
virtual ~Sequence ()
 
virtual SequencecreateEmpty () const =0
 Initializes an empty sequence, used to bootstrap copying operations. More...
 
void concatenate (Fragment &fragment, dtime offset, dtime length)
 Adds a new fragment at the end of the sequence. More...
 
void syncPointers ()
 Resets pointers once the sequence changes to keep them consistent. More...
 

Detailed Description

template<class T>
class Beatmup::Fragments::SequenceToolkit< T >

Definition at line 179 of file sequence.h.

Member Function Documentation

◆ copy()

template<class T >
T* Beatmup::Fragments::SequenceToolkit< T >::copy ( dtime  fromTime,
dtime  toTime 
) const
inline

Definition at line 181 of file sequence.h.

181 { return static_cast<T*>(Sequence::copy(fromTime, toTime)); }
Sequence * copy(dtime fromTime, dtime toTime) const
Copies a given piece of the current sequence into new Sequence.

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