nn::nex::DuplicatedObject::IsADuplicationMaster Member Function

Syntax

qBool IsADuplicationMaster() const;

Parameters

None.

Return Values



Value Description
true This duplicated object is a duplication master.
false This Duplication Object is a duplica or has an unknown status.

Description

Gets whether this duplicated object is a duplication master.

A duplication master is a duplicated object that is currently on the side that provides the object data, either because it was created by the machine currently executing it or because authority was transferred to the machine currently executing it. Any changes to the values of this object are propagated over the network and update the values of all duplicas (objects whose information is copied from the duplication master) existing in the session. If this function returns true, this duplicated object instance is a duplication master.

If a role has been initialized for a duplicated object, then the object is neither a duplication master nor a duplica. Typically, this occurs when this function is called by the constructor. Which role the object will take is determined by the InitDO callback.

Revision History

2011/01/27
Initial version.

CONFIDENTIAL