AGX Dynamics  2.37.2.0
agxPowerLine::detail::PackingInfo Class Reference

Information about which DimensionState1Dof is using which slot in a RigidBody. More...

#include <PackingInfo.h>

Public Member Functions

 PackingInfo ()
 A default-constructed PackingInfo is empty, i.e., it tracks no PhysicalDimension. More...
 
 PackingInfo (Rotational1DofState *dimension)
 A packing info tracking the given dimension only. More...
 
void assertValid () const
 
Rotational1DofState ** begin ()
 
bool contains (const Rotational1DofState *dimension) const
 
bool contains (const agx::RigidBody *body) const
 
Rotational1DofState ** end ()
 
void erase (const Rotational1DofState *dimension)
 
agx::RigidBody * getBody ()
 
agx::UInt8 getFreeSlot () const
 
int getSize () const
 
bool isEmpty () const
 
bool isFull () const
 
void newSlot (Rotational1DofState *dimension)
 
Rotational1DofState *& operator[] (const agx::UInt8 slot)
 
const Rotational1DofState * operator[] (const agx::UInt8 slot) const
 
void restore (agxStream::InputArchive &in)
 
void store (agxStream::OutputArchive &out) const
 

Detailed Description

Information about which DimensionState1Dof is using which slot in a RigidBody.

It is important that the information stored here is kept in sync with the body and slot stored in the DimensionState1Dof.

Used by the slot mapper.

Definition at line 55 of file PackingInfo.h.

Constructor & Destructor Documentation

◆ PackingInfo() [1/2]

agxPowerLine::detail::PackingInfo::PackingInfo ( )

A default-constructed PackingInfo is empty, i.e., it tracks no PhysicalDimension.

◆ PackingInfo() [2/2]

agxPowerLine::detail::PackingInfo::PackingInfo ( Rotational1DofState *  dimension)

A packing info tracking the given dimension only.

The given dimension's current slot is used to initialize the PackingInfo.

Member Function Documentation

◆ assertValid()

void agxPowerLine::detail::PackingInfo::assertValid ( ) const

◆ begin()

Rotational1DofState** agxPowerLine::detail::PackingInfo::begin ( )

◆ contains() [1/2]

bool agxPowerLine::detail::PackingInfo::contains ( const Rotational1DofState *  dimension) const

◆ contains() [2/2]

bool agxPowerLine::detail::PackingInfo::contains ( const agx::RigidBody *  body) const

◆ end()

Rotational1DofState** agxPowerLine::detail::PackingInfo::end ( )

◆ erase()

void agxPowerLine::detail::PackingInfo::erase ( const Rotational1DofState *  dimension)

◆ getBody()

agx::RigidBody* agxPowerLine::detail::PackingInfo::getBody ( )

◆ getFreeSlot()

agx::UInt8 agxPowerLine::detail::PackingInfo::getFreeSlot ( ) const

◆ getSize()

int agxPowerLine::detail::PackingInfo::getSize ( ) const

◆ isEmpty()

bool agxPowerLine::detail::PackingInfo::isEmpty ( ) const

◆ isFull()

bool agxPowerLine::detail::PackingInfo::isFull ( ) const

◆ newSlot()

void agxPowerLine::detail::PackingInfo::newSlot ( Rotational1DofState *  dimension)

◆ operator[]() [1/2]

Rotational1DofState*& agxPowerLine::detail::PackingInfo::operator[] ( const agx::UInt8  slot)

◆ operator[]() [2/2]

const Rotational1DofState* agxPowerLine::detail::PackingInfo::operator[] ( const agx::UInt8  slot) const

◆ restore()

void agxPowerLine::detail::PackingInfo::restore ( agxStream::InputArchive &  in)

◆ store()

void agxPowerLine::detail::PackingInfo::store ( agxStream::OutputArchive &  out) const

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