RioEngine  0.1
My first attempt to create a 3D WYSIWYG Game Engine
GenericsHelper Class Reference

#include <genericshelper.hpp>

Static Public Member Functions

template<class T >
static std::vector< T * > * getCopyFromVector (std::vector< T * > &original_vec)
 
template<class T >
static void deleteVector (std::vector< T * > *vec)
 
template<class T >
static int getIndexOfObjectInVector (std::vector< T * > *vec, T *obj_to_find)
 
template<class T >
static bool vectorContainsObject (std::vector< T > *vec, T object_to_find)
 
template<class T >
static bool deleteObjectFromVector (std::vector< T * > *vec, void *object_to_delete)
 
template<class TKey , class TVal >
static void deleteMap (std::map< TKey, TVal * > *map)
 
template<class T >
static bool replaceObjectInVector (std::vector< T * > *vec, T *object_to_replace, T *replacement)
 

Detailed Description

Definition at line 40 of file genericshelper.hpp.

Member Function Documentation

template<class TKey , class TVal >
static void GenericsHelper::deleteMap ( std::map< TKey, TVal * > *  map)
inlinestatic

Deletes every object inside the specified Map object.

Definition at line 139 of file genericshelper.hpp.

template<class T >
static bool GenericsHelper::deleteObjectFromVector ( std::vector< T * > *  vec,
void *  object_to_delete 
)
inlinestatic

Removes an specific object from the specified vector It assumes that the objects inside the original vector are not static.

Definition at line 112 of file genericshelper.hpp.

template<class T >
static void GenericsHelper::deleteVector ( std::vector< T * > *  vec)
inlinestatic

Deletes every object inside the specified vector and the vector itself. It assumes that the objects inside the original Vector are not static.

Definition at line 67 of file genericshelper.hpp.

template<class T >
static std::vector<T*>* GenericsHelper::getCopyFromVector ( std::vector< T * > &  original_vec)
inlinestatic

Creates a deep copy of the given vector. It assumes that the objects inside the original Vector are not static.

Definition at line 48 of file genericshelper.hpp.

template<class T >
static int GenericsHelper::getIndexOfObjectInVector ( std::vector< T * > *  vec,
T *  obj_to_find 
)
inlinestatic

Definition at line 83 of file genericshelper.hpp.

template<class T >
static bool GenericsHelper::replaceObjectInVector ( std::vector< T * > *  vec,
T *  object_to_replace,
T *  replacement 
)
inlinestatic

Definition at line 156 of file genericshelper.hpp.

template<class T >
static bool GenericsHelper::vectorContainsObject ( std::vector< T > *  vec,
object_to_find 
)
inlinestatic

Definition at line 101 of file genericshelper.hpp.


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