AGX Dynamics 2.40.0.0
Loading...
Searching...
No Matches
agx/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

namespace  agx
 The agx namespace 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 >::const_iterator agx::begin (const Vector< 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::begin (Vector< T, A > &v)
 
template<typename T , typename A >
VectorPOD< T, A >::iterator agx::begin (VectorPOD< 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 >::const_iterator agx::end (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 >
VectorPOD< T, A >::iterator agx::end (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

◆ AGX_DECLARE_VECTOR_TYPES

#define AGX_DECLARE_VECTOR_TYPES (   type)
Value:
typedef agx::Vector<type ## Ref> type ## RefVector; \
typedef agx::Vector<type ## Observer> type ## ObserverVector; \
typedef agx::VectorPOD<type *> type ## PtrVector
Vector containing 'raw' data.
Definition: agx/Vector.h:246
Templated vector class.
Definition: agx/Vector.h:53

Definition at line 34 of file agx/Vector.h.

◆ AGX_VECTOR_MIN_SIZE

#define AGX_VECTOR_MIN_SIZE   4

Definition at line 426 of file agx/Vector.h.

◆ AGX_VECTOR_RESIZE_FACTOR

#define AGX_VECTOR_RESIZE_FACTOR   2.0f

Definition at line 423 of file agx/Vector.h.

◆ AGX_VECTOR_SHRINK_THRESHOLD

#define AGX_VECTOR_SHRINK_THRESHOLD   0.25f

Definition at line 425 of file agx/Vector.h.

◆ AGX_VECTOR_SMOOTHING_FACTOR

#define AGX_VECTOR_SMOOTHING_FACTOR   0.8f

Definition at line 424 of file agx/Vector.h.

◆ m_capacity

#define m_capacity   this->m_capacity

Definition at line 430 of file agx/Vector.h.

◆ m_elements

#define m_elements   static_cast<T *>(this->m_buffer)

Definition at line 428 of file agx/Vector.h.

◆ m_size

#define m_size   this->m_size

Definition at line 429 of file agx/Vector.h.