Nebula
Loading...
Searching...
No Matches
Im3d::Vector< T > Struct Template Reference

#include <im3d.h>

Public Member Functions

 Vector ()
 
 ~Vector ()
 
T & operator[] (U32 _i)
 
const T & operator[] (U32 _i) const
 
T * data ()
 
const T * data () const
 
T & push_back ()
 
void push_back (const T &_v)
 
void pop_back ()
 
void append (const T *_v, U32 _count)
 
void append (const Vector< T > &_other)
 
T * begin ()
 
const T * begin () const
 
T * end ()
 
const T * end () const
 
T & front ()
 
const T & front () const
 
T & back ()
 
const T & back () const
 
U32 size () const
 
U32 capacity () const
 
bool empty () const
 
void clear ()
 
void reserve (U32 _capacity)
 
void resize (U32 _size, const T &_val)
 
void resize (U32 _size)
 

Static Public Member Functions

static void swap (Vector< T > &_a_, Vector< T > &_b_)
 

Private Attributes

T * m_data = nullptr
 
U32 m_size = 0
 
U32 m_capacity = 0
 

Constructor & Destructor Documentation

◆ Vector()

template<typename T >
Im3d::Vector< T >::Vector ( )
inline

◆ ~Vector()

template<typename T >
Vector::~Vector ( )

Member Function Documentation

◆ append() [1/2]

template<typename T >
void Vector::append ( const T * _v,
U32 _count )

◆ append() [2/2]

template<typename T >
void Im3d::Vector< T >::append ( const Vector< T > & _other)
inline

◆ back() [1/2]

template<typename T >
T & Im3d::Vector< T >::back ( )
inline

◆ back() [2/2]

template<typename T >
const T & Im3d::Vector< T >::back ( ) const
inline

◆ begin() [1/2]

template<typename T >
T * Im3d::Vector< T >::begin ( )
inline

◆ begin() [2/2]

template<typename T >
const T * Im3d::Vector< T >::begin ( ) const
inline

◆ capacity()

template<typename T >
U32 Im3d::Vector< T >::capacity ( ) const
inline

◆ clear()

template<typename T >
void Im3d::Vector< T >::clear ( )
inline

◆ data() [1/2]

template<typename T >
T * Im3d::Vector< T >::data ( )
inline

◆ data() [2/2]

template<typename T >
const T * Im3d::Vector< T >::data ( ) const
inline

◆ empty()

template<typename T >
bool Im3d::Vector< T >::empty ( ) const
inline

◆ end() [1/2]

template<typename T >
T * Im3d::Vector< T >::end ( )
inline

◆ end() [2/2]

template<typename T >
const T * Im3d::Vector< T >::end ( ) const
inline

◆ front() [1/2]

template<typename T >
T & Im3d::Vector< T >::front ( )
inline

◆ front() [2/2]

template<typename T >
const T & Im3d::Vector< T >::front ( ) const
inline

◆ operator[]() [1/2]

template<typename T >
T & Im3d::Vector< T >::operator[] ( U32 _i)
inline

◆ operator[]() [2/2]

template<typename T >
const T & Im3d::Vector< T >::operator[] ( U32 _i) const
inline

◆ pop_back()

template<typename T >
void Im3d::Vector< T >::pop_back ( )
inline

◆ push_back() [1/2]

template<typename T >
T & Im3d::Vector< T >::push_back ( )
inline

◆ push_back() [2/2]

template<typename T >
void Im3d::Vector< T >::push_back ( const T & _v)
inline

◆ reserve()

template<typename T >
void Vector::reserve ( U32 _capacity)

◆ resize() [1/2]

template<typename T >
void Vector::resize ( U32 _size)

◆ resize() [2/2]

template<typename T >
void Vector::resize ( U32 _size,
const T & _val )

◆ size()

template<typename T >
U32 Im3d::Vector< T >::size ( ) const
inline

◆ swap()

template<typename T >
void Vector::swap ( Vector< T > & _a_,
Vector< T > & _b_ )
static

Member Data Documentation

◆ m_capacity

template<typename T >
U32 Im3d::Vector< T >::m_capacity = 0
private

◆ m_data

template<typename T >
T* Im3d::Vector< T >::m_data = nullptr
private

◆ m_size

template<typename T >
U32 Im3d::Vector< T >::m_size = 0
private

The documentation for this struct was generated from the following files: