![]() |
Miam-Player
0.8.0
A nice music player
|
A list of ByteVectors. More...
#include <tbytevectorlist.h>
Public Member Functions | |
ByteVectorList () | |
Construct an empty ByteVectorList. More... | |
virtual | ~ByteVectorList () |
Destroys this ByteVectorList instance. More... | |
ByteVectorList (const ByteVectorList &l) | |
Make a shallow, implicitly shared, copy of l. More... | |
ByteVector | toByteVector (const ByteVector &separator=" ") const |
Convert the ByteVectorList to a ByteVector separated by separator. More... | |
![]() | |
List () | |
Constructs an empty list. More... | |
List (const List< ByteVector > &l) | |
Make a shallow, implicitly shared, copy of l. More... | |
virtual | ~List () |
Destroys this List instance. More... | |
Iterator | begin () |
Returns an STL style iterator to the beginning of the list. More... | |
ConstIterator | begin () const |
Returns an STL style constant iterator to the beginning of the list. More... | |
Iterator | end () |
Returns an STL style iterator to the end of the list. More... | |
ConstIterator | end () const |
Returns an STL style constant iterator to the end of the list. More... | |
Iterator | insert (Iterator it, const ByteVector &value) |
Inserts a copy of value before it. More... | |
List< ByteVector > & | sortedInsert (const ByteVector &value, bool unique=false) |
Inserts the value into the list. More... | |
List< ByteVector > & | append (const ByteVector &item) |
Appends item to the end of the list and returns a reference to the list. More... | |
List< ByteVector > & | append (const List< ByteVector > &l) |
Appends all of the values in l to the end of the list and returns a reference to the list. More... | |
List< ByteVector > & | prepend (const ByteVector &item) |
Prepends item to the beginning list and returns a reference to the list. More... | |
List< ByteVector > & | prepend (const List< ByteVector > &l) |
Prepends all of the items in l to the beginning list and returns a reference to the list. More... | |
List< ByteVector > & | clear () |
Clears the list. More... | |
unsigned int | size () const |
Returns the number of elements in the list. More... | |
bool | isEmpty () const |
Returns whether or not the list is empty. More... | |
Iterator | find (const ByteVector &value) |
Find the first occurrence of value. More... | |
ConstIterator | find (const ByteVector &value) const |
Find the first occurrence of value. More... | |
bool | contains (const ByteVector &value) const |
Returns true if the list contains value. More... | |
Iterator | erase (Iterator it) |
Erase the item at it from the list. More... | |
const ByteVector & | front () const |
Returns a reference to the first item in the list. More... | |
ByteVector & | front () |
Returns a reference to the first item in the list. More... | |
const ByteVector & | back () const |
Returns a reference to the last item in the list. More... | |
ByteVector & | back () |
Returns a reference to the last item in the list. More... | |
void | setAutoDelete (bool autoDelete) |
Auto delete the members of the list when the last reference to the list passes out of scope. More... | |
ByteVector & | operator[] (unsigned int i) |
Returns a reference to item i in the list. More... | |
const ByteVector & | operator[] (unsigned int i) const |
Returns a const reference to item i in the list. More... | |
List< ByteVector > & | operator= (const List< ByteVector > &l) |
Make a shallow, implicitly shared, copy of l. More... | |
bool | operator== (const List< ByteVector > &l) const |
Compares this list with l and returns true if all of the elements are the same. More... | |
bool | operator!= (const List< ByteVector > &l) const |
Compares this list with l and returns true if the lists differ. More... | |
Static Public Member Functions | |
static ByteVectorList | split (const ByteVector &v, const ByteVector &pattern, int byteAlign=1) |
Splits the ByteVector v into several strings at pattern. More... | |
static ByteVectorList | split (const ByteVector &v, const ByteVector &pattern, int byteAlign, int max) |
Splits the ByteVector v into several strings at pattern. More... | |
Additional Inherited Members | |
![]() | |
typedef std::list< ByteVector >::iterator | Iterator |
typedef std::list< ByteVector >::const_iterator | ConstIterator |
![]() | |
void | detach () |
A list of ByteVectors.
A List specialization with some handy features useful for ByteVectors.
TagLib::ByteVectorList::ByteVectorList | ( | ) |
Construct an empty ByteVectorList.
|
virtual |
Destroys this ByteVectorList instance.
TagLib::ByteVectorList::ByteVectorList | ( | const ByteVectorList & | l | ) |
Make a shallow, implicitly shared, copy of l.
Because this is implicitly shared, this method is lightweight and suitable for pass-by-value usage.
|
static |
Splits the ByteVector v into several strings at pattern.
This will not include the pattern in the returned ByteVectors.
|
static |
Splits the ByteVector v into several strings at pattern.
This will not include the pattern in the returned ByteVectors. max is the maximum number of entries that will be separated. If max for instance is 2 then a maximum of 1 match will be found and the vector will be split on that match.
ByteVector TagLib::ByteVectorList::toByteVector | ( | const ByteVector & | separator = " " | ) | const |
Convert the ByteVectorList to a ByteVector separated by separator.
By default a space is used.