|
AGXDynamics
2.35.0.2
|
The Container is the base class for several of the container classes proided by AGX, such as agx::Vector and agx::HashSet. More...
#include <Container.h>
Inheritance diagram for agx::Container: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... | |
Public Member Functions | |
| size_t | capacity () const |
| Returns the size of the memory are used by the container to store its elements. More... | |
| bool | empty () const |
| void * | ptr () |
| const void * | ptr () const |
| size_t | size () const |
Protected Member Functions | |
| Container () | |
| Container (const Container &other) | |
| Container (Container &&other) | |
| ~Container () | |
Protected Attributes | |
| void * | m_buffer |
| size_t | m_capacity |
| size_t | m_size |
The Container is the base class for several of the container classes proided by AGX, such as agx::Vector and agx::HashSet.
Definition at line 34 of file Container.h.
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.
|
protected |
Definition at line 102 of file Container.h.
|
protected |
Definition at line 111 of file Container.h.
References m_buffer, m_capacity, and m_size.
|
protected |
Definition at line 103 of file Container.h.
References m_buffer, m_capacity, and m_size.
|
protected |
Definition at line 127 of file Container.h.
References m_buffer, m_capacity, and m_size.
| size_t agx::Container::capacity | ( | ) | const |
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 m_capacity.
Referenced by agx::Vector< const agxPowerLine::Unit * >::operator=().
| bool agx::Container::empty | ( | ) | const |
Definition at line 136 of file Container.h.
References 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(), agx::WireContactConstraint::getMass(), and agxSDK::LinkedStructure::getSegment().
| const void * agx::Container::ptr | ( | ) |
Definition at line 137 of file Container.h.
References m_buffer.
| const void* agx::Container::ptr | ( | ) | const |
| size_t agx::Container::size | ( | ) | const |
Definition at line 134 of file Container.h.
References m_size.
Referenced by agxCollide::GroupFooCollider< ShapeType >::_calculateContacts(), agxData::Array< agx::Jacobian6DOFElementT >::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(), agxWire::Link::findConnectingNode(), agx::ConstraintImplementation::findSecondaryConstraintGivenType(), agxSDK::MergeSplitThresholds::get(), agxData::EntityStorage::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(), agxModel::TireFilter::match(), agxModel::SuctionCupSensorFilter::match(), agxSDK::CollisionGroupFilter::match(), agx::Vector< const agxPowerLine::Unit * >::operator!=(), agx::VectorPOD< GeometryContact * >::operator!=(), agx::Vector< const agxPowerLine::Unit * >::operator=(), agx::HashSetImplementation< CellPtr, HashFn< CellPtr >, ByteAllocator >::operator=(), agx::QuadraticProbingHashTableImplementation< SymmetricMaterialPair, agx::ContactMaterialRef, HashFn< SymmetricMaterialPair >, ByteAllocator >::operator=(), agx::VectorPOD< GeometryContact * >::operator=(), agx::Vector< const agxPowerLine::Unit * >::operator==(), agx::VectorPOD< GeometryContact * >::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(), agx::HashSetImplementation< CellPtr, HashFn< CellPtr >, ByteAllocator >::reserve(), agx::QuadraticProbingHashTableImplementation< SymmetricMaterialPair, agx::ContactMaterialRef, HashFn< SymmetricMaterialPair >, ByteAllocator >::reserve(), 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().
|
protected |
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(), Container(), ptr(), agx::HashSetImplementation< CellPtr, HashFn< CellPtr >, ByteAllocator >::rebuild(), agx::QuadraticProbingHashTableImplementation< SymmetricMaterialPair, agx::ContactMaterialRef, HashFn< SymmetricMaterialPair >, ByteAllocator >::rebuild(), agx::Vector< const agxPowerLine::Unit * >::swap(), agx::VectorPOD< GeometryContact * >::swap(), ~Container(), agx::HashSetImplementation< CellPtr, HashFn< CellPtr >, ByteAllocator >::~HashSetImplementation(), and agx::QuadraticProbingHashTableImplementation< SymmetricMaterialPair, agx::ContactMaterialRef, HashFn< SymmetricMaterialPair >, ByteAllocator >::~QuadraticProbingHashTableImplementation().
|
protected |
Definition at line 95 of file Container.h.
Referenced by capacity(), agx::HashSetImplementation< CellPtr, HashFn< CellPtr >, ByteAllocator >::clear(), agx::QuadraticProbingHashTableImplementation< SymmetricMaterialPair, agx::ContactMaterialRef, HashFn< SymmetricMaterialPair >, ByteAllocator >::clear(), Container(), agx::HashSetImplementation< CellPtr, HashFn< CellPtr >, ByteAllocator >::numBuckets(), agx::QuadraticProbingHashTableImplementation< SymmetricMaterialPair, agx::ContactMaterialRef, HashFn< SymmetricMaterialPair >, ByteAllocator >::numBuckets(), agx::Vector< const agxPowerLine::Unit * >::swap(), agx::VectorPOD< GeometryContact * >::swap(), ~Container(), agx::HashSetImplementation< CellPtr, HashFn< CellPtr >, ByteAllocator >::~HashSetImplementation(), and agx::QuadraticProbingHashTableImplementation< SymmetricMaterialPair, agx::ContactMaterialRef, HashFn< SymmetricMaterialPair >, ByteAllocator >::~QuadraticProbingHashTableImplementation().
|
protected |
Definition at line 94 of file Container.h.
Referenced by Container(), empty(), agx::HashSetImplementation< CellPtr, HashFn< CellPtr >, ByteAllocator >::numFilled(), agx::QuadraticProbingHashTableImplementation< SymmetricMaterialPair, agx::ContactMaterialRef, HashFn< SymmetricMaterialPair >, ByteAllocator >::numFilled(), size(), agx::Vector< const agxPowerLine::Unit * >::swap(), agx::VectorPOD< GeometryContact * >::swap(), and ~Container().