AGXDynamics  2.31.1.0
agxNet::FramePacket Class Referenceabstract

#include <FramePacket.h>

+ Inheritance diagram for agxNet::FramePacket:

Public Types

typedef agx::Vector< BinarySegment > BinarySegmentVector
 
typedef agx::observer_ptr< const Buffer > BufferConstObserver
 
typedef agx::ref_ptr< const Buffer > BufferConstRef
 
typedef agx::observer_ptr< Buffer > BufferObserver
 
typedef agx::ref_ptr< Buffer > BufferRef
 
typedef agx::observer_ptr< const Component > ComponentConstObserver
 
typedef agx::ref_ptr< const Component > ComponentConstRef
 
typedef agx::observer_ptr< Component > ComponentObserver
 
typedef agx::ref_ptr< Component > ComponentRef
 
typedef agx::observer_ptr< const CustomBuffer > CustomBufferConstObserver
 
typedef agx::ref_ptr< const CustomBuffer > CustomBufferConstRef
 
typedef agx::observer_ptr< CustomBuffer > CustomBufferObserver
 
typedef agx::ref_ptr< CustomBuffer > CustomBufferRef
 
typedef agx::observer_ptr< const DataNode > DataNodeConstObserver
 
typedef agx::ref_ptr< const DataNode > DataNodeConstRef
 
typedef agx::observer_ptr< DataNode > DataNodeObserver
 
typedef agx::ref_ptr< DataNode > DataNodeRef
 
typedef agx::observer_ptr< const EntityStorage > EntityStorageConstObserver
 
typedef agx::ref_ptr< const EntityStorage > EntityStorageConstRef
 
typedef agx::observer_ptr< EntityStorage > EntityStorageObserver
 
typedef agx::ref_ptr< EntityStorage > EntityStorageRef
 
typedef agx::HashVector< agx::Name, agx::UInt32 > ExportNameTable
 
enum  HeaderFormat { INVALID =-1, XML_HEADER, JSON_HEADER, BINARY_HEADER }
 
typedef agx::HashVector< agx::UInt32, agx::Name > ImportNameTable
 
typedef agx::observer_ptr< const Node > NodeConstObserver
 
typedef agx::ref_ptr< const Node > NodeConstRef
 
typedef agx::observer_ptr< Node > NodeObserver
 
typedef agx::ref_ptr< Node > NodeRef
 
typedef agx::observer_ptr< const PartialBuffer > PartialBufferConstObserver
 
typedef agx::ref_ptr< const PartialBuffer > PartialBufferConstRef
 
typedef agx::observer_ptr< PartialBuffer > PartialBufferObserver
 
typedef agx::ref_ptr< PartialBuffer > PartialBufferRef
 
typedef agx::observer_ptr< const StorageBatchEvent > StorageBatchEventConstObserver
 
typedef agx::ref_ptr< const StorageBatchEvent > StorageBatchEventConstRef
 
typedef agx::observer_ptr< StorageBatchEvent > StorageBatchEventObserver
 
typedef agx::ref_ptr< StorageBatchEvent > StorageBatchEventRef
 
enum  Type {
  CREATE, DESTROY, PERMUTE, INVALID =-1,
  VALUE, BUFFER, COMPONENT, CUSTOM_BUFFER,
  PARTIAL_BUFFER, ENTITY_STORAGE
}
 
enum  Type {
  CREATE, DESTROY, PERMUTE, INVALID =-1,
  VALUE, BUFFER, COMPONENT, CUSTOM_BUFFER,
  PARTIAL_BUFFER, ENTITY_STORAGE
}
 
typedef agx::observer_ptr< const Value > ValueConstObserver
 
typedef agx::ref_ptr< const Value > ValueConstRef
 
typedef agx::observer_ptr< Value > ValueObserver
 
typedef agx::ref_ptr< Value > ValueRef
 

Public Member Functions

 FramePacket (const agxData::Frame *frame)
 
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
 
agx::UInt32 getBinarySegmentOffset () const
 
const BinarySegmentVector & getBinarySegments () const
 
agx::UInt32 getBinarySegmentSize () 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
 
const agxJson::Value & getHeader () const
 
const agx::String & getHeaderString () 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
 
agx::UInt32 getPostHeaderPaddingSize () const
 
const StructuredMessage::PreHeader & getPreHeader () const
 
int getReferenceCount () const
 
Component * getRoot ()
 
agxData::EntityStorage * getStorage ()
 
size_t getTotNumBytes () const
 
Type getType () const
 
Type getType () const
 
const agx::Name & getTypeName () const
 
const agx::String & getUri () 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 agxData::Frame * parseFrame (agx::UInt8 *data, size_t size)
 
static agxData::Frame * parseFrame (const agxJson::Value &eFrame, agxData::BinaryData *binaryData)
 
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 ~FramePacket ()
 
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
 

Detailed Description

Definition at line 128 of file FramePacket.h.

Member Typedef Documentation

◆ BinarySegmentVector

◆ BufferConstObserver

Definition at line 61 of file SerializedFrame.h.

◆ BufferConstRef

Definition at line 61 of file SerializedFrame.h.

◆ BufferObserver

Definition at line 61 of file SerializedFrame.h.

◆ BufferRef

Definition at line 61 of file SerializedFrame.h.

◆ ComponentConstObserver

◆ ComponentConstRef

Definition at line 58 of file SerializedFrame.h.

◆ ComponentObserver

◆ ComponentRef

Definition at line 58 of file SerializedFrame.h.

◆ CustomBufferConstObserver

◆ CustomBufferConstRef

Definition at line 62 of file SerializedFrame.h.

◆ CustomBufferObserver

◆ CustomBufferRef

◆ DataNodeConstObserver

Definition at line 59 of file SerializedFrame.h.

◆ DataNodeConstRef

Definition at line 59 of file SerializedFrame.h.

◆ DataNodeObserver

◆ DataNodeRef

Definition at line 59 of file SerializedFrame.h.

◆ EntityStorageConstObserver

◆ EntityStorageConstRef

Definition at line 64 of file SerializedFrame.h.

◆ EntityStorageObserver

◆ EntityStorageRef

◆ ExportNameTable

◆ ImportNameTable

◆ NodeConstObserver

Definition at line 55 of file SerializedFrame.h.

◆ NodeConstRef

Definition at line 55 of file SerializedFrame.h.

◆ NodeObserver

Definition at line 55 of file SerializedFrame.h.

◆ NodeRef

Definition at line 55 of file SerializedFrame.h.

◆ PartialBufferConstObserver

◆ PartialBufferConstRef

Definition at line 63 of file SerializedFrame.h.

◆ PartialBufferObserver

◆ PartialBufferRef

◆ StorageBatchEventConstObserver

◆ StorageBatchEventConstRef

◆ StorageBatchEventObserver

◆ StorageBatchEventRef

◆ ValueConstObserver

Definition at line 60 of file SerializedFrame.h.

◆ ValueConstRef

Definition at line 60 of file SerializedFrame.h.

◆ ValueObserver

Definition at line 60 of file SerializedFrame.h.

◆ ValueRef

Definition at line 60 of file SerializedFrame.h.

Member Enumeration Documentation

◆ HeaderFormat

Enumerator
INVALID 
XML_HEADER 
JSON_HEADER 
BINARY_HEADER 

Definition at line 44 of file SerializedFrame.h.

◆ Type [1/2]

Enumerator
CREATE 
DESTROY 
PERMUTE 
INVALID 
VALUE 
BUFFER 
COMPONENT 
CUSTOM_BUFFER 
PARTIAL_BUFFER 
ENTITY_STORAGE 

Definition at line 169 of file SerializedFrame.h.

◆ Type [2/2]

Enumerator
CREATE 
DESTROY 
PERMUTE 
INVALID 
VALUE 
BUFFER 
COMPONENT 
CUSTOM_BUFFER 
PARTIAL_BUFFER 
ENTITY_STORAGE 

Definition at line 425 of file SerializedFrame.h.

Constructor & Destructor Documentation

◆ FramePacket()

agxNet::FramePacket::FramePacket ( const agxData::Frame *  frame)

◆ ~FramePacket()

Member Function Documentation

◆ add() [1/4]

void agxData::SerializedFrame::add ( agx::UInt64  id)
inherited

◆ add() [2/4]

void agxData::SerializedFrame::add ( agxData::EntityRange &  instances)
inherited

◆ add() [3/4]

void agxData::SerializedFrame::add ( agxData::Array< agxData::EntityPtr > &  instances)
inherited

◆ add() [4/4]

void agxData::SerializedFrame::add ( agxData::Array< agx::Index > &  instances)
inherited

◆ addChild()

void agxData::SerializedFrame::addChild ( Node *  child)
inherited

◆ AGX_DECLARE_VECTOR_TYPES()

agxData::SerializedFrame::AGX_DECLARE_VECTOR_TYPES ( Node  )
inherited

◆ allocateObserverVector()

void agx::Referenced::allocateObserverVector ( ) const
protectedinherited

◆ as() [1/2]

template<typename T >
T* agx::Referenced::as ( )
inherited

Subclass casting.

Template type must match actual type, dynamic_cast assertion will fail otherwise.

Referenced by agx::InternalData::get(), agxVehicle::Track::getNode(), agx::InternalData::getOrCreate(), and agx::InternalData::hasData().

◆ as() [2/2]

template<typename T >
const T* agx::Referenced::as ( ) const
inherited

◆ asSafe() [1/2]

template<typename T >
T* agx::Referenced::asSafe ( )
inherited

Safe subclass casting, return nullptr if template type does not match.

Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().

◆ asSafe() [2/2]

template<typename T >
const T* agx::Referenced::asSafe ( ) const
inherited

◆ Buffer()

agxData::SerializedFrame::Buffer ( const agx::Name &  name,
agx::Index  id,
BinaryData *  data,
const Format *  format,
size_t  numElements,
size_t  byteOffset 
)
inherited

Referenced by ~FramePacket().

◆ capacity()

size_t agxData::SerializedFrame::capacity ( ) const
inherited

◆ Component()

agxData::SerializedFrame::Component ( const agx::Name &  name,
agx::Index  id = agx::InvalidIndex 
)
inherited

◆ createFrame()

static Frame* agxData::SerializedFrame::createFrame ( const Component *  root,
agx::UInt  index,
agx::Real  timeStamp,
agx::Real  timeStep 
)
staticinherited

◆ CustomBuffer()

agxData::SerializedFrame::CustomBuffer ( const agx::Name &  name,
agx::Index  id,
const Format *  format,
size_t  numElements 
)
inherited

Referenced by ~FramePacket().

◆ DataNode()

agxData::SerializedFrame::DataNode ( const agx::Name &  name,
agx::Index  id,
BinaryData *  data,
const Format *  format,
size_t  numBytes,
size_t  offset 
)
inherited

◆ deleteUsingDeleteHandler()

void agx::Referenced::deleteUsingDeleteHandler ( ) const
protectedinherited

◆ EntityStorage() [1/2]

agxData::SerializedFrame::EntityStorage ( const agxData::Frame::EntityStorage *  storage)
inherited

Referenced by ~FramePacket().

◆ EntityStorage() [2/2]

agxData::SerializedFrame::EntityStorage ( const agx::Name &  name,
agx::Index  id,
EntityModel *  model,
size_t  numElements,
size_t  capacity 
)
inherited

◆ extractFrame() [1/3]

static Frame* agxData::SerializedFrame::extractFrame ( BinaryData *  headerSegment,
BinaryData *  dataSegment 
)
staticinherited

◆ extractFrame() [2/3]

static Frame* agxData::SerializedFrame::extractFrame ( BinaryData *  headerSegment,
BinaryData *  dataSegment,
ImportNameTable &  nameTable,
bool  clearNameTableOnKeyFrame = true,
FrameReader *  frameReader = nullptr 
)
staticinherited

◆ extractFrame() [3/3]

static Frame* agxData::SerializedFrame::extractFrame ( agx::TiXmlElement *  eFrame,
BinaryData *  dataSegment 
)
staticinherited

◆ fullSize()

size_t agxData::SerializedFrame::fullSize ( ) const
inherited

◆ getBinaryHeaderNumBytes() [1/7]

virtual size_t agxData::SerializedFrame::getBinaryHeaderNumBytes ( ) const
pure virtualinherited

◆ getBinaryHeaderNumBytes() [2/7]

virtual size_t agxData::SerializedFrame::getBinaryHeaderNumBytes ( ) const
overridevirtualinherited

◆ getBinaryHeaderNumBytes() [3/7]

virtual size_t agxData::SerializedFrame::getBinaryHeaderNumBytes ( ) const
overridevirtualinherited

◆ getBinaryHeaderNumBytes() [4/7]

virtual size_t agxData::SerializedFrame::getBinaryHeaderNumBytes ( ) const
overridevirtualinherited

◆ getBinaryHeaderNumBytes() [5/7]

virtual size_t agxData::SerializedFrame::getBinaryHeaderNumBytes ( ) const
overridevirtualinherited

◆ getBinaryHeaderNumBytes() [6/7]

virtual size_t agxData::SerializedFrame::getBinaryHeaderNumBytes ( ) const
overridevirtualinherited

◆ getBinaryHeaderNumBytes() [7/7]

virtual size_t agxData::SerializedFrame::getBinaryHeaderNumBytes ( ) const
overridevirtualinherited

◆ getBinarySegmentOffset()

agx::UInt32 agxNet::FramePacket::getBinarySegmentOffset ( ) const
Returns
The offset to the binary segment

Definition at line 197 of file FramePacket.h.

◆ getBinarySegments()

const BinarySegmentVector& agxData::SerializedFrame::getBinarySegments ( ) const
inherited

◆ getBinarySegmentSize()

agx::UInt32 agxNet::FramePacket::getBinarySegmentSize ( ) const
Returns
The total size in bytes of the binary segment, including buffer padding but not post-header padding.

Definition at line 198 of file FramePacket.h.

◆ getChild() [1/2]

template<typename T >
T* agxData::SerializedFrame::getChild ( const char *  name)
inherited

◆ getChild() [2/2]

template<typename T >
const T* agxData::SerializedFrame::getChild ( const char *  name) const
inherited

◆ getChildren()

const NodeRefVector& agxData::SerializedFrame::getChildren ( ) const
inherited

◆ getData() [1/2]

BinaryData* agxData::SerializedFrame::getData ( )
inherited

◆ getData() [2/2]

const BinaryData* agxData::SerializedFrame::getData ( ) const
inherited

◆ getDeleteHandler()

static DeleteHandler* agx::Referenced::getDeleteHandler ( )
staticprotectedinherited
Returns
a DeleteHandler.

◆ getFormat() [1/3]

const Format* agxData::SerializedFrame::getFormat ( ) const
inherited

◆ getFormat() [2/3]

const Format* agxData::SerializedFrame::getFormat ( ) const
inherited

◆ getFormat() [3/3]

const Format* agxData::SerializedFrame::getFormat ( ) const
inherited

◆ getHeader()

const agxJson::Value & agxNet::FramePacket::getHeader ( ) const

Definition at line 201 of file FramePacket.h.

◆ getHeaderString()

const agx::String & agxNet::FramePacket::getHeaderString ( ) const

Definition at line 202 of file FramePacket.h.

◆ getId()

agx::Index agxData::SerializedFrame::getId ( ) const
inherited

◆ getIdVector()

const agx::UInt64Vector& agxData::SerializedFrame::getIdVector ( ) const
inherited

◆ getModel() [1/2]

EntityModel* agxData::SerializedFrame::getModel ( )
inherited

◆ getModel() [2/2]

const EntityModel* agxData::SerializedFrame::getModel ( ) const
inherited

◆ getName()

const agx::Name& agxData::SerializedFrame::getName ( ) const
inherited

◆ getNumBytes()

size_t agxData::SerializedFrame::getNumBytes ( ) const
inherited

◆ getNumElements() [1/4]

size_t agxData::SerializedFrame::getNumElements ( ) const
inherited

◆ getNumElements() [2/4]

size_t agxData::SerializedFrame::getNumElements ( ) const
inherited

◆ getNumElements() [3/4]

size_t agxData::SerializedFrame::getNumElements ( ) const
inherited

◆ getNumElements() [4/4]

size_t agxData::SerializedFrame::getNumElements ( ) const
inherited

◆ getOffset()

size_t agxData::SerializedFrame::getOffset ( ) const
inherited

◆ getParent()

Component* agxData::SerializedFrame::getParent ( )
inherited

◆ getPath()

agx::String agxData::SerializedFrame::getPath ( ) const
inherited

◆ getPostHeaderPaddingSize()

agx::UInt32 agxNet::FramePacket::getPostHeaderPaddingSize ( ) const
Returns
The size in bytes of the padding between the header and the buffer segment.

Definition at line 203 of file FramePacket.h.

◆ getPreHeader()

const StructuredMessage::PreHeader & agxNet::FramePacket::getPreHeader ( ) const
Returns
The preheader

Definition at line 196 of file FramePacket.h.

◆ getReferenceCount()

int agx::Referenced::getReferenceCount ( ) const
inherited
Returns
the number pointers currently referencing this object.

◆ getRoot()

Component* agxData::SerializedFrame::getRoot ( )
inherited

◆ getStorage()

agxData::EntityStorage* agxData::SerializedFrame::getStorage ( )
inherited

◆ getTotNumBytes()

size_t agxData::SerializedFrame::getTotNumBytes ( ) const
inherited

◆ getType() [1/2]

Type agxData::SerializedFrame::getType ( ) const
inherited

◆ getType() [2/2]

Type agxData::SerializedFrame::getType ( ) const
inherited

◆ getTypeName()

const agx::Name& agxData::SerializedFrame::getTypeName ( ) const
inherited

◆ getUri()

const agx::String & agxNet::FramePacket::getUri ( ) const

Definition at line 200 of file FramePacket.h.

◆ is()

template<typename T >
bool agx::Referenced::is ( ) const
inherited

◆ Node()

agxData::SerializedFrame::Node ( const agx::Name &  name,
agx::Index  id 
)
inherited

Referenced by ~FramePacket().

◆ parseFrame() [1/2]

static agxData::Frame* agxNet::FramePacket::parseFrame ( agx::UInt8 *  data,
size_t  size 
)
static

◆ parseFrame() [2/2]

static agxData::Frame* agxNet::FramePacket::parseFrame ( const agxJson::Value &  eFrame,
agxData::BinaryData *  binaryData 
)
static

◆ PartialBuffer() [1/2]

agxData::SerializedFrame::PartialBuffer ( agxData::Frame::PartialBuffer *  buffer)
inherited

Referenced by ~FramePacket().

◆ PartialBuffer() [2/2]

agxData::SerializedFrame::PartialBuffer ( const agx::Name &  name,
agx::Index  id,
const Format *  format,
size_t  numElements,
size_t  fullSize 
)
inherited

◆ reference()

void agx::Referenced::reference ( void *  ptr = nullptr) const
inherited

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.

◆ setDeleteHandler()

static void agx::Referenced::setDeleteHandler ( DeleteHandler *  handler)
staticprotectedinherited

Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.

◆ setId()

void agxData::SerializedFrame::setId ( agx::Index  id)
inherited

◆ setParent()

void agxData::SerializedFrame::setParent ( Component *  parent)
protectedinherited

◆ setType()

void agxData::SerializedFrame::setType ( Type  type)
inherited

◆ StorageBatchEvent()

agxData::SerializedFrame::StorageBatchEvent ( Type  type,
agxData::EntityStorage *  storage,
size_t  reserve = 0 
)
inherited

◆ unreference()

void agx::Referenced::unreference ( void *  ptr = nullptr) const
inherited

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.

Referenced by agxData::EntityRef< ContactMaterialPtr >::~EntityRef().

◆ unreference_nodelete()

void agx::Referenced::unreference_nodelete ( ) const
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.

◆ updateNameTable()

static void agxData::SerializedFrame::updateNameTable ( BinaryData *  headerSegment,
ImportNameTable &  nameTable 
)
staticinherited

◆ ValidateCast()

template<typename T >
static bool agx::Referenced::ValidateCast ( const Referenced *  object)
staticinherited

◆ Value()

agxData::SerializedFrame::Value ( const agx::Name &  name,
agx::Index  id,
BinaryData *  data,
const Format *  format,
size_t  offset 
)
inherited

Referenced by ~FramePacket().

◆ writeBinaryHeader() [1/12]

BinaryData* agxData::SerializedFrame::writeBinaryHeader ( ExportNameTable &  nameTable) const
inherited

◆ writeBinaryHeader() [2/12]

BinaryData* agxData::SerializedFrame::writeBinaryHeader ( ) const
inherited

◆ writeBinaryHeader() [3/12]

virtual ByteStream agxData::SerializedFrame::writeBinaryHeader ( ByteStream  stream,
ExportNameTable &  nameTable 
)
virtualinherited

◆ writeBinaryHeader() [4/12]

void agxData::SerializedFrame::writeBinaryHeader ( BinaryHeader::Node &  eNode,
ExportNameTable &  nameTable 
)
inherited

◆ writeBinaryHeader() [5/12]

virtual ByteStream agxData::SerializedFrame::writeBinaryHeader ( ByteStream  stream,
ExportNameTable &  nameTable 
)
overridevirtualinherited

◆ writeBinaryHeader() [6/12]

template<typename ComponentT >
ByteStream agxData::SerializedFrame::writeBinaryHeader ( ByteStream  stream,
ExportNameTable &  nameTable,
ComponentT &  eComponent 
)
inherited

◆ writeBinaryHeader() [7/12]

virtual ByteStream agxData::SerializedFrame::writeBinaryHeader ( ByteStream  stream,
ExportNameTable &  nameTable 
)
overridevirtualinherited

◆ writeBinaryHeader() [8/12]

void agxData::SerializedFrame::writeBinaryHeader ( BinaryHeader::DataNode &  eNode,
ExportNameTable &  nameTable 
)
inherited

◆ writeBinaryHeader() [9/12]

virtual ByteStream agxData::SerializedFrame::writeBinaryHeader ( ByteStream  stream,
ExportNameTable &  nameTable 
)
overridevirtualinherited

◆ writeBinaryHeader() [10/12]

virtual ByteStream agxData::SerializedFrame::writeBinaryHeader ( ByteStream  stream,
ExportNameTable &  nameTable 
)
overridevirtualinherited

◆ writeBinaryHeader() [11/12]

virtual ByteStream agxData::SerializedFrame::writeBinaryHeader ( ByteStream  stream,
ExportNameTable &  nameTable 
)
overridevirtualinherited

◆ writeBinaryHeader() [12/12]

virtual ByteStream agxData::SerializedFrame::writeBinaryHeader ( ByteStream  stream,
ExportNameTable &  nameTable 
)
overridevirtualinherited

◆ writeChildren()

void agxData::SerializedFrame::writeChildren ( agx::TiXmlElement *  eParent)
inherited

◆ writeDataSegment() [1/4]

void agxData::SerializedFrame::writeDataSegment ( std::ostream &  binaryFile)
inherited

◆ writeDataSegment() [2/4]

virtual void agxData::SerializedFrame::writeDataSegment ( std::ostream &  binaryFile,
agx::UInt64  baseOffset 
)
pure virtualinherited

◆ writeDataSegment() [3/4]

virtual void agxData::SerializedFrame::writeDataSegment ( std::ostream &  binaryFile,
agx::UInt64  baseOffset 
)
overridevirtualinherited

◆ writeDataSegment() [4/4]

virtual void agxData::SerializedFrame::writeDataSegment ( std::ostream &  binaryFile,
agx::UInt64  baseOffset 
)
overridevirtualinherited

◆ writeXmlHeader() [1/8]

agx::TiXmlElement* agxData::SerializedFrame::writeXmlHeader ( ) const
inherited

◆ writeXmlHeader() [2/8]

virtual agx::TiXmlElement* agxData::SerializedFrame::writeXmlHeader ( agx::TiXmlElement *  eParent)
pure virtualinherited

◆ writeXmlHeader() [3/8]

virtual agx::TiXmlElement* agxData::SerializedFrame::writeXmlHeader ( agx::TiXmlElement *  eParent)
overridevirtualinherited

◆ writeXmlHeader() [4/8]

virtual agx::TiXmlElement* agxData::SerializedFrame::writeXmlHeader ( agx::TiXmlElement *  eParent)
overridevirtualinherited

◆ writeXmlHeader() [5/8]

virtual agx::TiXmlElement* agxData::SerializedFrame::writeXmlHeader ( agx::TiXmlElement *  eParent)
overridevirtualinherited

◆ writeXmlHeader() [6/8]

virtual agx::TiXmlElement* agxData::SerializedFrame::writeXmlHeader ( agx::TiXmlElement *  eParent)
overridevirtualinherited

◆ writeXmlHeader() [7/8]

virtual agx::TiXmlElement* agxData::SerializedFrame::writeXmlHeader ( agx::TiXmlElement *  eParent)
overridevirtualinherited

◆ writeXmlHeader() [8/8]

virtual agx::TiXmlElement* agxData::SerializedFrame::writeXmlHeader ( agx::TiXmlElement *  eParent)
overridevirtualinherited

Member Data Documentation

◆ DATA_SEGMENT_ALIGNMENT

const agx::UInt64 agxData::SerializedFrame::DATA_SEGMENT_ALIGNMENT = 32
staticinherited

Definition at line 52 of file SerializedFrame.h.

◆ m_mutex

Mutex agx::Referenced::m_mutex
mutableprotectedinherited

Definition at line 240 of file Referenced.h.

◆ m_observers

ObserverContainer agx::Referenced::m_observers
mutableprotectedinherited

Definition at line 239 of file Referenced.h.

◆ m_refCount

AtomicValue agx::Referenced::m_refCount
mutableprotectedinherited

Definition at line 241 of file Referenced.h.


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