kodi
Classes | Public Types | Public Member Functions | Protected Attributes | List of all members
NPT_List< T > Class Template Reference
Inheritance diagram for NPT_List< T >:
Inheritance graph
[legend]
Collaboration diagram for NPT_List< T >:
Collaboration graph
[legend]

Classes

class  Item
 
class  Iterator
 

Public Types

typedef T Element
 

Public Member Functions

 NPT_List (const NPT_List< T > &list)
 
NPT_Result Add (const T &data)
 
NPT_Result Insert (const Iterator where, const T &data)
 
NPT_Result Remove (const T &data, bool all=false)
 
NPT_Result Erase (const Iterator position)
 
NPT_Result PopHead (T &data)
 
bool Contains (const T &data) const
 
NPT_Result Clear ()
 
NPT_Result Get (NPT_Ordinal index, T &data) const
 
NPT_Result Get (NPT_Ordinal index, T *&data) const
 
NPT_Cardinal GetItemCount () const
 
Iterator GetFirstItem () const
 
Iterator GetLastItem () const
 
Iterator GetItem (NPT_Ordinal index) const
 
NPT_Result Add (NPT_List< T > &list)
 
NPT_Result Remove (const NPT_List< T > &list, bool all=false)
 
NPT_Result Cut (NPT_Cardinal keep, NPT_List< T > &cut)
 
NPT_Result Add (Item &item)
 
NPT_Result Detach (Item &item)
 
NPT_Result Insert (const Iterator where, Item &item)
 
template<typename X >
NPT_Result Apply (const X &function) const
 
template<typename X , typename P >
NPT_Result ApplyUntil (const X &function, const P &predicate, bool *match=NULL) const
 
template<typename P >
Iterator Find (const P &predicate, NPT_Ordinal n=0) const
 
template<typename X >
NPT_Result Sort (const X &function)
 
template<typename X >
NPT_Result Merge (NPT_List< T > &other, const X &function)
 
void operator= (const NPT_List< T > &other)
 
bool operator== (const NPT_List< T > &other) const
 
bool operator!= (const NPT_List< T > &other) const
 

Protected Attributes

NPT_Cardinal m_ItemCount
 
Itemm_Head
 
Itemm_Tail
 

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