public

Inheritance Graph

graph BT
	StoreAttrsInEObject_Policy
	click StoreAttrsInEObject_Policy "classEScript_1_1Policies_1_1StoreAttrsInEObject__Policy"

Description

Policy for locating an ExtRefernceObject’s attribute storage. Use this policy to directly store the AttributeContainer inside the ExtReferenceObject . Alternative implementations could e.g. store the attributeContainer as user data at the referenced object.

Protected Static Functions

   
   
AttributeContainer * getAttributeContainer( StoreAttrsInEObject_Policy * obj, bool void)
   
bool areObjAttributesInitialized( StoreAttrsInEObject_Policy * void)

Documentation

function
EScript::Policies::StoreAttrsInEObject_Policy::getAttributeContainer

protected static inline
     
     
AttributeContainer * getAttributeContainer( StoreAttrsInEObject_Policy * obj,
  bool void
)    

(static) Returns a pointer to the object’s attributeContainer. If

Parameters

create
is ‘false’ and the object has no attributeContainer, the function returns nullptr. If
create
is ‘true’ and no attributeContainer exists, a new one is created, so that always an valid container is returned.

Defined in EScript/EScript/Objects/ExtReferenceObject.h:30


function
EScript::Policies::StoreAttrsInEObject_Policy::areObjAttributesInitialized

protected static inline
     
     
bool areObjAttributesInitialized( StoreAttrsInEObject_Policy * void )

(static) Should return true iff the object’s Type ‘s attributes are already initialized with the object’s attributeContainer. This function is only called by the ExtReferenceObject ‘s constructor. As for this specific policy, the attributeContainer has always just been created then, it can not already been initialized.

Defined in EScript/EScript/Objects/ExtReferenceObject.h:38