#include <VecTypes.h>


Public Types | |
| typedef T | value_type |
| typedef unsigned int | size_type |
Public Member Functions | |
| ExtVector (ExtVectorAllocator< T > *alloc=NULL) | |
| ExtVector (int size, ExtVectorAllocator< T > *alloc) | |
| ~ExtVector () | |
| void | setAllocator (ExtVectorAllocator< T > *alloc) |
| void | setData (value_type *d, size_type s) |
| T * | getData () |
| const T * | getData () const |
| value_type & | operator[] (size_type i) |
| const value_type & | operator[] (size_type i) const |
| size_type | size () const |
| bool | empty () const |
| void | reserve (size_type size) |
| void | resize (size_type size) |
| void | clear () |
| void | push_back (const T &v) |
| T * | begin () |
| const T * | begin () const |
| T * | end () |
| const T * | end () const |
Protected Attributes | |
| value_type * | data |
| size_type | maxsize |
| size_type | cursize |
| ExtVectorAllocator< T > * | allocator |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const ExtVector< T > &vec) |
| Output stream. | |
| std::istream & | operator>> (std::istream &in, ExtVector< T > &vec) |
| Input stream. | |
This class allows custom buffer allocation while not having any virtual methods using a bridge pattern with ExtVectorAllocator
Definition at line 141 of file VecTypes.h.
| typedef unsigned int sofa::defaulttype::ExtVector< T >::size_type |
Reimplemented in sofa::defaulttype::ResizableExtVector< T >, sofa::defaulttype::ResizableExtVector< Deriv >, sofa::defaulttype::ResizableExtVector< sofa::helper::fixed_array >, sofa::defaulttype::ResizableExtVector< int >, sofa::defaulttype::ResizableExtVector< sofa::helper::fixed_array< int, 3 > >, sofa::defaulttype::ResizableExtVector< sofa::defaulttype::Vec >, sofa::defaulttype::ResizableExtVector< Coord >, and sofa::defaulttype::ResizableExtVector< sofa::defaulttype::Vec< 2, float > >.
Definition at line 145 of file VecTypes.h.
| typedef T sofa::defaulttype::ExtVector< T >::value_type |
Reimplemented in sofa::defaulttype::ResizableExtVector< T >, sofa::defaulttype::ResizableExtVector< Deriv >, sofa::defaulttype::ResizableExtVector< sofa::helper::fixed_array >, sofa::defaulttype::ResizableExtVector< int >, sofa::defaulttype::ResizableExtVector< sofa::helper::fixed_array< int, 3 > >, sofa::defaulttype::ResizableExtVector< sofa::defaulttype::Vec >, sofa::defaulttype::ResizableExtVector< Coord >, and sofa::defaulttype::ResizableExtVector< sofa::defaulttype::Vec< 2, float > >.
Definition at line 144 of file VecTypes.h.
| sofa::defaulttype::ExtVector< T >::ExtVector | ( | ExtVectorAllocator< T > * | alloc = NULL |
) | [inline, explicit] |
Definition at line 153 of file VecTypes.h.
| sofa::defaulttype::ExtVector< T >::ExtVector | ( | int | size, | |
| ExtVectorAllocator< T > * | alloc | |||
| ) | [inline] |
Definition at line 154 of file VecTypes.h.
| sofa::defaulttype::ExtVector< T >::~ExtVector | ( | ) | [inline] |
Definition at line 155 of file VecTypes.h.
| const T* sofa::defaulttype::ExtVector< T >::begin | ( | ) | const [inline] |
Definition at line 218 of file VecTypes.h.
| T* sofa::defaulttype::ExtVector< T >::begin | ( | ) | [inline] |
Definition at line 217 of file VecTypes.h.
Referenced by sofa::component::collision::DistanceGrid::calcDistance().
| void sofa::defaulttype::ExtVector< T >::clear | ( | ) | [inline] |
Definition at line 207 of file VecTypes.h.
| bool sofa::defaulttype::ExtVector< T >::empty | ( | ) | const [inline] |
Definition at line 182 of file VecTypes.h.
Referenced by sofa::component::collision::DistanceGrid::computeBBox(), sofa::component::collision::DiscreteIntersection::computeIntersection(), sofa::component::visualmodel::VisualModelImpl::computeMesh(), sofa::component::visualmodel::VisualModelImpl::computeNormals(), sofa::component::visualmodel::VisualModelImpl::computePositions(), sofa::component::visualmodel::VisualModelImpl::exportOBJ(), SofaFlowVR::FlowVRRenderMesh::renderUpdate(), and sofa::component::visualmodel::VisualModelImpl::updateVisual().
| const T* sofa::defaulttype::ExtVector< T >::end | ( | ) | const [inline] |
Definition at line 220 of file VecTypes.h.
| T* sofa::defaulttype::ExtVector< T >::end | ( | ) | [inline] |
Definition at line 219 of file VecTypes.h.
Referenced by sofa::component::collision::DistanceGrid::calcDistance().
| const T* sofa::defaulttype::ExtVector< T >::getData | ( | ) | const [inline] |
Definition at line 177 of file VecTypes.h.
| T* sofa::defaulttype::ExtVector< T >::getData | ( | ) | [inline] |
Definition at line 176 of file VecTypes.h.
Referenced by sofa::defaulttype::ExtVector< sofa::defaulttype::Vec >::begin(), sofa::defaulttype::ExtVector< sofa::defaulttype::Vec >::end(), sofa::component::visualmodel::OglModel::internalDraw(), and sofa::component::visualmodel::OgreVisualModel::uploadVertices().
| const value_type& sofa::defaulttype::ExtVector< T >::operator[] | ( | size_type | i | ) | const [inline] |
Definition at line 180 of file VecTypes.h.
| value_type& sofa::defaulttype::ExtVector< T >::operator[] | ( | size_type | i | ) | [inline] |
Definition at line 179 of file VecTypes.h.
| void sofa::defaulttype::ExtVector< T >::push_back | ( | const T & | v | ) | [inline] |
Definition at line 211 of file VecTypes.h.
| void sofa::defaulttype::ExtVector< T >::reserve | ( | size_type | size | ) | [inline] |
Definition at line 183 of file VecTypes.h.
| void sofa::defaulttype::ExtVector< T >::resize | ( | size_type | size | ) | [inline] |
Definition at line 195 of file VecTypes.h.
Referenced by sofa::component::collision::DistanceGrid::calcCubeDistance(), sofa::defaulttype::ExtVector< sofa::defaulttype::Vec >::clear(), sofa::component::visualmodel::VisualModelImpl::computeMesh(), sofa::component::visualmodel::VisualModelImpl::computeNormals(), sofa::component::visualmodel::OgreVisualModel::computeNormals(), sofa::defaulttype::ExtVector< sofa::defaulttype::Vec >::ExtVector(), sofa::component::visualmodel::VisualModelImpl::load(), sofa::component::collision::DistanceGrid::load(), sofa::defaulttype::ExtVector< sofa::defaulttype::Vec >::push_back(), SofaFlowVR::FlowVRRenderMesh::renderUpdate(), and sofa::component::visualmodel::VisualModelImpl::setMesh().
| void sofa::defaulttype::ExtVector< T >::setAllocator | ( | ExtVectorAllocator< T > * | alloc | ) | [inline] |
Definition at line 156 of file VecTypes.h.
| void sofa::defaulttype::ExtVector< T >::setData | ( | value_type * | d, | |
| size_type | s | |||
| ) | [inline] |
Definition at line 175 of file VecTypes.h.
| size_type sofa::defaulttype::ExtVector< T >::size | ( | void | ) | const [inline] |
Definition at line 181 of file VecTypes.h.
Referenced by sofa::component::visualmodel::VisualModelImpl::addBBox(), sofa::component::visualmodel::DrawV::addBBox(), sofa::component::visualmodel::OgreVisualModel::attach(), sofa::component::collision::DistanceGrid::computeBBox(), sofa::component::visualmodel::OgreVisualModel::computeBounds(), sofa::component::collision::DiscreteIntersection::computeIntersection(), sofa::component::visualmodel::VisualModelImpl::computeMesh(), sofa::component::visualmodel::VisualModelImpl::computeNormals(), sofa::component::visualmodel::OgreVisualModel::computeNormals(), sofa::component::visualmodel::VisualModelImpl::computePositions(), sofa::defaulttype::ExtVector< sofa::defaulttype::Vec >::end(), sofa::component::visualmodel::VisualModelImpl::exportOBJ(), sofa::component::visualmodel::VisualModelImpl::flipFaces(), sofa::component::visualmodel::OglModel::internalDraw(), sofa::component::visualmodel::DrawV::internalDraw(), sofa::component::visualmodel::VisualModelImpl::load(), sofa::defaulttype::ExtVector< sofa::defaulttype::Vec >::push_back(), SofaFlowVR::FlowVRRenderMesh::renderUpdate(), sofa::defaulttype::ExtVector< sofa::defaulttype::Vec >::setAllocator(), and sofa::component::visualmodel::OgreVisualModel::uploadVertices().
ExtVectorAllocator<T>* sofa::defaulttype::ExtVector< T >::allocator [protected] |
Definition at line 151 of file VecTypes.h.
Referenced by sofa::defaulttype::ExtVector< sofa::defaulttype::Vec >::reserve(), sofa::defaulttype::ExtVector< sofa::defaulttype::Vec >::resize(), sofa::defaulttype::ExtVector< sofa::defaulttype::Vec >::setAllocator(), and sofa::defaulttype::ExtVector< sofa::defaulttype::Vec >::~ExtVector().
size_type sofa::defaulttype::ExtVector< T >::cursize [protected] |
Definition at line 150 of file VecTypes.h.
Referenced by sofa::defaulttype::ExtVector< sofa::defaulttype::Vec >::empty(), sofa::defaulttype::ExtVector< sofa::defaulttype::Vec >::reserve(), sofa::defaulttype::ExtVector< sofa::defaulttype::Vec >::resize(), sofa::defaulttype::ExtVector< sofa::defaulttype::Vec >::setAllocator(), sofa::defaulttype::ExtVector< sofa::defaulttype::Vec >::setData(), and sofa::defaulttype::ExtVector< sofa::defaulttype::Vec >::size().
value_type* sofa::defaulttype::ExtVector< T >::data [protected] |
Definition at line 148 of file VecTypes.h.
Referenced by sofa::defaulttype::ExtVector< sofa::defaulttype::Vec >::getData(), sofa::component::collision::DistanceGrid::load(), sofa::defaulttype::ExtVector< sofa::defaulttype::Vec >::operator[](), sofa::defaulttype::ExtVector< sofa::defaulttype::Vec >::reserve(), sofa::defaulttype::ExtVector< sofa::defaulttype::Vec >::resize(), sofa::defaulttype::ExtVector< sofa::defaulttype::Vec >::setAllocator(), sofa::defaulttype::ExtVector< sofa::defaulttype::Vec >::setData(), and sofa::defaulttype::ExtVector< sofa::defaulttype::Vec >::~ExtVector().
size_type sofa::defaulttype::ExtVector< T >::maxsize [protected] |
Definition at line 149 of file VecTypes.h.
Referenced by sofa::defaulttype::ExtVector< sofa::defaulttype::Vec >::reserve(), sofa::defaulttype::ExtVector< sofa::defaulttype::Vec >::resize(), sofa::defaulttype::ExtVector< sofa::defaulttype::Vec >::setAllocator(), and sofa::defaulttype::ExtVector< sofa::defaulttype::Vec >::setData().
1.5.7.1