AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Vector.h File Reference
#include <type_traits>
#include <agx/agx.h>
#include <agx/Allocator.h>
#include <agx/Container.h>
#include <ostream>
#include <cstring>
#include <iterator>

Go to the source code of this file.

Classes

class  agx::Vector< T, Allocator >
 Templated vector class. More...
 
class  agx::VectorPOD< T, Allocator >
 Vector containing 'raw' data. More...
 

Namespaces

 agx
 Namespace agx contains the dynamics/math part of the AGX Dynamics API.
 

Macros

#define AGX_DECLARE_VECTOR_TYPES(type)
 
#define AGX_VECTOR_MIN_SIZE   4
 
#define AGX_VECTOR_RESIZE_FACTOR   2.0f
 
#define AGX_VECTOR_SHRINK_THRESHOLD   0.25f
 
#define AGX_VECTOR_SMOOTHING_FACTOR   0.8f
 
#define m_capacity   this->m_capacity
 
#define m_elements   static_cast<T *>(this->m_buffer)
 
#define m_size   this->m_size
 

Functions

template<typename T , typename A >
Vector< T, A >::iterator agx::begin (Vector< T, A > &v)
 
template<typename T , typename A >
Vector< T, A >::const_iterator agx::begin (const Vector< T, A > &v)
 
template<typename T , typename A >
VectorPOD< T, A >::iterator agx::begin (VectorPOD< T, A > &v)
 
template<typename T , typename A >
VectorPOD< T, A >::const_iterator agx::begin (const VectorPOD< T, A > &v)
 
template<typename T , typename A >
Vector< T, A >::iterator agx::end (Vector< T, A > &v)
 
template<typename T , typename A >
Vector< T, A >::const_iterator agx::end (const Vector< T, A > &v)
 
template<typename T , typename A >
VectorPOD< T, A >::iterator agx::end (VectorPOD< T, A > &v)
 
template<typename T , typename A >
VectorPOD< T, A >::const_iterator agx::end (const VectorPOD< T, A > &v)
 
template<typename T , typename A >
std::ostream & agx::operator<< (std::ostream &output, const Vector< T, A > &vec)
 
template<typename T , typename A >
std::ostream & agx::operator<< (std::ostream &output, const VectorPOD< T, A > &vec)
 
template<typename VectorT >
std::ostream & agx::printVector (std::ostream &output, const VectorT &vec)
 
template<class T >
void agx::swap (Vector< T > &x, Vector< T > &y)
 
template<class T >
void agx::swap (VectorPOD< T > &x, VectorPOD< T > &y)
 

Macro Definition Documentation

#define AGX_DECLARE_VECTOR_TYPES (   type)
Value:
typedef agx::Vector<type ## Observer> type ## ObserverVector; \
typedef agx::VectorPOD<type *> type ## PtrVector
Templated vector class.
Definition: Vector.h:52
Vector containing &#39;raw&#39; data.
Definition: Vector.h:245
agx::Vector< agx::ref_ptr< Referenced > > RefVector
GLenum type
Definition: gl.h:5539

Definition at line 34 of file Vector.h.

#define AGX_VECTOR_SMOOTHING_FACTOR   0.8f
#define m_capacity   this->m_capacity
#define m_elements   static_cast<T *>(this->m_buffer)

Definition at line 428 of file Vector.h.

Referenced by agx::StackArray< T, N >::at(), agx::Vector< T, Allocator >::at(), agx::VectorPOD< T, Allocator >::at(), agx::StackArray< T, N >::back(), agx::Vector< T, Allocator >::back(), agx::VectorPOD< T, Allocator >::back(), agx::StackArray< T, N >::begin(), agx::Vector< T, Allocator >::begin(), agx::VectorPOD< T, Allocator >::begin(), agx::Vector< T, Allocator >::end(), agx::VectorPOD< T, Allocator >::end(), agx::StackArray< T, N >::erase(), agx::Vector< T, Allocator >::erase(), agx::VectorPOD< T, Allocator >::erase(), agx::Vector< T, Allocator >::eraseFast(), agx::VectorPOD< T, Allocator >::eraseFast(), agx::Vector< T, Allocator >::find(), agx::VectorPOD< T, Allocator >::find(), agx::Vector< T, Allocator >::findAndErase(), agx::VectorPOD< T, Allocator >::findAndErase(), agx::StackArray< T, N >::front(), agx::Vector< T, Allocator >::front(), agx::VectorPOD< T, Allocator >::front(), agx::Vector< T, Allocator >::increment(), agx::VectorPOD< T, Allocator >::increment(), agx::Vector< T, Allocator >::insert(), agx::VectorPOD< T, Allocator >::insert(), agx::Vector< T, Allocator >::operator!=(), agx::VectorPOD< T, Allocator >::operator!=(), agx::StackArray< T, N >::operator=(), agx::Vector< T, Allocator >::operator=(), agx::VectorPOD< T, Allocator >::operator=(), agx::Vector< T, Allocator >::operator==(), agx::VectorPOD< T, Allocator >::operator==(), agx::StackArray< T, N >::operator[](), agx::Vector< T, Allocator >::operator[](), agx::VectorPOD< T, Allocator >::operator[](), agx::Vector< T, Allocator >::pop_back(), agx::Vector< T, Allocator >::ptr(), agx::VectorPOD< T, Allocator >::ptr(), agx::StackArray< T, N >::push_back(), agx::Vector< T, Allocator >::push_back(), agx::VectorPOD< T, Allocator >::push_back(), agxData::StackArray< T, N >::StackArray(), agx::StackArray< T, N >::StackArray(), agx::Vector< T, Allocator >::~Vector(), and agx::VectorPOD< T, Allocator >::~VectorPOD().

#define m_size   this->m_size

Definition at line 429 of file Vector.h.

Referenced by agx::MemoryPool< T >::allocate(), agx::StackArray< T, N >::at(), agx::Vector< T, Allocator >::at(), agx::StackArray< T, N >::back(), agx::Vector< T, Allocator >::back(), agx::StackArray< T, N >::clear(), agxData::Vector< T >::clear(), agx::MemoryPool< T >::clear(), agx::Vector< T, Allocator >::clear(), agxData::BufferT< T >::clear(), agx::MemoryPool< T >::clearFast(), agx::Vector< T, Allocator >::contains(), agx::VectorPOD< T, Allocator >::contains(), agx::MemoryPool< T >::deallocate(), agx::StackArray< T, N >::empty(), agxSDK::LinkedSegmentRange< T >::empty(), agxData::EntityStorage::empty(), agx::Vector< T, Allocator >::end(), agx::VectorPOD< T, Allocator >::end(), agxData::Vector< T >::erase(), agx::StackArray< T, N >::erase(), agx::Vector< T, Allocator >::erase(), agx::CellTable< CellIdT, HashT >::erase(), agx::VectorPOD< T, Allocator >::erase(), agxData::Vector< T >::eraseFast(), agx::Vector< T, Allocator >::eraseFast(), agx::Vector< T, Allocator >::find(), agx::VectorPOD< T, Allocator >::find(), agx::Vector< T, Allocator >::findAndErase(), agx::VectorPOD< T, Allocator >::findAndErase(), agx::StackArray< T, N >::front(), agx::Vector< T, Allocator >::front(), agxOSG::Panel::getSize(), agxCollide::HeightFieldMeshData::getSize(), agx::Vector< T, Allocator >::increment(), agxData::Vector< T >::insert(), agx::Vector< T, Allocator >::insert(), agx::CellTable< CellIdT, HashT >::insert(), agx::Vector< T, Allocator >::operator!=(), agx::VectorPOD< T, Allocator >::operator!=(), agxSDK::LinkedSegmentRange< T >::operator=(), agx::StackArray< T, N >::operator=(), agx::Vector< T, Allocator >::operator=(), agx::Vector< T, Allocator >::operator==(), agx::VectorPOD< T, Allocator >::operator==(), agx::StackArray< T, N >::operator[](), agxSDK::LinkedSegmentRange< T >::operator[](), agx::Vector< T, Allocator >::operator[](), agx::StackArray< T, N >::pop_back(), agx::Vector< T, Allocator >::pop_back(), agxData::BufferT< T >::pop_back(), agx::StackArray< T, N >::push_back(), agxData::Vector< T >::push_back(), agx::Vector< T, Allocator >::push_back(), agx::VectorPOD< T, Allocator >::push_back(), agxData::BufferT< T >::push_back(), agxData::Vector< T >::resize(), agx::Vector< T, Allocator >::resize(), agx::Vector< T, Allocator >::shrink_to_fit(), agx::StackArray< T, N >::size(), agxSDK::LinkedSegmentRange< T >::size(), agxRender::RenderSingleton::Point::size(), agxData::EntityStorage::size(), agxRender::RenderSingleton::Line::size(), agxRender::RenderSingleton::Triangle::size(), agx::StackArray< T, N >::StackArray(), and agx::Vector< T, Allocator >::~Vector().