SpiecsEngine
 
Loading...
Searching...
No Matches
scl::vector< T > Class Template Reference

This Class is similar to std::vector, the difference between that is this one allocates memory by malloc rather that new. This is important is ObjectPool. More...

#include <Vector.h>

Public Member Functions

 vector ()
 Constructor Function.
 
virtual ~vector ()
 Destructor Function.
 
T * Begin () const
 Get vector Begin Pointer.
 
T * End () const
 Get vector End Pointer.
 
size_t size () const
 Get vector size.
 
bool empty () const
 Determine if vector is empty. @retrun Returns true if empty.
 
void push_back (T &element)
 Push a element in the end of vector.
 
T & get (size_t index)
 Get element by index.
 

Private Attributes

T * m_Begin
 Vector Begin Pointer.
 
T * m_End
 Vector End Pointer.
 
size_t m_UseCount
 vector used size.
 
size_t m_SpareCount
 vector spare size.
 
size_t m_ExpandRate
 Vector expand rate.
 

Detailed Description

template<typename T>
class scl::vector< T >

This Class is similar to std::vector, the difference between that is this one allocates memory by malloc rather that new. This is important is ObjectPool.

Definition at line 17 of file Vector.h.


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