Atlas-C++
|
Create new things from nothing using this operator. More...
#include <Operation.h>
Public Member Functions | |
virtual CreateData * | copy () const |
Copy this object. | |
virtual bool | instanceOf (int classNo) const |
Is this instance of some class? | |
virtual void | iterate (int ¤t_class, std::string &attr) const |
Iterate over the attributes of this instance. | |
virtual void | free () |
Free an instance of this class, returning it to the memory pool. | |
virtual CreateData * | getDefaultObject () |
Get the reference object that contains the default values for attributes of instances of the same class as this object. | |
Static Public Member Functions | |
static CreateData * | alloc () |
Allocate a new instance of this class, using an existing instance if available. | |
static CreateData * | getDefaultObjectInstance () |
Get the reference object that contains the default values for attributes of instances of this class. | |
Protected Member Functions | |
CreateData (CreateData *defaults=NULL) | |
Construct a CreateData class definition. | |
virtual | ~CreateData () |
Default destructor. |
Create new things from nothing using this operator.
. Map editor is main user for this in client side. Server uses this inside "info" operation to tell client about new things.
static CreateData* Atlas::Objects::Operation::CreateData::alloc | ( | ) | [static] |
Allocate a new instance of this class, using an existing instance if available.
This is the key function for implementing the memory pool for the Atlas::Objects API.
Reimplemented from Atlas::Objects::Operation::ActionData.
Reimplemented in Atlas::Objects::Operation::TalkData, Atlas::Objects::Operation::CommunicateData, Atlas::Objects::Operation::DivideData, and Atlas::Objects::Operation::CombineData.
virtual void Atlas::Objects::Operation::CreateData::free | ( | ) | [virtual] |
Free an instance of this class, returning it to the memory pool.
This function in combination with alloc() handle the memory pool.
Reimplemented from Atlas::Objects::Operation::ActionData.
Reimplemented in Atlas::Objects::Operation::TalkData, Atlas::Objects::Operation::CommunicateData, Atlas::Objects::Operation::DivideData, and Atlas::Objects::Operation::CombineData.
virtual CreateData* Atlas::Objects::Operation::CreateData::getDefaultObject | ( | ) | [virtual] |
Get the reference object that contains the default values for attributes of instances of the same class as this object.
Reimplemented from Atlas::Objects::Operation::ActionData.
Reimplemented in Atlas::Objects::Operation::TalkData, Atlas::Objects::Operation::CommunicateData, Atlas::Objects::Operation::DivideData, and Atlas::Objects::Operation::CombineData.
static CreateData* Atlas::Objects::Operation::CreateData::getDefaultObjectInstance | ( | ) | [static] |
Get the reference object that contains the default values for attributes of instances of this class.
Reimplemented from Atlas::Objects::Operation::ActionData.
Reimplemented in Atlas::Objects::Operation::TalkData, Atlas::Objects::Operation::CommunicateData, Atlas::Objects::Operation::DivideData, and Atlas::Objects::Operation::CombineData.
Copyright 2000-2004 the respective authors.
This document can be licensed under the terms of the GNU Free Documentation License or the GNU General Public License and may be freely distributed under the terms given by one of these licenses.