#include <object.h>
Inheritance diagram for zeitgeist::Object:
Public Member Functions | |
Object () | |
constructs an object | |
virtual | ~Object () |
bool | Construct (const boost::shared_ptr< Object > &self, const boost::shared_ptr< Class > &creator) |
sets up the internal state of the object, used by Class::Create(). | |
boost::shared_ptr< Class > | GetClass () const |
returns the corresponding class object | |
boost::weak_ptr< Object > & | GetSelf () |
returns a pointer to the object | |
const boost::weak_ptr< Object > & | GetSelf () const |
returns a constant pointer to the object | |
boost::shared_ptr< Core > | GetCore () const |
return a pointer to the core, this object belongs to | |
const boost::shared_ptr< FileServer > & | GetFile () const |
helper function to get a reference to the FileServer | |
const boost::shared_ptr< LogServer > & | GetLog () const |
helper function to get a reference to the LogServer | |
const boost::shared_ptr< ScriptServer > & | GetScript () const |
helper function to get a reference to the ScriptServer | |
virtual void | Dump () const |
prints debug output to stdout | |
void | Invoke (const std::string &functionName, const ParameterList ¶meter) |
function invocation used for scripting | |
Protected Member Functions | |
virtual bool | ConstructInternal () |
called after the object has been created and attached to a core to allow for object dependent internal construction | |
Private Attributes | |
boost::shared_ptr< Class > | mClass |
pointer to the class object which created this instance | |
boost::weak_ptr< Object > | mSelf |
pointer to the instance of the object |
An object is characterized by a single thing, the class which created it. The core it belongs to can be reached via the class object. Every object holds a shared_ptr to the class object, which created it.
Definition at line 50 of file object.h.
|
constructs an object
Definition at line 33 of file object.cpp. |
|
Definition at line 37 of file object.cpp. References GetSelf(), and mClass. Here is the call graph for this function: ![]() |
|
sets up the internal state of the object, used by Class::Create().
Definition at line 45 of file object.cpp. References ConstructInternal(), mClass, and mSelf. Here is the call graph for this function: ![]() |
|
called after the object has been created and attached to a core to allow for object dependent internal construction
Reimplemented in kerosin::OpenGLServer, oxygen::BoxCollider, oxygen::CCylinderCollider, oxygen::PlaneCollider, oxygen::RayCollider, oxygen::Space, oxygen::SphereCollider, oxygen::World, oxygen::SpadesServer, zeitgeist::ScriptServer, MonitorTest, RestrictedVisionPerceptor, SexpMonitor, and VisionPerceptor. Definition at line 149 of file object.cpp. Referenced by Construct(), oxygen::SphereCollider::ConstructInternal(), zeitgeist::ScriptServer::ConstructInternal(), oxygen::RayCollider::ConstructInternal(), oxygen::PlaneCollider::ConstructInternal(), oxygen::CCylinderCollider::ConstructInternal(), and oxygen::BoxCollider::ConstructInternal(). |
|
prints debug output to stdout
Reimplemented in zeitgeist::Leaf, and zeitgeist::Node. Definition at line 110 of file object.cpp. References mSelf. Referenced by zeitgeist::Leaf::Dump(). |
|
returns the corresponding class object
Definition at line 54 of file object.cpp. References zeitgeist::Leaf::GetFullPath(), zeitgeist::Leaf::GetName(), and mClass. Referenced by oxygen::NetControl::InitSimulation(), thisCall(), and zeitgeist::Node::UnlinkChildren(). Here is the call graph for this function: ![]() |
|
|
helper function to get a reference to the FileServer
Definition at line 134 of file object.cpp. References GetCore(). Here is the call graph for this function: ![]() |
|
|
helper function to get a reference to the ScriptServer
Definition at line 144 of file object.cpp. References GetCore(). Referenced by oxygen::SpadesServer::ConstructInternal(), kerosin::OpenGLServer::ConstructInternal(), oxygen::SpadesServer::GetCommServersWanted(), oxygen::SpadesServer::GetMonitorInterval(), oxygen::SpadesServer::GetRunIntegratedCommserver(), oxygen::SpadesServer::GetSendAgentThinkTimes(), kerosin::InputServer::Init(), kerosin::Font::Init(), oxygen::Camera::OnLink(), oxygen::ParamReader::readCmdLineArgs(), and oxygen::SpadesServer::UpdateCached(). Here is the call graph for this function: ![]() |
|
returns a constant pointer to the object
Definition at line 81 of file object.cpp. References mSelf. |
|
returns a pointer to the object
Definition at line 76 of file object.cpp. References mSelf. Referenced by zeitgeist::Node::AddChildReference(), zeitgeist::Class::Create(), oxygen::Joint::GetBody(), oxygen::Body::GetBody(), zeitgeist::Leaf::GetChild(), zeitgeist::Leaf::GetChildren(), oxygen::Collider::GetCollider(), oxygen::Joint::GetJoint(), oxygen::BaseNode::GetScene(), kerosin::TextureServer::GetTexture(), Invoke(), zeitgeist::Leaf::SetParent(), and ~Object(). |
|
function invocation used for scripting
Definition at line 122 of file object.cpp. References GetSelf(), and mClass. Here is the call graph for this function: ![]() |
|
pointer to the class object which created this instance
Definition at line 105 of file object.h. Referenced by Construct(), GetClass(), GetCore(), Invoke(), and ~Object(). |
|
pointer to the instance of the object
Definition at line 108 of file object.h. Referenced by Construct(), Dump(), and GetSelf(). |