ScummVM API documentation
Titanic::List< T > Class Template Reference
Inheritance diagram for Titanic::List< T >:
Titanic::CSaveableObject Common::List< T *>

Public Member Functions

void save (SimpleFile *file, int indent) override
 
void load (SimpleFile *file) override
 
void destroyContents ()
 
T * add ()
 
bool contains (const T *item) const
 
- Public Member Functions inherited from Titanic::CSaveableObject
virtual ClassDefgetType () const
 
bool isInstanceOf (const ClassDef *classDef) const
 
virtual void saveHeader (SimpleFile *file, int indent)
 
virtual void saveFooter (SimpleFile *file, int indent)
 
- Public Member Functions inherited from Common::List< T *>
constexpr List ()
 
 List (const List< T * > &list)
 
iterator insert (iterator pos, const T * &element)
 
void insert (iterator pos, iterator2 first, iterator2 last)
 
iterator erase (iterator pos)
 
iterator erase (iterator first, iterator last)
 
iterator reverse_erase (iterator pos)
 
void remove (const T * &val)
 
void push_front (const T * &element)
 
void push_back (const T * &element)
 
void pop_front ()
 
void pop_back ()
 
T * & front ()
 
const T * & front () const
 
T * & back ()
 
const T * & back () const
 
List< T * > & operator= (const List< T * > &list)
 
size_type size () const
 
void clear ()
 
bool empty () const
 
iterator begin ()
 
const_iterator begin () const
 
iterator reverse_begin ()
 
const_iterator reverse_begin () const
 
iterator end ()
 
const_iterator end () const
 

Additional Inherited Members

- Public Types inherited from Common::List< T *>
typedef ListInternal::Iterator< T * > iterator
 
typedef ListInternal::ConstIterator< T * > const_iterator
 
typedef T * value_type
 
typedef uint size_type
 
- Static Public Member Functions inherited from Titanic::CSaveableObject
static void initClassList ()
 
static void freeClassList ()
 
static CSaveableObjectcreateInstance (const Common::String &name)
 
- Static Public Attributes inherited from Titanic::CSaveableObject
static ClassDef_type
 
- Protected Types inherited from Common::List< T *>
typedef ListInternal::NodeBase NodeBase
 
typedef ListInternal::Node< T * > Node
 
- Protected Member Functions inherited from Common::List< T *>
void insert (NodeBase *pos, const T * &element)
 
NodeBase erase (NodeBase *pos)
 
- Protected Attributes inherited from Common::List< T *>
NodeBase _anchor
 

Member Function Documentation

◆ save()

template<typename T>
void Titanic::List< T >::save ( SimpleFile file,
int  indent 
)
inlineoverridevirtual

Save the data for the class to file

Reimplemented from Titanic::CSaveableObject.

◆ load()

template<typename T>
void Titanic::List< T >::load ( SimpleFile file)
inlineoverridevirtual

Load the data for the class from file

Reimplemented from Titanic::CSaveableObject.

◆ destroyContents()

template<typename T>
void Titanic::List< T >::destroyContents ( )
inline

Clear the list and destroy any items in it

◆ add()

template<typename T>
T* Titanic::List< T >::add ( )
inline

Add a new item to the list of the type the list contains


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