doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
idStaticList< type, size > Class Template Reference

#include <StaticList.h>

Public Member Functions

 idStaticList ()
 
 idStaticList (const idStaticList< type, size > &other)
 
 ~idStaticList (void)
 
void Clear (void)
 
int Num (void) const
 
int Max (void) const
 
void SetNum (int newnum)
 
size_t Allocated (void) const
 
size_t Size (void) const
 
size_t MemoryUsed (void) const
 
const typeoperator[] (int index) const
 
typeoperator[] (int index)
 
typePtr (void)
 
const typePtr (void) const
 
typeAlloc (void)
 
int Append (const type &obj)
 
int Append (const idStaticList< type, size > &other)
 
int AddUnique (const type &obj)
 
int Insert (const type &obj, int index)
 
int FindIndex (const type &obj) const
 
typeFind (type const &obj) const
 
int FindNull (void) const
 
int IndexOf (const type *obj) const
 
bool RemoveIndex (int index)
 
bool Remove (const type &obj)
 
void Swap (idStaticList< type, size > &other)
 
void DeleteContents (bool clear)
 

Private Attributes

int num
 
type list [size]
 

Detailed Description

template<class type, int size>
class idStaticList< type, size >

Definition at line 42 of file StaticList.h.

Constructor & Destructor Documentation

template<class type , int size>
ID_INLINE idStaticList< type, size >::idStaticList ( )

Definition at line 88 of file StaticList.h.

template<class type, int size>
ID_INLINE idStaticList< type, size >::idStaticList ( const idStaticList< type, size > &  other)

Definition at line 98 of file StaticList.h.

template<class type , int size>
ID_INLINE idStaticList< type, size >::~idStaticList ( void  )

Definition at line 108 of file StaticList.h.

Member Function Documentation

template<class type, int size>
ID_INLINE int idStaticList< type, size >::AddUnique ( const type obj)

Definition at line 388 of file StaticList.h.

template<class type , int size>
ID_INLINE type * idStaticList< type, size >::Alloc ( void  )

Definition at line 291 of file StaticList.h.

template<class type , int size>
ID_INLINE size_t idStaticList< type, size >::Allocated ( void  ) const

Definition at line 181 of file StaticList.h.

template<class type, int size>
ID_INLINE int idStaticList< type, size >::Append ( const type obj)

Definition at line 309 of file StaticList.h.

template<class type, int size>
ID_INLINE int idStaticList< type, size >::Append ( const idStaticList< type, size > &  other)

Definition at line 366 of file StaticList.h.

template<class type , int size>
ID_INLINE void idStaticList< type, size >::Clear ( void  )

Definition at line 119 of file StaticList.h.

template<class type , int size>
ID_INLINE void idStaticList< type, size >::DeleteContents ( bool  clear)

Definition at line 136 of file StaticList.h.

template<class type, int size>
ID_INLINE type * idStaticList< type, size >::Find ( type const obj) const

Definition at line 428 of file StaticList.h.

template<class type, int size>
ID_INLINE int idStaticList< type, size >::FindIndex ( const type obj) const

Definition at line 407 of file StaticList.h.

template<class type , int size>
ID_INLINE int idStaticList< type, size >::FindNull ( void  ) const

Definition at line 450 of file StaticList.h.

template<class type, int size>
ID_INLINE int idStaticList< type, size >::IndexOf ( const type obj) const

Definition at line 474 of file StaticList.h.

template<class type, int size>
ID_INLINE int idStaticList< type, size >::Insert ( const type obj,
int  index 
)

Definition at line 332 of file StaticList.h.

template<class type , int size>
ID_INLINE int idStaticList< type, size >::Max ( void  ) const

Definition at line 171 of file StaticList.h.

template<class type , int size>
ID_INLINE size_t idStaticList< type, size >::MemoryUsed ( void  ) const

Definition at line 201 of file StaticList.h.

template<class type , int size>
ID_INLINE int idStaticList< type, size >::Num ( void  ) const

Definition at line 159 of file StaticList.h.

template<class type , int size>
ID_INLINE const type & idStaticList< type, size >::operator[] ( int  index) const

Definition at line 228 of file StaticList.h.

template<class type , int size>
ID_INLINE type & idStaticList< type, size >::operator[] ( int  index)

Definition at line 244 of file StaticList.h.

template<class type , int size>
ID_INLINE type * idStaticList< type, size >::Ptr ( void  )

Definition at line 263 of file StaticList.h.

template<class type , int size>
ID_INLINE const type * idStaticList< type, size >::Ptr ( void  ) const

Definition at line 279 of file StaticList.h.

template<class type, int size>
ID_INLINE bool idStaticList< type, size >::Remove ( const type obj)

Definition at line 523 of file StaticList.h.

template<class type , int size>
ID_INLINE bool idStaticList< type, size >::RemoveIndex ( int  index)

Definition at line 495 of file StaticList.h.

template<class type , int size>
ID_INLINE void idStaticList< type, size >::SetNum ( int  newnum)

Definition at line 213 of file StaticList.h.

template<class type , int size>
ID_INLINE size_t idStaticList< type, size >::Size ( void  ) const

Definition at line 191 of file StaticList.h.

template<class type, int size>
ID_INLINE void idStaticList< type, size >::Swap ( idStaticList< type, size > &  other)

Definition at line 542 of file StaticList.h.

Member Data Documentation

template<class type, int size>
type idStaticList< type, size >::list[size]
private

Definition at line 79 of file StaticList.h.

template<class type, int size>
int idStaticList< type, size >::num
private

Definition at line 78 of file StaticList.h.


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