21 #ifndef GENERATED_AGX_PHYSICS_SOLVEGROUP_H_PLUGIN
22 #define GENERATED_AGX_PHYSICS_SOLVEGROUP_H_PLUGIN
24 #define AGX_ENTITY_WRAPPER 1
28 # pragma warning(push)
30 # pragma warning( disable : 4505 )
32 # pragma warning( disable : 4251 )
34 # pragma warning( disable : 4355 )
36 # pragma warning( disable: 4714 )
49 namespace agx {
class SolveModel; }
51 namespace agx {
namespace Physics {
class SolveIslandPtr; }}
58 class SolveGroupModel;
61 class SolveGroupInstance;
62 class SolveGroupSemantics;
87 virtual void shutdownCleanup()
override;
98 virtual void configure(agx::TiXmlElement* eEntity)
override;
99 virtual void initAttributeAccessors()
override;
106 #ifndef AGX_PHYSICS_SOLVEGROUP_DATA_SET_OVERRIDE
107 #define AGX_PHYSICS_SOLVEGROUP_DATA_SET
108 class AGXPHYSICS_EXPORT SolveGroupData :
public agx::Physics::InteractionGroupData
111 SolveGroupInstance operator[] (
size_t index);
120 typedef agx::SolveModel* solveModelType;
127 virtual ~SolveGroupData() {}
128 virtual void setNumElements(
agx::Index numElements)
override;
131 SolveGroupData& operator= (
const SolveGroupData&) {
return *
this; }
139 class
AGXPHYSICS_EXPORT SolveGroupSemantics : public agx::Physics::InteractionGroupSemantics
145 agx::SolveModel*
const& getSolveModel()
const;
151 void setSolveModel(agx::SolveModel*
const& value);
155 friend class SolveGroupPtr;
156 friend class SolveGroupInstance;
157 SolveGroupSemantics();
185 SolveGroupData* getData();
186 const SolveGroupData* getData()
const;
201 #ifdef AGX_GENERATED_TOLUA_WRAPPER
203 inline agx::SolveModel*
const& getSolveModel()
const {
return (*this)->getSolveModel(); }
207 inline void setSolveModel(agx::SolveModel*
const& value) { (*this)->setSolveModel(value); }
215 class
AGXPHYSICS_EXPORT SolveGroupInstance : public agx::Physics::InteractionGroupInstance
218 SolveGroupInstance();
219 SolveGroupInstance(SolveGroupData* data,
agx::Index index);
224 SolveGroupData* getData();
225 const SolveGroupData* getData()
const;
234 agx::SolveModel*& solveModel();
236 agx::SolveModel*
const& solveModel()
const;
252 inline SolveGroupInstance agx::Physics::SolveGroupData::operator[] (
size_t index) {
return SolveGroupInstance(
this, (
agx::Index)index); }
259 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
266 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
274 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
283 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
290 AGX_FORCE_INLINE SolveGroupSemantics* SolveGroupPtr::operator->() {
return (SolveGroupSemantics* )
this; }
291 AGX_FORCE_INLINE const SolveGroupSemantics* SolveGroupPtr::operator->()
const {
return (
const SolveGroupSemantics* )
this; }
298 AGX_FORCE_INLINE agx::SolveModel*& SolveGroupPtr::solveModel() { verifyIndex();
return getData()->solveModel[calculateIndex()]; }
299 AGX_FORCE_INLINE agx::SolveModel*
const& SolveGroupPtr::solveModel()
const { verifyIndex();
return getData()->solveModel[calculateIndex()]; }
303 AGX_FORCE_INLINE SolveGroupInstance::SolveGroupInstance(SolveGroupData* data,
agx::Index index) : agx::Physics::InteractionGroupInstance(data, index) {}
308 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
315 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
326 AGX_FORCE_INLINE agx::SolveModel*& SolveGroupInstance::solveModel() { verifyIndex();
return getData()->solveModel[getIndex()]; }
327 AGX_FORCE_INLINE agx::SolveModel*
const& SolveGroupInstance::solveModel()
const { verifyIndex();
return getData()->solveModel[getIndex()]; }
337 AGX_TYPE_BINDING(agx::Physics::SolveGroupInstance, "Physics.SolveGroupInstance")
340 # pragma warning(pop)
343 #undef AGX_ENTITY_WRAPPER
344 #undef AGX_ENTITY_NAMESPACE
agxData::EntityData * getData()
SolveGroupModel ModelType
agxData::EntityInstance instance()
Data storage for a collection of entity instances of a specified EntityModel.
#define agxAssertN(expr, format,...)
agxData::EntityData * getData()
#define AGX_TYPE_BINDING(_Type, _Name)
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
static agxData::PointerAttributeT< agx::SolveModel * > * solveModelAttribute
bool isInstanceOf(agxData::EntityModel *model) const
#define AGXPHYSICS_EXPORT
Entity instance provides access to a single instance in an EntityStorage.
Accessor to a entity instance stored in a EntityStorage, to allow SOA (structure of arrays) data to b...
#define AGX_DECLARE_POINTER_TYPES(type)
agx::String fullPath() const
Abstract description of the data attributes for the Physics.InteractionGroup entity.
AGXPHYSICS_EXPORT SolveGroupPtr()
Type-specific Array used for fast access into the data held by a Buffer.
Pointer to a entity instance of type Physics.SolveIsland.
Pointer to a entity instance of type Physics.SolveGroup.
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
Abstract description of the data attributes for the Physics.SolveGroup entity.
static SolveGroupModel * instance()
SolveGroupInstance InstanceType
static agxData::ScalarAttributeT< agx::Physics::SolveIslandPtr > * islandAttribute
Pointer to a entity instance of type Physics.InteractionGroup.
bool isInstanceOf(agxData::EntityModel *model) const
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()