载入中...
搜索中...
未找到
eve::data::DataView类 参考

Contains a reference to a subsection of an existing Data object. 更多...

#include <DataView.h>

类 eve::data::DataView 继承关系图:
eve::Data eve::Object

Public 成员函数

 DataView (Data *data, size_t offset, size_t size)
 
 DataView (const DataView &d)
 
virtual ~DataView ()
 
DataViewclone () const override
 Creates a duplicate of Data derived class instance.
 
void * getData () const override
 Gets a pointer to the data. This pointer will obviously not be valid if the Data object is destroyed.
 
size_t getSize () const override
 Gets the size of the Data in bytes.
 
- Public 成员函数 继承自 eve::Data
virtual ~Data ()
 Destructor.
 
- 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
 
ObjectgetUpdate () const
 
void ref ()
 
void unref ()
 
- Protected 属性 继承自 eve::Object
Objectupdate
 
unsigned ref_count = 0
 

详细描述

Contains a reference to a subsection of an existing Data object.

在文件 DataView.h15 行定义.

构造及析构函数说明

◆ DataView() [1/2]

eve::data::DataView::DataView ( Data data,
size_t  offset,
size_t  size 
)

在文件 DataView.cpp13 行定义.

引用了 data.

◆ DataView() [2/2]

eve::data::DataView::DataView ( const DataView d)

在文件 DataView.cpp25 行定义.

引用了 data.

◆ ~DataView()

eve::data::DataView::~DataView ( )
virtual

在文件 DataView.cpp32 行定义.

成员函数说明

◆ clone()

DataView * eve::data::DataView::clone ( ) const
overridevirtual

Creates a duplicate of Data derived class instance.

实现了 eve::Data.

在文件 DataView.cpp36 行定义.

◆ getData()

void * eve::data::DataView::getData ( ) const
overridevirtual

Gets a pointer to the data. This pointer will obviously not be valid if the Data object is destroyed.

实现了 eve::Data.

在文件 DataView.cpp41 行定义.

引用了 eve::Data::getData().

◆ getSize()

size_t eve::data::DataView::getSize ( ) const
overridevirtual

Gets the size of the Data in bytes.

实现了 eve::Data.

在文件 DataView.cpp46 行定义.


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