added size() method to Playlist

This commit is contained in:
fgerlits 2005-03-04 13:35:04 +00:00
parent 1b152ae12e
commit 6a8bd2045d
1 changed files with 11 additions and 2 deletions

View File

@ -22,7 +22,7 @@
Author : $Author: fgerlits $
Version : $Revision: 1.31 $
Version : $Revision: 1.32 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/core/include/LiveSupport/Core/Playlist.h,v $
------------------------------------------------------------------------------*/
@ -128,7 +128,7 @@ using namespace boost::posix_time;
* </code></pre>
*
* @author $Author: fgerlits $
* @version $Revision: 1.31 $
* @version $Revision: 1.32 $
*/
class Playlist : public Configurable,
public Playable
@ -537,6 +537,15 @@ class Playlist : public Configurable,
return elementList->find(*relativeOffset);
}
/**
* Return the number of playlist elements in the playlist.
*/
int
size() const throw ()
{
return elementList->size();
}
/**
* Add a new audio clip to the playlist.
*