Miam-Player  0.8.0
A nice music player
TagLib::ByteVectorList Class Reference

A list of ByteVectors. More...

#include <tbytevectorlist.h>

Inheritance diagram for TagLib::ByteVectorList:
TagLib::List< ByteVector >

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...
 
- Public Member Functions inherited from TagLib::List< ByteVector >
 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 ByteVectorfront () const
 Returns a reference to the first item in the list. More...
 
ByteVectorfront ()
 Returns a reference to the first item in the list. More...
 
const ByteVectorback () const
 Returns a reference to the last item in the list. More...
 
ByteVectorback ()
 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...
 
ByteVectoroperator[] (unsigned int i)
 Returns a reference to item i in the list. More...
 
const ByteVectoroperator[] (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

- Public Types inherited from TagLib::List< ByteVector >
typedef std::list< ByteVector >::iterator Iterator
 
typedef std::list< ByteVector >::const_iterator ConstIterator
 
- Protected Member Functions inherited from TagLib::List< ByteVector >
void detach ()
 

Detailed Description

A list of ByteVectors.

A List specialization with some handy features useful for ByteVectors.

Constructor & Destructor Documentation

◆ ByteVectorList() [1/2]

TagLib::ByteVectorList::ByteVectorList ( )

Construct an empty ByteVectorList.

◆ ~ByteVectorList()

virtual TagLib::ByteVectorList::~ByteVectorList ( )
virtual

Destroys this ByteVectorList instance.

◆ ByteVectorList() [2/2]

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.

Member Function Documentation

◆ split() [1/2]

static ByteVectorList TagLib::ByteVectorList::split ( const ByteVector v,
const ByteVector pattern,
int  byteAlign = 1 
)
static

Splits the ByteVector v into several strings at pattern.

This will not include the pattern in the returned ByteVectors.

◆ split() [2/2]

static ByteVectorList TagLib::ByteVectorList::split ( const ByteVector v,
const ByteVector pattern,
int  byteAlign,
int  max 
)
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.

◆ toByteVector()

ByteVector TagLib::ByteVectorList::toByteVector ( const ByteVector separator = " ") const

Convert the ByteVectorList to a ByteVector separated by separator.

By default a space is used.


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