Main Page   Alphabetical List   Compound List   File List   Compound Members   File Members  

Playlist Class Reference

Playlist class for storing a playlist. More...

#include <playlist.h>

List of all members.

Public Types

typedef std::vector< SongInfo
* >::const_iterator 
iterator
 Iterator for iterating through the playlist. More...


Public Methods

iterator begin () const
 Returns a pointer to the beginning of the playlist. More...

iterator end () const
 Returns an invalid value for the playlist which marks the end of the list. More...

Playlist::SongInfooperator[] (unsigned i)
 Operator for returning a specific element of the playlist. More...

 Playlist (void)
 Creates an instance of this class. More...

void addPlaylistItem (SongInfo *item)
 Adds a song to the playlist. More...

SongInfogetPlaylistItem (unsigned index)
 Returns a specific item from the playlist. More...

void clear ()
 Clears the playlist (does not clear the list on the server). More...

unsigned size ()
 Returns the number of songs in the playlist. More...


Protected Attributes

std::vector< SongInfo * > list
 The vector containing the songinformation items. More...


Detailed Description

Playlist class for storing a playlist.

Author:
ing. A.E. van Putten
Date:
01-01-2004


Member Typedef Documentation

typedef std::vector<SongInfo *>::const_iterator iterator
 

Iterator for iterating through the playlist.


Constructor & Destructor Documentation

Playlist void   
 

Creates an instance of this class.


Member Function Documentation

void addPlaylistItem SongInfo   item [inline]
 

Adds a song to the playlist.

iterator begin   const [inline]
 

Returns a pointer to the beginning of the playlist.

void clear   [inline]
 

Clears the playlist (does not clear the list on the server).

iterator end   const [inline]
 

Returns an invalid value for the playlist which marks the end of the list.

SongInfo* getPlaylistItem unsigned    index [inline]
 

Returns a specific item from the playlist.

Playlist::SongInfo* operator[] unsigned    i [inline]
 

Operator for returning a specific element of the playlist.

unsigned size   [inline]
 

Returns the number of songs in the playlist.


Member Data Documentation

std::vector<SongInfo *> list [protected]
 

The vector containing the songinformation items.


The documentation for this class was generated from the following files:
Generated on Thu Mar 11 21:57:52 2004 for Music Playing Daemon client by doxygen1.2.15