![]() |
Blamite Game Engine - Strings
00390.07.02.23.1947.blamite
A library containing general purpose utilities and classes for use in multiple projects.
|
Class representing a list of objects. More...
#include <BlamList.h>
Public Member Functions | |
BlamList (std::vector< T > _list) | |
Creates a new BlamList based on an existing vector. More... | |
BlamList () | |
Creates a new BlamList. More... | |
T | At (int index) |
Retrieves the item at the specified index. More... | |
int | Size () |
Retrieves the size of the list. More... | |
bool | Contains (T item) |
Determines if the list contains an item. More... | |
bool | IsOutOfRange (int index) |
Determines if the given index is out of range of the list. More... | |
Class representing a list of objects.
Currently, this acts as just a simple wrapper around a std::vector
to make a few things easier. However, in the future, it should be entirely feasible to do an entirely custom list implementation if we desire.
T | - The type of object to store within the list. |
Creates a new BlamList based on an existing vector.
_list | - The list to wrap around. |
|
inline |
Retrieves the item at the specified index.
index | - The index of the desired item. |
|
inline |
Determines if the list contains an item.
item | - The item to look for. |
true
if the list contains the item, otherwise returns false
.
|
inline |
Determines if the given index is out of range of the list.
index | - The index to check. |
true
if the index is out of range, otherwise returns false
.
|
inline |
Retrieves the size of the list.