|
AGXDynamics
2.31.1.0
|
#include <SerializedFrame.h>
Inheritance diagram for agxData::SerializedFrame:Classes | |
| struct | BinaryHeader |
| struct | BinarySegment |
| struct | JsonHeader |
| struct | XmlHeader |
Public Member Functions | |
| SerializedFrame (const agxData::Frame *frame) | |
| SerializedFrame (SerializedFrame::Component *root) | |
| void | add (agx::UInt64 id) |
| void | add (agxData::EntityRange &instances) |
| void | add (agxData::Array< agxData::EntityPtr > &instances) |
| void | add (agxData::Array< agx::Index > &instances) |
| void | addChild (Node *child) |
| AGX_DECLARE_VECTOR_TYPES (Node) | |
| template<typename T > | |
| T * | as () |
| Subclass casting. More... | |
| template<typename T > | |
| const T * | as () const |
| template<typename T > | |
| T * | asSafe () |
| Safe subclass casting, return nullptr if template type does not match. More... | |
| template<typename T > | |
| const T * | asSafe () const |
| Buffer (const agx::Name &name, agx::Index id, BinaryData *data, const Format *format, size_t numElements, size_t byteOffset) | |
| size_t | capacity () const |
| Component (const agx::Name &name, agx::Index id=agx::InvalidIndex) | |
| CustomBuffer (const agx::Name &name, agx::Index id, const Format *format, size_t numElements) | |
| DataNode (const agx::Name &name, agx::Index id, BinaryData *data, const Format *format, size_t numBytes, size_t offset) | |
| EntityStorage (const agxData::Frame::EntityStorage *storage) | |
| EntityStorage (const agx::Name &name, agx::Index id, EntityModel *model, size_t numElements, size_t capacity) | |
| size_t | fullSize () const |
| virtual size_t | getBinaryHeaderNumBytes () const =0 |
| virtual size_t | getBinaryHeaderNumBytes () const override |
| virtual size_t | getBinaryHeaderNumBytes () const override |
| virtual size_t | getBinaryHeaderNumBytes () const override |
| virtual size_t | getBinaryHeaderNumBytes () const override |
| virtual size_t | getBinaryHeaderNumBytes () const override |
| virtual size_t | getBinaryHeaderNumBytes () const override |
| const BinarySegmentVector & | getBinarySegments () const |
| template<typename T > | |
| T * | getChild (const char *name) |
| template<typename T > | |
| const T * | getChild (const char *name) const |
| const NodeRefVector & | getChildren () const |
| BinaryData * | getData () |
| const BinaryData * | getData () const |
| const Format * | getFormat () const |
| const Format * | getFormat () const |
| const Format * | getFormat () const |
| agx::Index | getId () const |
| const agx::UInt64Vector & | getIdVector () const |
| EntityModel * | getModel () |
| const EntityModel * | getModel () const |
| const agx::Name & | getName () const |
| size_t | getNumBytes () const |
| size_t | getNumElements () const |
| size_t | getNumElements () const |
| size_t | getNumElements () const |
| size_t | getNumElements () const |
| size_t | getOffset () const |
| Component * | getParent () |
| agx::String | getPath () const |
| int | getReferenceCount () const |
| Component * | getRoot () |
| agxData::EntityStorage * | getStorage () |
| size_t | getTotNumBytes () const |
| Type | getType () const |
| Type | getType () const |
| const agx::Name & | getTypeName () const |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| Node (const agx::Name &name, agx::Index id) | |
| PartialBuffer (agxData::Frame::PartialBuffer *buffer) | |
| PartialBuffer (const agx::Name &name, agx::Index id, const Format *format, size_t numElements, size_t fullSize) | |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| void | setId (agx::Index id) |
| void | setType (Type type) |
| StorageBatchEvent (Type type, agxData::EntityStorage *storage, size_t reserve=0) | |
| void | unreference (void *ptr=nullptr) const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unreference_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| Value (const agx::Name &name, agx::Index id, BinaryData *data, const Format *format, size_t offset) | |
| BinaryData * | writeBinaryHeader (ExportNameTable &nameTable) const |
| BinaryData * | writeBinaryHeader () const |
| virtual ByteStream | writeBinaryHeader (ByteStream stream, ExportNameTable &nameTable) |
| void | writeBinaryHeader (BinaryHeader::Node &eNode, ExportNameTable &nameTable) |
| virtual ByteStream | writeBinaryHeader (ByteStream stream, ExportNameTable &nameTable) override |
| template<typename ComponentT > | |
| ByteStream | writeBinaryHeader (ByteStream stream, ExportNameTable &nameTable, ComponentT &eComponent) |
| virtual ByteStream | writeBinaryHeader (ByteStream stream, ExportNameTable &nameTable) override |
| void | writeBinaryHeader (BinaryHeader::DataNode &eNode, ExportNameTable &nameTable) |
| virtual ByteStream | writeBinaryHeader (ByteStream stream, ExportNameTable &nameTable) override |
| virtual ByteStream | writeBinaryHeader (ByteStream stream, ExportNameTable &nameTable) override |
| virtual ByteStream | writeBinaryHeader (ByteStream stream, ExportNameTable &nameTable) override |
| virtual ByteStream | writeBinaryHeader (ByteStream stream, ExportNameTable &nameTable) override |
| void | writeChildren (agx::TiXmlElement *eParent) |
| void | writeDataSegment (std::ostream &binaryFile) |
| virtual void | writeDataSegment (std::ostream &binaryFile, agx::UInt64 baseOffset)=0 |
| virtual void | writeDataSegment (std::ostream &binaryFile, agx::UInt64 baseOffset) override |
| virtual void | writeDataSegment (std::ostream &binaryFile, agx::UInt64 baseOffset) override |
| agx::TiXmlElement * | writeXmlHeader () const |
| virtual agx::TiXmlElement * | writeXmlHeader (agx::TiXmlElement *eParent)=0 |
| virtual agx::TiXmlElement * | writeXmlHeader (agx::TiXmlElement *eParent) override |
| virtual agx::TiXmlElement * | writeXmlHeader (agx::TiXmlElement *eParent) override |
| virtual agx::TiXmlElement * | writeXmlHeader (agx::TiXmlElement *eParent) override |
| virtual agx::TiXmlElement * | writeXmlHeader (agx::TiXmlElement *eParent) override |
| virtual agx::TiXmlElement * | writeXmlHeader (agx::TiXmlElement *eParent) override |
| virtual agx::TiXmlElement * | writeXmlHeader (agx::TiXmlElement *eParent) override |
Static Public Member Functions | |
| static Frame * | createFrame (const Component *root, agx::UInt index, agx::Real timeStamp, agx::Real timeStep) |
| static Frame * | extractFrame (BinaryData *headerSegment, BinaryData *dataSegment) |
| static Frame * | extractFrame (BinaryData *headerSegment, BinaryData *dataSegment, ImportNameTable &nameTable, bool clearNameTableOnKeyFrame=true, FrameReader *frameReader=nullptr) |
| static Frame * | extractFrame (agx::TiXmlElement *eFrame, BinaryData *dataSegment) |
| static void | updateNameTable (BinaryData *headerSegment, ImportNameTable &nameTable) |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Static Public Attributes | |
| static const agx::UInt64 | DATA_SEGMENT_ALIGNMENT = 32 |
Protected Member Functions | |
| virtual | ~SerializedFrame () |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
| void | setParent (Component *parent) |
Static Protected Member Functions | |
| static DeleteHandler * | getDeleteHandler () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More... | |
Protected Attributes | |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
Definition at line 41 of file SerializedFrame.h.
Definition at line 106 of file SerializedFrame.h.
| typedef agx::observer_ptr< const Buffer > agxData::SerializedFrame::BufferConstObserver |
Definition at line 61 of file SerializedFrame.h.
| typedef agx::ref_ptr< const Buffer > agxData::SerializedFrame::BufferConstRef |
Definition at line 61 of file SerializedFrame.h.
Definition at line 61 of file SerializedFrame.h.
Definition at line 61 of file SerializedFrame.h.
| typedef agx::observer_ptr< const Component > agxData::SerializedFrame::ComponentConstObserver |
Definition at line 58 of file SerializedFrame.h.
| typedef agx::ref_ptr< const Component > agxData::SerializedFrame::ComponentConstRef |
Definition at line 58 of file SerializedFrame.h.
Definition at line 58 of file SerializedFrame.h.
Definition at line 58 of file SerializedFrame.h.
Definition at line 62 of file SerializedFrame.h.
| typedef agx::ref_ptr< const CustomBuffer > agxData::SerializedFrame::CustomBufferConstRef |
Definition at line 62 of file SerializedFrame.h.
Definition at line 62 of file SerializedFrame.h.
Definition at line 62 of file SerializedFrame.h.
| typedef agx::observer_ptr< const DataNode > agxData::SerializedFrame::DataNodeConstObserver |
Definition at line 59 of file SerializedFrame.h.
| typedef agx::ref_ptr< const DataNode > agxData::SerializedFrame::DataNodeConstRef |
Definition at line 59 of file SerializedFrame.h.
Definition at line 59 of file SerializedFrame.h.
Definition at line 59 of file SerializedFrame.h.
| typedef agx::observer_ptr< const EntityStorage > agxData::SerializedFrame::EntityStorageConstObserver |
Definition at line 64 of file SerializedFrame.h.
| typedef agx::ref_ptr< const EntityStorage > agxData::SerializedFrame::EntityStorageConstRef |
Definition at line 64 of file SerializedFrame.h.
Definition at line 64 of file SerializedFrame.h.
Definition at line 64 of file SerializedFrame.h.
Definition at line 79 of file SerializedFrame.h.
Definition at line 80 of file SerializedFrame.h.
| typedef agx::observer_ptr< const Node > agxData::SerializedFrame::NodeConstObserver |
Definition at line 55 of file SerializedFrame.h.
| typedef agx::ref_ptr< const Node > agxData::SerializedFrame::NodeConstRef |
Definition at line 55 of file SerializedFrame.h.
Definition at line 55 of file SerializedFrame.h.
| typedef agx::ref_ptr< Node > agxData::SerializedFrame::NodeRef |
Definition at line 55 of file SerializedFrame.h.
| typedef agx::observer_ptr< const PartialBuffer > agxData::SerializedFrame::PartialBufferConstObserver |
Definition at line 63 of file SerializedFrame.h.
| typedef agx::ref_ptr< const PartialBuffer > agxData::SerializedFrame::PartialBufferConstRef |
Definition at line 63 of file SerializedFrame.h.
Definition at line 63 of file SerializedFrame.h.
Definition at line 63 of file SerializedFrame.h.
| typedef agx::observer_ptr< const StorageBatchEvent > agxData::SerializedFrame::StorageBatchEventConstObserver |
Definition at line 66 of file SerializedFrame.h.
Definition at line 66 of file SerializedFrame.h.
Definition at line 66 of file SerializedFrame.h.
Definition at line 66 of file SerializedFrame.h.
| typedef agx::observer_ptr< const Value > agxData::SerializedFrame::ValueConstObserver |
Definition at line 60 of file SerializedFrame.h.
| typedef agx::ref_ptr< const Value > agxData::SerializedFrame::ValueConstRef |
Definition at line 60 of file SerializedFrame.h.
Definition at line 60 of file SerializedFrame.h.
| typedef agx::ref_ptr< Value > agxData::SerializedFrame::ValueRef |
Definition at line 60 of file SerializedFrame.h.
| Enumerator | |
|---|---|
| INVALID | |
| XML_HEADER | |
| JSON_HEADER | |
| BINARY_HEADER | |
Definition at line 44 of file SerializedFrame.h.
| Enumerator | |
|---|---|
| CREATE | |
| DESTROY | |
| PERMUTE | |
| INVALID | |
| VALUE | |
| BUFFER | |
| COMPONENT | |
| CUSTOM_BUFFER | |
| PARTIAL_BUFFER | |
| ENTITY_STORAGE | |
Definition at line 169 of file SerializedFrame.h.
| Enumerator | |
|---|---|
| CREATE | |
| DESTROY | |
| PERMUTE | |
| INVALID | |
| VALUE | |
| BUFFER | |
| COMPONENT | |
| CUSTOM_BUFFER | |
| PARTIAL_BUFFER | |
| ENTITY_STORAGE | |
Definition at line 425 of file SerializedFrame.h.
| agxData::SerializedFrame::SerializedFrame | ( | const agxData::Frame * | frame | ) |
| agxData::SerializedFrame::SerializedFrame | ( | SerializedFrame::Component * | root | ) |
|
protectedvirtual |
| void agxData::SerializedFrame::add | ( | agx::UInt64 | id | ) |
| void agxData::SerializedFrame::add | ( | agxData::EntityRange & | instances | ) |
| void agxData::SerializedFrame::add | ( | agxData::Array< agxData::EntityPtr > & | instances | ) |
| void agxData::SerializedFrame::add | ( | agxData::Array< agx::Index > & | instances | ) |
| agxData::SerializedFrame::AGX_DECLARE_VECTOR_TYPES | ( | Node | ) |
|
protectedinherited |
|
inherited |
Subclass casting.
Template type must match actual type, dynamic_cast assertion will fail otherwise.
Referenced by agx::InternalData::get(), agxVehicle::Track::getNode(), and agx::InternalData::getOrCreate().
|
inherited |
|
inherited |
Safe subclass casting, return nullptr if template type does not match.
Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().
|
inherited |
| agxData::SerializedFrame::Buffer | ( | const agx::Name & | name, |
| agx::Index | id, | ||
| BinaryData * | data, | ||
| const Format * | format, | ||
| size_t | numElements, | ||
| size_t | byteOffset | ||
| ) |
| size_t agxData::SerializedFrame::capacity | ( | ) | const |
| agxData::SerializedFrame::Component | ( | const agx::Name & | name, |
| agx::Index | id = agx::InvalidIndex |
||
| ) |
|
static |
| agxData::SerializedFrame::CustomBuffer | ( | const agx::Name & | name, |
| agx::Index | id, | ||
| const Format * | format, | ||
| size_t | numElements | ||
| ) |
| agxData::SerializedFrame::DataNode | ( | const agx::Name & | name, |
| agx::Index | id, | ||
| BinaryData * | data, | ||
| const Format * | format, | ||
| size_t | numBytes, | ||
| size_t | offset | ||
| ) |
|
protectedinherited |
| agxData::SerializedFrame::EntityStorage | ( | const agxData::Frame::EntityStorage * | storage | ) |
| agxData::SerializedFrame::EntityStorage | ( | const agx::Name & | name, |
| agx::Index | id, | ||
| EntityModel * | model, | ||
| size_t | numElements, | ||
| size_t | capacity | ||
| ) |
|
static |
|
static |
|
static |
| size_t agxData::SerializedFrame::fullSize | ( | ) | const |
|
pure virtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
| const BinarySegmentVector& agxData::SerializedFrame::getBinarySegments | ( | ) | const |
| T* agxData::SerializedFrame::getChild | ( | const char * | name | ) |
| const T* agxData::SerializedFrame::getChild | ( | const char * | name | ) | const |
| const NodeRefVector& agxData::SerializedFrame::getChildren | ( | ) | const |
| BinaryData* agxData::SerializedFrame::getData | ( | ) |
| const BinaryData* agxData::SerializedFrame::getData | ( | ) | const |
|
staticprotectedinherited |
| const Format* agxData::SerializedFrame::getFormat | ( | ) | const |
| const Format* agxData::SerializedFrame::getFormat | ( | ) | const |
| const Format* agxData::SerializedFrame::getFormat | ( | ) | const |
| agx::Index agxData::SerializedFrame::getId | ( | ) | const |
| const agx::UInt64Vector& agxData::SerializedFrame::getIdVector | ( | ) | const |
| EntityModel* agxData::SerializedFrame::getModel | ( | ) |
| const EntityModel* agxData::SerializedFrame::getModel | ( | ) | const |
| const agx::Name& agxData::SerializedFrame::getName | ( | ) | const |
| size_t agxData::SerializedFrame::getNumBytes | ( | ) | const |
| size_t agxData::SerializedFrame::getNumElements | ( | ) | const |
| size_t agxData::SerializedFrame::getNumElements | ( | ) | const |
| size_t agxData::SerializedFrame::getNumElements | ( | ) | const |
| size_t agxData::SerializedFrame::getNumElements | ( | ) | const |
| size_t agxData::SerializedFrame::getOffset | ( | ) | const |
| Component* agxData::SerializedFrame::getParent | ( | ) |
| agx::String agxData::SerializedFrame::getPath | ( | ) | const |
|
inherited |
| Component* agxData::SerializedFrame::getRoot | ( | ) |
| agxData::EntityStorage* agxData::SerializedFrame::getStorage | ( | ) |
| size_t agxData::SerializedFrame::getTotNumBytes | ( | ) | const |
| Type agxData::SerializedFrame::getType | ( | ) | const |
| Type agxData::SerializedFrame::getType | ( | ) | const |
| const agx::Name& agxData::SerializedFrame::getTypeName | ( | ) | const |
|
inherited |
Subclass test.
Referenced by agx::Object::getAutoScopedResource(), agxData::Buffer::getElement(), and agx::Object::getResource().
| agxData::SerializedFrame::Node | ( | const agx::Name & | name, |
| agx::Index | id | ||
| ) |
| agxData::SerializedFrame::PartialBuffer | ( | agxData::Frame::PartialBuffer * | buffer | ) |
| agxData::SerializedFrame::PartialBuffer | ( | const agx::Name & | name, |
| agx::Index | id, | ||
| const Format * | format, | ||
| size_t | numElements, | ||
| size_t | fullSize | ||
| ) |
Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
This method should be used with care, always balanced with the same number of calls to unreference.
Referenced by agxData::Val< UInt >::Val().
|
staticprotectedinherited |
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
| void agxData::SerializedFrame::setId | ( | agx::Index | id | ) |
| agxData::SerializedFrame::StorageBatchEvent | ( | Type | type, |
| agxData::EntityStorage * | storage, | ||
| size_t | reserve = 0 |
||
| ) |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.
This method should be used with care, always balanced with the same number of calls to reference.
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be responsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.
|
static |
|
staticinherited |
| agxData::SerializedFrame::Value | ( | const agx::Name & | name, |
| agx::Index | id, | ||
| BinaryData * | data, | ||
| const Format * | format, | ||
| size_t | offset | ||
| ) |
| BinaryData* agxData::SerializedFrame::writeBinaryHeader | ( | ExportNameTable & | nameTable | ) | const |
| BinaryData* agxData::SerializedFrame::writeBinaryHeader | ( | ) | const |
|
virtual |
| void agxData::SerializedFrame::writeBinaryHeader | ( | BinaryHeader::Node & | eNode, |
| ExportNameTable & | nameTable | ||
| ) |
|
overridevirtual |
| ByteStream agxData::SerializedFrame::writeBinaryHeader | ( | ByteStream | stream, |
| ExportNameTable & | nameTable, | ||
| ComponentT & | eComponent | ||
| ) |
|
overridevirtual |
| void agxData::SerializedFrame::writeBinaryHeader | ( | BinaryHeader::DataNode & | eNode, |
| ExportNameTable & | nameTable | ||
| ) |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
| void agxData::SerializedFrame::writeChildren | ( | agx::TiXmlElement * | eParent | ) |
| void agxData::SerializedFrame::writeDataSegment | ( | std::ostream & | binaryFile | ) |
|
pure virtual |
|
overridevirtual |
|
overridevirtual |
| agx::TiXmlElement* agxData::SerializedFrame::writeXmlHeader | ( | ) | const |
|
pure virtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
static |
Definition at line 52 of file SerializedFrame.h.
|
mutableprotectedinherited |
Definition at line 240 of file Referenced.h.
|
mutableprotectedinherited |
Definition at line 239 of file Referenced.h.
|
mutableprotectedinherited |
Definition at line 241 of file Referenced.h.