#include <c4d_baselist.h>
A unique marker that identifies an object.
公共成员函数 |
|
Bool | IsPopulated () const |
Bool | IsEqual (const GeMarker &m) const |
Int32 | 比较 (const GeMarker &m) const |
void | Set (const GeMarker &m) |
Bool | 读取 ( HyperFile *hf) |
Bool | Write ( HyperFile *hf) const |
void | GetMemory (void *&data, Int32 &size) const |
静态公共成员函数 |
|
static GeMarker * | Alloc () |
static void | Free ( GeMarker *&obj) |
私有成员函数 |
|
GeMarker () | |
~GeMarker () |
|
|
|
static |
Allocates a marker. Destroy the allocated marker with Free() 。使用 AutoAlloc to automate the allocation and destruction based on scope.
|
static |
Destructs markers allocated with Alloc() 。使用 AutoAlloc to automate the allocation and destruction based on scope.
[in,out] | obj | The marker to destruct. If the pointer is nullptr nothing happens. The pointer is assigned nullptr afterwards. |
Bool IsPopulated | ( | ) | const |
Checks if the marker is empty.
Bool IsEqual | ( | const GeMarker & | m | ) | const |
Checks if two markers are equal.
[in] | m | The marker to compare with. |
Int32 比较 | ( | const GeMarker & | m | ) | const |
Compares two markers.
[in] | m | The marker to compare with. |
void Set | ( | const GeMarker & | m | ) |
Sets a marker the same as another marker.
[in] | m | The new marker. |
Bool 读取 | ( | HyperFile * | hf | ) |
Reads the marker from a hyper file.
[in] | hf | The hyper file to read from. The caller owns the pointed object. |
Bool Write | ( | HyperFile * | hf | ) | const |
Writes the marker to a hyper file.
[in] | hf | The hyper file to write to. The caller owns the pointed object. |
void GetMemory | ( | void *& | data , |
Int32 & | size | ||
) | const |
Gets a memory pointer and the size of the memory block.
Used for instance to create a checksum.
[out] | data | The memory pointer. |
[out] | size | The size of the memory block. |