载入中...
搜索中...
未找到

Object is the base class for all game objects. It provides reference counting and dirty flag for update. 更多...

#include <Object.h>

类 eve::Object 继承关系图:
eve::Data eve::Model eve::Resource eve::audio::Source eve::sound::Decoder eve::data::ByteData eve::data::CompressedData eve::data::DataView eve::filesystem::FileData eve::ModelClass eve::ModelMap eve::ModelVector eve::font::FontData eve::image::ImageData eve::model3d::ModelData eve::sound::SoundData

Public 成员函数

 Object ()
 
void setUpdate (Object *update)
 Update the current object with a replacement. You don't need to care about the reference to the old object since it will be automatically updated in the ref smart pointer.
 

Protected 成员函数

virtual ~Object ()
 
bool isDirty () const
 
ObjectgetUpdate () const
 
void ref ()
 
void unref ()
 

Protected 属性

Objectupdate
 
unsigned ref_count = 0
 

友元

template<typename T >
class ref
 

详细描述

Object is the base class for all game objects. It provides reference counting and dirty flag for update.

在文件 Object.h18 行定义.

构造及析构函数说明

◆ Object()

eve::Object::Object ( )
inline

在文件 Object.h20 行定义.

引用了 update.

◆ ~Object()

virtual eve::Object::~Object ( )
inlineprotectedvirtual

在文件 Object.h33 行定义.

成员函数说明

◆ getUpdate()

Object * eve::Object::getUpdate ( ) const
inlineprotected

在文件 Object.h39 行定义.

引用了 update.

◆ isDirty()

bool eve::Object::isDirty ( ) const
inlineprotected

在文件 Object.h38 行定义.

引用了 update.

◆ ref()

void eve::Object::ref ( )
inlineprotected

在文件 Object.h41 行定义.

引用了 ref_count.

◆ setUpdate()

void eve::Object::setUpdate ( Object update)
inline

Update the current object with a replacement. You don't need to care about the reference to the old object since it will be automatically updated in the ref smart pointer.

在文件 Object.h27 行定义.

引用了 EV_PARAM_CHECK , 以及 update.

◆ unref()

void eve::Object::unref ( )
inlineprotected

在文件 Object.h42 行定义.

引用了 ref_count.

友元及相关函数文档

◆ ref

template<typename T >
friend class ref
friend

在文件 Object.h36 行定义.

类成员变量说明

◆ ref_count

unsigned eve::Object::ref_count = 0
protected

在文件 Object.h45 行定义.

被这些函数引用 ref() , 以及 unref().

◆ update

Object* eve::Object::update
protected

在文件 Object.h44 行定义.

被这些函数引用 getUpdate(), isDirty(), Object() , 以及 setUpdate().


该类的文档由以下文件生成: