ncmpc  0.30
Public Types | Public Member Functions | Data Fields
MpdQueue Struct Reference

#include <Queue.hxx>

Public Types

using Vector = std::vector< std::unique_ptr< struct mpd_song, SongDeleter > >
 
using size_type = Vector::size_type
 

Public Member Functions

size_type size () const
 
bool empty () const
 
void clear ()
 
const struct mpd_song & operator[] (size_type i) const
 
struct mpd_song & operator[] (size_type i)
 
gcc_pure const struct mpd_song * GetChecked (int i) const
 
void push_back (const struct mpd_song &song)
 
void Replace (size_type i, const struct mpd_song &song)
 
void RemoveIndex (size_type i)
 
void Move (unsigned dest, unsigned src)
 
gcc_pure int Find (const struct mpd_song &song) const
 
gcc_pure int FindId (unsigned id) const
 
gcc_pure int FindUri (const char *uri) const
 
gcc_pure int FindUri (const struct mpd_song &song) const
 

Data Fields

unsigned version = 0
 
Vector items
 

Member Typedef Documentation

◆ Vector

using MpdQueue::Vector = std::vector<std::unique_ptr<struct mpd_song, SongDeleter> >

◆ size_type

using MpdQueue::size_type = Vector::size_type

Member Function Documentation

◆ size()

size_type MpdQueue::size ( ) const
inline

◆ empty()

bool MpdQueue::empty ( ) const
inline

◆ clear()

void MpdQueue::clear ( )

remove and free all songs in the playlist

◆ operator[]() [1/2]

const struct mpd_song& MpdQueue::operator[] ( size_type  i) const
inline

◆ operator[]() [2/2]

struct mpd_song& MpdQueue::operator[] ( size_type  i)
inline

◆ GetChecked()

gcc_pure const struct mpd_song* MpdQueue::GetChecked ( int  i) const

◆ push_back()

void MpdQueue::push_back ( const struct mpd_song &  song)
inline

◆ Replace()

void MpdQueue::Replace ( size_type  i,
const struct mpd_song &  song 
)
inline

◆ RemoveIndex()

void MpdQueue::RemoveIndex ( size_type  i)
inline

◆ Move()

void MpdQueue::Move ( unsigned  dest,
unsigned  src 
)

◆ Find()

gcc_pure int MpdQueue::Find ( const struct mpd_song &  song) const

◆ FindId()

gcc_pure int MpdQueue::FindId ( unsigned  id) const

◆ FindUri() [1/2]

gcc_pure int MpdQueue::FindUri ( const char *  uri) const

◆ FindUri() [2/2]

gcc_pure int MpdQueue::FindUri ( const struct mpd_song &  song) const
inline

Field Documentation

◆ version

unsigned MpdQueue::version = 0

◆ items

Vector MpdQueue::items

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