载入中...
搜索中...
未找到
eve::Data类 参考abstract
#include <Data.h>
类 eve::Data 继承关系图:
Public 成员函数 | |
| virtual | ~Data () |
| Destructor. | |
| virtual Data * | clone () const =0 |
| Creates a duplicate of Data derived class instance. | |
| virtual void * | getData () const =0 |
| Gets a pointer to the data. This pointer will obviously not be valid if the Data object is destroyed. | |
| virtual size_t | getSize () const =0 |
| Gets the size of the Data in bytes. | |
Public 成员函数 继承自 eve::Object | |
| 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 成员函数 继承自 eve::Object | |
| virtual | ~Object () |
| bool | isDirty () const |
| Object * | getUpdate () const |
| void | ref () |
| void | unref () |
Protected 属性 继承自 eve::Object | |
| Object * | update |
| unsigned | ref_count = 0 |
详细描述
构造及析构函数说明
◆ ~Data()
成员函数说明
◆ clone()
|
pure virtual |
Creates a duplicate of Data derived class instance.
在 eve::filesystem::FileData, eve::data::ByteData, eve::data::CompressedData , 以及 eve::data::DataView 内被实现.
◆ getData()
|
pure virtual |
Gets a pointer to the data. This pointer will obviously not be valid if the Data object is destroyed.
在 eve::filesystem::FileData, eve::data::ByteData, eve::data::CompressedData , 以及 eve::data::DataView 内被实现.
被这些函数引用 eve::data::DataView::getData(), eve::data::hash() , 以及 eve::data::hash().
◆ getSize()
|
pure virtual |
Gets the size of the Data in bytes.
在 eve::filesystem::FileData, eve::data::ByteData, eve::data::CompressedData , 以及 eve::data::DataView 内被实现.
被这些函数引用 eve::data::hash() , 以及 eve::data::hash().
该类的文档由以下文件生成:
- src/engine/common/Data.h
Public 成员函数 继承自