RobWorkProject  23.9.11-
Public Member Functions | Protected Attributes | List of all members
RWBodyPool Class Reference

interface for creating and deleting constraintEdges and ConstraintNodes. ConstraintEdges are frequently created and deleted so efficient data structures are here needed. More...

#include <RWBodyPool.hpp>

Public Member Functions

 RWBodyPool (int nrBodies=0)
 initialize the node and edge buffers
 
RWBodycreateBody (RWBody::BodyType type)
 create a ConstraintNode
 
void deleteBody (RWBody *body)
 delete a constraint node
 
const RWBodyList & getBodies () const
 gets the complete list of constraint nodes in the pool. NULL elements can occour.
 

Protected Attributes

std::vector< RWBody * > _bodies
 
std::stack< int > _freeBodyIDs
 

Detailed Description

interface for creating and deleting constraintEdges and ConstraintNodes. ConstraintEdges are frequently created and deleted so efficient data structures are here needed.


The documentation for this class was generated from the following file: