Isle
Loading...
Searching...
No Matches
LODList< T > Class Template Reference

[AI] Type-safe extension of LODListBase, templated for any LODObject-derived type. More...

#include <lodlist.h>

Inheritance diagram for LODList< T >:
Collaboration diagram for LODList< T >:

Public Member Functions

 LODList (size_t capacity)
 [AI] Constructs a type-safe LODList with given capacity. More...
 
const T * operator[] (int) const
 [AI] Typed access to the LODObject at position i. More...
 
const T * PushBack (const T *)
 [AI] Typed append. More...
 
const T * PopBack ()
 [AI] Typed remove. More...
 
- Public Member Functions inherited from LODListBase
virtual ~LODListBase ()
 [AI] Destructor. More...
 
const LODObjectoperator[] (int) const
 [AI] Returns a pointer to the LODObject at the given index. More...
 
size_t Size () const
 [AI] Returns the current number of LODObject pointers contained. More...
 
size_t Capacity () const
 [AI] Returns the maximum number of LODObject pointers the list can hold. More...
 

Additional Inherited Members

- Protected Member Functions inherited from LODListBase
 LODListBase (size_t capacity)
 [AI] Constructs a new LODListBase with specified storage capacity. More...
 
const LODObjectPushBack (const LODObject *)
 [AI] Adds a new LODObject pointer at the end of the list. More...
 
const LODObjectPopBack ()
 [AI] Removes and returns the last LODObject pointer from the list. More...
 

Detailed Description

template<class T>
class LODList< T >

[AI] Type-safe extension of LODListBase, templated for any LODObject-derived type.

Provides typed access/casting for stored pointers.

[AI] Used to represent lists of a specific type of LOD object, such as ViewLOD.

Template Parameters
T[AI] A type derived from LODObject.

Definition at line 110 of file lodlist.h.

Constructor & Destructor Documentation

◆ LODList()

template<class T >
LODList< T >::LODList ( size_t  capacity)
inline

[AI] Constructs a type-safe LODList with given capacity.

Parameters
capacity[AI] Maximum number of pointers the list can hold.

Definition at line 232 of file lodlist.h.

Member Function Documentation

◆ operator[]()

template<class T >
const T * LODList< T >::operator[] ( int  i) const
inline

[AI] Typed access to the LODObject at position i.

Parameters
i[AI] Index in the list.
Returns
[AI] Pointer to the object of type T.

Definition at line 237 of file lodlist.h.

◆ PopBack()

template<class T >
const T * LODList< T >::PopBack
inline

[AI] Typed remove.

Removes and returns the last element as T*.

Returns
[AI] Pointer to removed object.

Definition at line 249 of file lodlist.h.

◆ PushBack()

template<class T >
const T * LODList< T >::PushBack ( const T *  pLOD)
inline

[AI] Typed append.

Adds a pointer to an object of type T at the end of the list.

Parameters
pLOD[AI] Pointer to the object to add.
Returns
[AI] Pointer to added object.

Definition at line 243 of file lodlist.h.


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