17 #ifndef AGXPOWERLINE_DETAIL_PACKING_INFO
18 #define AGXPOWERLINE_DETAIL_PACKING_INFO
39 template <
typename DimensionType>
class DimensionState1Dof;
Templated one dimensional dimension state.
Information about which DimensionState1Dof is using which slot in a RigidBody.
void store(agxStream::OutputArchive &out) const
bool contains(const agx::RigidBody *body) const
PackingInfo()
A default-constructed PackingInfo is empty, i.e., it tracks no PhysicalDimension.
Rotational1DofState ** begin()
const Rotational1DofState * operator[](const agx::UInt8 slot) const
void newSlot(Rotational1DofState *dimension)
agx::RigidBody * getBody()
bool contains(const Rotational1DofState *dimension) const
void restore(agxStream::InputArchive &in)
PackingInfo(Rotational1DofState *dimension)
A packing info tracking the given dimension only.
Rotational1DofState *& operator[](const agx::UInt8 slot)
Rotational1DofState ** end()
void erase(const Rotational1DofState *dimension)
agx::UInt8 getFreeSlot() const
Class for writing serialized data in binary format to a stream.
The rigid body class, combining a geometric model and a frame of reference.
DimensionState1Dof< Rotational > Rotational1DofState
agxPowerLine contains a collection of connected components that transport power across a system.
This namespace contain classes for streaming classes into archives, ASCII, binary for storage (serial...
InputRef< T > in(const char *name, T &obj)
Create an object with a name and a reference to the object that should be restored (usually a pointer...
OutputRef< Serializable > out(const char *name, const Serializable *obj)
Return an object that contain the name and the object that should be serialized to an archive.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.