FSMSADF::Memory Class Reference
#include <memory.h>
Public Member Functions | |
Memory (GraphComponent c) | |
~Memory () | |
Memory * | create (GraphComponent c) const |
Memory * | createCopy (GraphComponent c) const |
Memory * | clone (GraphComponent c) const |
void | constructFromXML (const CNodePtr memoryNode) |
void | convertToXML (const CNodePtr memoryNode) |
Size | getSize () const |
void | setSize (const Size sz) |
Tile * | getTile () const |
Private Attributes | |
Size | size |
Detailed Description
Memory Container for tile memory.
Constructor & Destructor Documentation
Memory::Memory | ( | GraphComponent | c | ) |
Memory::~Memory | ( | ) |
~Memory() Destructor.
Member Function Documentation
Memory * Memory::clone | ( | GraphComponent | c | ) | const |
clone() The function returns a new memory object and copies all properties, but when the parent of the graph component c and this object are different, all pointers are relocated.
References createCopy().
void Memory::constructFromXML | ( | const CNodePtr | memoryNode | ) |
constructFromXML() Load all properties of this memory from the supplied XML node.
References CGetAttribute(), CHasAttribute(), FSMSADF::GraphComponent::setName(), and setSize().
Referenced by FSMSADF::Tile::constructFromXML().
void Memory::convertToXML | ( | const CNodePtr | memoryNode | ) |
convertToXML() Add all properties of this memory to the supplied XML node.
References CAddAttribute(), FSMSADF::GraphComponent::getName(), and getSize().
Memory * Memory::create | ( | GraphComponent | c | ) | const |
create() The function returns a new memory object.
References Memory().
Referenced by createCopy().
Memory * Memory::createCopy | ( | GraphComponent | c | ) | const |
createCopy() The function returns a new memory object and copies all properties.
References create(), FSMSADF::GraphComponent::getName(), getSize(), FSMSADF::GraphComponent::setName(), and setSize().
Referenced by clone().
Size FSMSADF::Memory::getSize | ( | void | ) | const [inline] |
Tile* FSMSADF::Memory::getTile | ( | ) | const [inline] |
void FSMSADF::Memory::setSize | ( | const Size | sz | ) | [inline] |
References size.
Referenced by constructFromXML(), and createCopy().
Member Data Documentation
Size FSMSADF::Memory::size [private] |
The documentation for this class was generated from the following files: