VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes | Private Member Functions | Friends
makVrf::DtVrfStateComponentCurrentFrame Class Reference

3) Define the current frame class. This will be used for read access.

Inheritance diagram for makVrf::DtVrfStateComponentCurrentFrame:
Inheritance graph
[legend]

Public Member Functions

 DtVrfStateComponentCurrentFrame (DtStateData *)
 
virtual ~DtVrfStateComponentCurrentFrame () override
 
const DtVrfStateComponentData & frameState () const
 
virtual const bool isVrfSimulatedObject () const override
 
virtual const DtString label () const override
 
virtual const DtString overlay () const override
 
virtual const bool independentlyTasked () const override
 
virtual const bool & isRemoteAttachedObject () const override
 
virtual const DtString engagementRules () const override
 
virtual const bool isSubordinateOfForceLevel () const override
 
virtual const bool isTasked () const override
 
virtual const bool underFire () const override
 
virtual const bool executingPlan () const override
 
virtual const bool hasPlan () const override
 
virtual const bool sensorsKilled () const override
 
virtual const DtEchelonId & echelonId () const override
 
virtual const int sessionId () const override
 
virtual const int vrfMessageVersionSupported () const override
 
virtual const ExtendedData & extendedData () const override
 
virtual bool activated () const override
 
bool readComponentValid () const
 
virtual ExtendedData extendedDataMap () const override
 
virtual bool hasExtendedData (const DtString &) const override
 
virtual const DtString & extendedData (const DtString &key) const override
 
virtual bool findReadComponent ()
 
void handleExtendedDataUpdated (const std::vector< UInt32 > &attributesUpdated)
 
- Public Member Functions inherited from makVrf::DtVrfStateComponent
 DtVrfStateComponent (DtStateData *storage)
 
virtual void setExtendedData (const DtString &key, const DtString &value)
 
virtual void clearExtendedData ()
 
virtual void removeExtendedData (const DtString &key)
 
- Public Member Functions inherited from makVrf::DtFrameStateInterface
 DtFrameStateInterface (DtStateData *)
 
virtual ~DtFrameStateInterface ()
 
void setIsWritable (bool b)
 
bool isWritable () const
 
UInt64 stateId () const
 
UInt64 legionGlobalId () const
 
void setLegionGlobalId (UInt64 d)
 
virtual bool isModified () const
 
virtual void clearModified ()
 
virtual void markModified ()
 
virtual
DtStateComponent::StateComponentType 
type () const
 
virtual
DtStateComponent::StateComponentType 
componentType () const =0
 
virtual const char * stringType () const =0
 
void setId (UInt64 id)
 
virtual UInt64 id () const
 
virtual void updateStateData (DtStateData *sd)
 
virtual Legion::ReadStateInstance readStateInstance () const
 
virtual Legion::WriteStateInstance writeStateInstance ()
 
void emitComponentUpdated ()
 
void setMarkedForRemoval (bool b)
 
bool markedForRemoval () const
 
bool cleared () const
 
bool advancedFrame () const
 
virtual void frameAdvanced ()
 
virtual void convertToRemote ()
 
virtual void convertToLocal ()
 
virtual void aboutToBeDeleted ()
 

Protected Attributes

VRF::ReadVrfStateComponentRepository myReadVrfStateComponentRepository
 
ExtendedData myExtendedData
 
unsigned int myCallbackHandle
 
DtVrfStateComponentData myData
 
- Protected Attributes inherited from makVrf::DtFrameStateInterface
bool myIsModified
 
UInt64 myId
 
UInt64 myStateId
 
UInt64 myLegionId
 
bool myIsWritable
 
bool myCleared
 
bool myAdvancedFrame
 
bool myMarkedForRemoval = false
 
DtStateData * myStateData
 

Private Member Functions

void updateExtendedData (const ExtendedData &)
 
void advanceFrame (const DtVrfStateComponentData &data)
 

Friends

class DtVrfStateComponentImplementation
 

Additional Inherited Members

- Public Types inherited from makVrf::DtVrfStateComponent
typedef std::map< DtString,
DtString > 
ExtendedData
 
- Public Attributes inherited from makVrf::DtVrfStateComponent
boost::signals2::signal< void(const
DtFrameStateInterface *)> 
signal_extendedDataModified {}
 
- Public Attributes inherited from makVrf::DtFrameStateInterface
boost::signals2::signal< void(DtFrameStateInterface *)> signal_stateComponentAboutToBeDeleted
 
boost::signals2::signal< void(const
DtFrameStateInterface *)> 
signal_componentModified
 
- Protected Member Functions inherited from makVrf::DtFrameStateInterface
virtual void makeWritable ()
 
virtual void makeReadOnly ()
 

Constructor & Destructor Documentation

makVrf::DtVrfStateComponentCurrentFrame::DtVrfStateComponentCurrentFrame ( DtStateData *  )

Constructs the current-frame VRF state component with the given state data storage.

Parameters
sdPointer to the state data storage.
virtual makVrf::DtVrfStateComponentCurrentFrame::~DtVrfStateComponentCurrentFrame ( )
overridevirtual

Destructor; unregisters any registered Legion attribute update callbacks.

Member Function Documentation

const DtVrfStateComponentData& makVrf::DtVrfStateComponentCurrentFrame::frameState ( ) const
inline

Current frame state only can access current frame buffers. This ensures thread safety.

virtual const bool makVrf::DtVrfStateComponentCurrentFrame::isVrfSimulatedObject ( ) const
overridevirtual
virtual const DtString makVrf::DtVrfStateComponentCurrentFrame::label ( ) const
overridevirtual
virtual const DtString makVrf::DtVrfStateComponentCurrentFrame::overlay ( ) const
overridevirtual
virtual const bool makVrf::DtVrfStateComponentCurrentFrame::independentlyTasked ( ) const
overridevirtual
virtual const bool& makVrf::DtVrfStateComponentCurrentFrame::isRemoteAttachedObject ( ) const
overridevirtual
virtual const DtString makVrf::DtVrfStateComponentCurrentFrame::engagementRules ( ) const
overridevirtual
virtual const bool makVrf::DtVrfStateComponentCurrentFrame::isSubordinateOfForceLevel ( ) const
overridevirtual
virtual const bool makVrf::DtVrfStateComponentCurrentFrame::isTasked ( ) const
overridevirtual
virtual const bool makVrf::DtVrfStateComponentCurrentFrame::underFire ( ) const
overridevirtual
virtual const bool makVrf::DtVrfStateComponentCurrentFrame::executingPlan ( ) const
overridevirtual
virtual const bool makVrf::DtVrfStateComponentCurrentFrame::hasPlan ( ) const
overridevirtual
virtual const bool makVrf::DtVrfStateComponentCurrentFrame::sensorsKilled ( ) const
overridevirtual
virtual const DtEchelonId& makVrf::DtVrfStateComponentCurrentFrame::echelonId ( ) const
overridevirtual
virtual const int makVrf::DtVrfStateComponentCurrentFrame::sessionId ( ) const
overridevirtual
virtual const int makVrf::DtVrfStateComponentCurrentFrame::vrfMessageVersionSupported ( ) const
overridevirtual
virtual const ExtendedData& makVrf::DtVrfStateComponentCurrentFrame::extendedData ( ) const
overridevirtual
virtual bool makVrf::DtVrfStateComponentCurrentFrame::activated ( ) const
overridevirtual
bool makVrf::DtVrfStateComponentCurrentFrame::readComponentValid ( ) const

Returns true if the readable Legion repository is valid and accessible.

Returns
True if the read component is valid.
virtual ExtendedData makVrf::DtVrfStateComponentCurrentFrame::extendedDataMap ( ) const
overridevirtual

Reimplemented from makVrf::DtVrfStateComponent.

virtual bool makVrf::DtVrfStateComponentCurrentFrame::hasExtendedData ( const DtString &  ) const
overridevirtual

Reimplemented from makVrf::DtVrfStateComponent.

virtual const DtString& makVrf::DtVrfStateComponentCurrentFrame::extendedData ( const DtString &  key) const
overridevirtual

Reimplemented from makVrf::DtVrfStateComponent.

virtual bool makVrf::DtVrfStateComponentCurrentFrame::findReadComponent ( )
virtual

Attempts to locate and bind the readable Legion VRF state component repository.

Returns
True if the read component was successfully found and bound.
void makVrf::DtVrfStateComponentCurrentFrame::handleExtendedDataUpdated ( const std::vector< UInt32 > &  attributesUpdated)

Callback invoked when Legion attribute updates are received; refreshes cached extended data.

Parameters
attributesUpdatedList of attribute indices that were updated.
void makVrf::DtVrfStateComponentCurrentFrame::updateExtendedData ( const ExtendedData &  )
private

Updates the cached extended data map and emits the modification signal if changed.

Parameters
eThe new extended data map to apply.
void makVrf::DtVrfStateComponentCurrentFrame::advanceFrame ( const DtVrfStateComponentData &  data)
inlineprivate

Advances the frame by copying the new state data into the current frame buffer.

Parameters
dataThe next-frame state data to become the current frame.

Friends And Related Function Documentation

friend class DtVrfStateComponentImplementation
friend

Member Data Documentation

VRF::ReadVrfStateComponentRepository makVrf::DtVrfStateComponentCurrentFrame::myReadVrfStateComponentRepository
protected

Read-only Legion repository instance for consuming VRF state component data.

ExtendedData makVrf::DtVrfStateComponentCurrentFrame::myExtendedData
protected

Cached map of extended key-value data for the current frame.

unsigned int makVrf::DtVrfStateComponentCurrentFrame::myCallbackHandle
protected

Handle for the registered Legion attribute update callback.

DtVrfStateComponentData makVrf::DtVrfStateComponentCurrentFrame::myData
protected

Per-frame state data values for the current frame.


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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)