|
AGXDynamics
2.31.1.0
|
#include <agxStream.h>
Inheritance diagram for agxStream::SerializablePtrVector:Public Types | |
| enum | ClearPolicy { SHRINK_BUFFER, SHRINK_BUFFER_AVERAGED, MAINTAIN_BUFFER } |
| agxData::Values from this enumeration is passed to the subclasses' 'clear' method in order to control what should become of the container's memory. More... | |
| typedef const Serializable ** | const_iterator |
| typedef const Serializable ** | const_pointer |
| typedef const Serializable *& | const_reference |
| typedef std::reverse_iterator < const_iterator > | const_reverse_iterator |
| typedef ptrdiff_t | difference_type |
| typedef Serializable ** | iterator |
| typedef std::random_access_iterator_tag | iterator_category |
| typedef Serializable ** | pointer |
| typedef Serializable *& | reference |
| typedef std::reverse_iterator < iterator > | reverse_iterator |
| typedef size_t | size_type |
| typedef Serializable * | Type |
| typedef Serializable * | value_type |
Public Member Functions | |
| SerializablePtrVector () | |
| ~SerializablePtrVector () | |
| ByteAllocator & | allocator () |
| const ByteAllocator & | allocator () const |
| Serializable *& | at (size_t index) const |
| Serializable *& | back () const |
| iterator | begin () |
| const_iterator | begin () const |
| size_t | capacity () const |
| Returns the size of the memory are used by the container to store its elements. More... | |
| void | clear (ClearPolicy policy=SHRINK_BUFFER_AVERAGED) |
| Remove all elements, optionally with maintained buffer allocation. More... | |
| bool | contains (const T2 &element) const |
| Test if the vector contains a certain element. More... | |
| bool | contains (const Serializable *&element) const |
| void | deallocate () |
| bool | empty () const |
| iterator | end () |
| const_iterator | end () const |
| iterator | erase (iterator position) |
| STL erase functionality. More... | |
| iterator | erase (iterator start, iterator end) |
| void | erase (size_t index) |
| Erase elements using indices instead of iterators. More... | |
| void | erase (size_t start, size_t end) |
| iterator | eraseFast (const_iterator position) |
| Fast erase, replacing the erased element with the last element. More... | |
| void | eraseFast (size_t index) |
| size_t | find (const T2 &element) const |
| Find the index to a matching element, return size() if not found. More... | |
| bool | findAndErase (const T2 &element, bool searchMultiple=false) |
| Find and erase an element. More... | |
| Serializable *& | front () const |
| Serializable ** | increment (size_t numElements=1) |
| Resize using a increment. More... | |
| iterator | insert (iterator position, const Serializable *&value) |
| void | insert (size_t index, const Serializable *&value) |
| void | insert (const_iterator it, InputIterator first, InputIterator last) |
| void | insert (const_iterator it, std::initializer_list< Serializable * > ilist) |
| bool | operator!= (const Vector< Serializable *, ByteAllocator > &other) const |
| bool | operator== (const Vector< Serializable *, ByteAllocator > &other) const |
| Compare with other vector, return true if same size and all pairs are equal. More... | |
| Serializable *& | operator[] (size_t i) const |
| void | pop_back () |
| Serializable ** | ptr () |
| Get access to the internal data buffer. More... | |
| const Serializable ** | ptr () const |
| void | push_back (const T2 &value) |
| void | push_back (const Serializable *&value) |
| void | push_back (Serializable *&&value) |
| reverse_iterator | rbegin () |
| const_reverse_iterator | rbegin () const |
| reverse_iterator | rend () |
| const_reverse_iterator | rend () const |
| void | reserve (size_t size) |
| Reserve capacity in the vector. More... | |
| void | reserveAtLeast (size_t size) |
| Reserve capacity in the vector. More... | |
| void | resize (size_t size) |
| Resize the vector, which then enables direct addressing using the bracket '[]' operator. More... | |
| void | resize (size_t size, const Serializable *&value) |
| void | shrink_to_fit () |
| Reduce the capacity of the vector to the actual size (number of elements) More... | |
| size_t | size () const |
| void | swap (Vector &other) |
Protected Attributes | |
| void * | m_buffer |
| size_t | m_capacity |
| size_t | m_size |
Definition at line 37 of file agxStream.h.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
agxData::Values from this enumeration is passed to the subclasses' 'clear' method in order to control what should become of the container's memory.
Definition at line 42 of file Container.h.
|
inline |
Definition at line 39 of file agxStream.h.
|
inline |
Definition at line 41 of file agxStream.h.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Returns the size of the memory are used by the container to store its elements.
Some types of containers, e.g. the agx::Vector, will not do a reallocation until the size of the container reaches the capacity. However, this is not the case for e.g., agx::HashTable, which may perform a reallocation earlier.
Definition at line 135 of file Container.h.
References agx::Container::m_capacity.
Referenced by agx::Vector< T, Allocator >::operator=().
|
inherited |
Remove all elements, optionally with maintained buffer allocation.
|
inherited |
Test if the vector contains a certain element.
|
inherited |
| void agxStream::SerializablePtrVector::deallocate | ( | ) |
|
inherited |
Definition at line 136 of file Container.h.
References agx::Container::m_size.
Referenced by agx::WireContactConstraint::addWireParticle(), agx::WireContactSpringConstraint::calculateJacobian(), agx::createMissingTiers(), agxCollide::Space::disableForContacts(), agx::HashVector< agx::UInt32, agx::ref_ptr< RenderProxy > >::empty(), agx::SetVector< const agxPowerLine::Unit * >::empty(), agxSDK::SimulationFrameReader::DirtySet::empty(), agx::WireContactConstraint::getInvMass(), agx::WireContactConstraint::getJacobian(), and agx::WireContactConstraint::getMass().
|
inherited |
|
inherited |
|
inherited |
STL erase functionality.
|
inherited |
|
inherited |
Erase elements using indices instead of iterators.
|
inherited |
|
inherited |
Fast erase, replacing the erased element with the last element.
|
inherited |
|
inherited |
Find the index to a matching element, return size() if not found.
|
inherited |
Find and erase an element.
| element | - Element to search for |
| searchMultiple | Set to true if search should continue after element is found, otherwise the search terminates on first match. |
|
inherited |
|
inherited |
Resize using a increment.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Compare with other vector, return true if same size and all pairs are equal.
|
inherited |
|
inherited |
|
inherited |
Get access to the internal data buffer.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Reserve capacity in the vector.
|
inherited |
Reserve capacity in the vector.
Let vector grow in same way as push_back() does.
|
inherited |
Resize the vector, which then enables direct addressing using the bracket '[]' operator.
|
inherited |
|
inherited |
Reduce the capacity of the vector to the actual size (number of elements)
|
inherited |
Definition at line 134 of file Container.h.
References agx::Container::m_size.
Referenced by agxCollide::GroupFooCollider< ShapeType >::_calculateContacts(), agxData::Array< T >::Array(), agx::HashVector< agx::UInt32, agx::ref_ptr< RenderProxy > >::back(), agx::SetVector< const agxPowerLine::Unit * >::back(), agx::WireContactConstraint::calculateD(), agx::WireContactConstraint::calculateRHS(), agx::GlobalResult::Transaction::commit(), agxData::BufferT< T >::commit(), agxSDK::copyVectors(), agx::createMissingTiers(), agxCollide::Space::disableForContacts(), agxSDK::LinkedSegmentIterator< T >::end(), agx::ConstraintImplementation::findSecondaryConstraintGivenType(), agxSDK::MergeSplitThresholds::get(), agx::WireContactConstraint::getForceOnParticle(), agxSDK::MultiCollisionFilterContactHandler::getGeometryContact(), agxModel::HeightController::getHeight(), agx::WireContactConstraint::getInvMass(), agx::WireContactConstraint::getJacobian(), agx::WireContactConstraint::getMass(), agx::ConstraintImplementation::BodyView::getNumBodies(), agxSDK::LinkedStructure::getNumSegments(), agxIO::MeshReader::getNumTriangles(), agxSDK::MergeSplitThresholds::getNumValues(), agxSDK::LinkedStructure::getSegment(), agxSDK::CollisionGroupFilter::hasMemberGroup(), agxSDK::CollisionGroupFilter::match(), agx::Vector< T, Allocator >::operator!=(), agx::VectorPOD< T, Allocator >::operator!=(), agx::Vector< T, Allocator >::operator=(), agx::HashSetImplementation< CellPtr, HashFn< CellPtr >, ByteAllocator >::operator=(), agx::QuadraticProbingHashTableImplementation< SymmetricMaterialPair, agx::ContactMaterialRef, HashFn< SymmetricMaterialPair >, ByteAllocator >::operator=(), agx::VectorPOD< T, Allocator >::operator=(), agx::Vector< T, Allocator >::operator==(), agx::VectorPOD< T, Allocator >::operator==(), agx::HashVector< agx::UInt32, agx::ref_ptr< RenderProxy > >::operator[](), agx::SetVector< const agxPowerLine::Unit * >::operator[](), agxOSG::RenderStateManager::parseUniform(), agx::HashVector< agx::UInt32, agx::ref_ptr< RenderProxy > >::purge(), agx::SetVector< const agxPowerLine::Unit * >::purge(), agx::HashVector< agx::UInt32, agx::ref_ptr< RenderProxy > >::push_back(), agx::SetVector< const agxPowerLine::Unit * >::push_back(), agxIO::ArgumentParser::read1(), agxIO::ArgumentParser::read2(), agxIO::ArgumentParser::read3(), agx::HashSetImplementation< CellPtr, HashFn< CellPtr >, ByteAllocator >::rebuild(), agx::QuadraticProbingHashTableImplementation< SymmetricMaterialPair, agx::ContactMaterialRef, HashFn< SymmetricMaterialPair >, ByteAllocator >::rebuild(), agxRender::HeightFieldProxy::setHeights(), agxUtil::ConvexHull2D::size(), agx::HashVector< agx::UInt32, agx::ref_ptr< RenderProxy > >::size(), agx::SetVector< const agxPowerLine::Unit * >::size(), agxVehicle::utils::splitNonconsecutive(), agxWire::transformPointToShape(), agxWire::transformPointToWorld(), agxWire::transformVectorToShape(), agxWire::transformVectorToWorld(), agxModel::triangleIterator(), agx::Event::trigger(), and agxStream::StoreObjects< T >::~StoreObjects().
|
inherited |
|
protectedinherited |
Definition at line 96 of file Container.h.
Referenced by agx::HashSetImplementation< CellPtr, HashFn< CellPtr >, ByteAllocator >::buckets(), agx::QuadraticProbingHashTableImplementation< SymmetricMaterialPair, agx::ContactMaterialRef, HashFn< SymmetricMaterialPair >, ByteAllocator >::buckets(), agx::HashSetImplementation< CellPtr, HashFn< CellPtr >, ByteAllocator >::clear(), agx::QuadraticProbingHashTableImplementation< SymmetricMaterialPair, agx::ContactMaterialRef, HashFn< SymmetricMaterialPair >, ByteAllocator >::clear(), agx::Container::Container(), agx::Container::ptr(), agx::HashSetImplementation< CellPtr, HashFn< CellPtr >, ByteAllocator >::rebuild(), agx::QuadraticProbingHashTableImplementation< SymmetricMaterialPair, agx::ContactMaterialRef, HashFn< SymmetricMaterialPair >, ByteAllocator >::rebuild(), agx::Vector< T, Allocator >::swap(), agx::VectorPOD< T, Allocator >::swap(), agx::Container::~Container(), agx::HashSetImplementation< CellPtr, HashFn< CellPtr >, ByteAllocator >::~HashSetImplementation(), and agx::QuadraticProbingHashTableImplementation< SymmetricMaterialPair, agx::ContactMaterialRef, HashFn< SymmetricMaterialPair >, ByteAllocator >::~QuadraticProbingHashTableImplementation().
|
protectedinherited |
Definition at line 95 of file Container.h.
Referenced by agx::Container::capacity(), agx::HashSetImplementation< CellPtr, HashFn< CellPtr >, ByteAllocator >::clear(), agx::QuadraticProbingHashTableImplementation< SymmetricMaterialPair, agx::ContactMaterialRef, HashFn< SymmetricMaterialPair >, ByteAllocator >::clear(), agx::Container::Container(), agx::HashSetImplementation< CellPtr, HashFn< CellPtr >, ByteAllocator >::numBuckets(), agx::QuadraticProbingHashTableImplementation< SymmetricMaterialPair, agx::ContactMaterialRef, HashFn< SymmetricMaterialPair >, ByteAllocator >::numBuckets(), agx::Vector< T, Allocator >::swap(), agx::VectorPOD< T, Allocator >::swap(), agx::Container::~Container(), agx::HashSetImplementation< CellPtr, HashFn< CellPtr >, ByteAllocator >::~HashSetImplementation(), and agx::QuadraticProbingHashTableImplementation< SymmetricMaterialPair, agx::ContactMaterialRef, HashFn< SymmetricMaterialPair >, ByteAllocator >::~QuadraticProbingHashTableImplementation().
|
protectedinherited |
Definition at line 94 of file Container.h.
Referenced by agx::Container::Container(), agx::Container::empty(), agx::HashSetImplementation< CellPtr, HashFn< CellPtr >, ByteAllocator >::numFilled(), agx::QuadraticProbingHashTableImplementation< SymmetricMaterialPair, agx::ContactMaterialRef, HashFn< SymmetricMaterialPair >, ByteAllocator >::numFilled(), agx::Container::size(), agx::Vector< T, Allocator >::swap(), agx::VectorPOD< T, Allocator >::swap(), and agx::Container::~Container().