Element template.
More...
#include <Element.h>
List of all members.
Detailed Description
template<class AType>
class PLCore::Element< AType >
Element template.
Constructor & Destructor Documentation
Member Function Documentation
Returns the element manager using this element.
- Returns:
- Element manager using this element or a null pointer
Returns the unique element name.
- Returns:
- Unique element name
- Note:
- Because within a element manager a element is managed using it's name, this element name MUST be unique!
Returns whether the element is protected or not.
- Returns:
- 'true' if the element is protected, else 'false'
- Note:
- Protected element are only removed if their manager is cleared!
Sets whether the element is protected or not.
- Parameters:
-
[in] | bProtected | Is the element protected? |
- See also:
-
Returns the ID of the element within the resource manager.
- Returns:
- ID of the element within the element manager, -1 if there was an error (maybe this element is not within a element manager)
- Note:
- The element ID isn't fixed, if you remove some elements from the manager it's possible that the element ID is changed!
Reimplemented in PLMesh::AnchorPoint, PLRenderer::AnimationEvent, and PLMesh::Joint.
Returns the number of element handlers.
- Returns:
- The number of element handlers
- Note:
- The handlers will be informed if the element was lost
Returns a element handler.
- Parameters:
-
[in] | nIndex | Index of the element handler to return |
- Returns:
- The requested element handler, a null pointer on error
Destroys the element.
- Parameters:
-
[in] | bProtectedToo | Do also destroy the element if it is protected? |
- Returns:
- 'true' if all went fine, else 'false' (maybe the element is protected?)
- Note:
- Whether the element is destroyed within this function or just added for instance to a kind of 'destruction list' is implementation dependent.
Reimplemented in PLScene::SceneNode.
Sets the element name.
Sets the unique element name.
- Parameters:
-
[in] | sName | New element name |
- Returns:
- 'true' if all went fine, else 'false' (maybe the name is already used)
- See also:
-
- Note:
- Overload this function if it's for instance not allowed to change the name of the element
Reimplemented in PLScene::SceneNode.
Copy operator.
- Parameters:
-
[in] | cSource | Source to copy from |
- Returns:
- This instance
- Note:
- Manager, handlers and name are not copied
Member Data Documentation
Element manager, can be a null pointer
Is the element protected?
The documentation for this class was generated from the following files: