Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

GeneralFncs Namespace Reference

Functions

template<typename T >
void destroyAllPtrsInQueue (std::queue< T * > &q)
 Deletes and erases each dynamically created element.
template<typename T >
void destroyAllPtrsInVector (std::vector< T * > &vec)
 Deletes and erases each dynamically created element.
template<typename T >
void destroyPtrInVector (std::vector< T * > &vec, std::size_t elementIndex)
 Deletes and erases a particular index in a vector.
template<typename T >
void deletePtr (T *&ptr)
 Deletes the memory pointed by a pointer.
unsigned long getTime ()
 Returns the time since in seconds (value has millisecond-precision).
template<typename T >
std::vector< T > subVector (const std::vector< T > &vec, const std::size_t startPos, const std::size_t endPos)
 Returns a subset of a vector from the start position up to, but not including, the end position.

Function Documentation

template<typename T >
void GeneralFncs::destroyAllPtrsInQueue ( std::queue< T * > &  q  ) 

Deletes and erases each dynamically created element.

Definition at line 16 of file GeneralFncs.h.

Referenced by Kodu::KoduAgent::~KoduAgent().

template<typename T >
void GeneralFncs::destroyAllPtrsInVector ( std::vector< T * > &  vec  ) 
unsigned long GeneralFncs::getTime (  ) 

Returns the time since in seconds (value has millisecond-precision).

Definition at line 58 of file GeneralFncs.h.

Referenced by Kodu::ScoreChange::ScoreChange().

template<typename T >
std::vector<T> GeneralFncs::subVector ( const std::vector< T > &  vec,
const std::size_t  startPos,
const std::size_t  endPos 
)

Returns a subset of a vector from the start position up to, but not including, the end position.

Definition at line 76 of file GeneralFncs.h.

Referenced by Kodu::Parser::TokenParser::parseTokens().


Tekkotsu v5.1CVS
Generated Mon May 9 04:59:23 2016 by Doxygen 1.6.3