The Playlist class holds a list of songs to play. More...
#include <Sound/MusicPlayer.h>
Classes | |
class | Iterator |
A forward and backward (constant) iterator for walking through the list of songs. More... | |
class | Song |
The information held for each song in the playlist. More... | |
Public Types | |
typedef Iterator | ConstIterator |
Constant iterator. | |
Public Member Functions | |
uint | Length () const |
Returns the number of songs in the playlist. | |
void | AddSongToBack (const Song &song) |
Adds a song to the end of the playlist. NOTE: Only invalidates the end iterator. | |
void | Shuffle () |
Reorders songs in the playlist. NOTE: Does not invalidate Iterators (althogh they may no longer refer to the same song). | |
ConstIterator | Begin () const |
Returns an iterator to the start of the playlist. | |
ConstIterator | End () const |
Returns an iterator to one past the end of the playlist. | |
ConstIterator | Back () const |
Returns an iterator to the last song in the playlist. | |
ConstIterator | Find (const char *name) const |
Returns an iterator to the first occurrence of the song, or the end iterator if it does not exist. | |
ConstIterator | Find (const std::string &name) const |
Returns an iterator to the first occurrence of the song, or the end iterator if it does not exist. |
The Playlist class holds a list of songs to play.