#include <c4d_gemarker.h>
Public Member Functions | |
GeMarker () | |
Bool | Content () const |
Bool | IsEqual (const GeMarker &m) const |
Int32 | Compare (const GeMarker &m) const |
void | Set (const GeMarker &m) |
Bool | Read (HyperFile *hf) |
Bool | Write (HyperFile *hf) const |
void | GetMemory (void *&data, Int32 &size) const |
Static Public Member Functions | |
static GeMarker * | Alloc () |
static void | Free (GeMarker *&obj) |
Private Attributes | |
UChar | uniqueid [16] |
Friends | |
GeMarker | GeGetNewMarker () |
Bool | operator== (const GeMarker &m1, const GeMarker &m2) |
Bool | operator!= (const GeMarker &m1, const GeMarker &m2) |
Bool | operator< (const GeMarker &m1, const GeMarker &m2) |
Bool | operator> (const GeMarker &m1, const GeMarker &m2) |
A unique marker that identifies an object derived from one of the base lists.
GeMarker | ( | ) |
Default constructor.
|
static |
Allocates a marker. Destroy the allocated marker with Free().
|
static |
Destructs markers allocated with Alloc().
[in,out] | obj | The marker to destruct. If the pointer is nullptr nothing happens. The pointer is assigned nullptr afterwards. |
Bool Content | ( | ) | const |
Checks if the marker is empty.
Checks if two markers are equal.
[in] | m | The marker to compare with. |
Compares two markers. Basically it works like memcmp().
[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. |
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.
[in] | data | The memory pointer. |
[in] | size | The size of the memory block. |
|
friend |
Gets a new marker.
Equality operator.
[in] | m1 | Left operand. |
[in] | m2 | Right operand. |
Inequality operator.
[in] | m1 | Left operand. |
[in] | m2 | Right operand. |
Inferior operator.
[in] | m1 | Left operand. |
[in] | m2 | Right operand. |
Superior operator.
[in] | m1 | Left operand. |
[in] | m2 | Right operand. |
|
private |