C4DUuid Class Reference

#include <c4d_uuid.h>

Inheritance diagram for C4DUuid:

详细描述

Deprecated 。使用 maxon::Uuid .

公共成员函数

  C4DUuid ()
  C4DUuid ( _DONTCONSTRUCT n)
  C4DUuid ( _EMPTYCONSTRUCT n)
  C4DUuid (const C4DUuid &uid)
UInt32   GetHashCodeDeprecated () const
void  重置 ( Bool clear)
String   GetString () const
Bool   IsPopulated () const
void  CopyTo ( UChar *buf) const
maxon::Result < void >  CopyFrom ( UChar *buf)
maxon::Result < void >  CopyFrom (const maxon::String &uuid)
void  CopyTo (const C4DUuid &dst) const
Bool   operator== (const C4DUuid &k) const
Bool   operator!= (const C4DUuid &k) const
-  Public Member Functions inherited from Uuid
  MAXON_DEFAULT_REFERENCE_CONSTRUCTORS ( Uuid , Reference)
MAXON_IMPLICIT   Uuid (const String &uuid)
  Uuid (const UChar *uuid, Int uuidSize)

构造函数 & 析构函数文档编制

◆  C4DUuid() [1/4]

C4DUuid ( )

Default constructor. Deprecated . Use maxon::Uuid::CreateId().

◆  C4DUuid() [2/4]

C4DUuid ( _DONTCONSTRUCT   n )
explicit

Creates an uninitialized uuid.

参数
[in] n Dummy argument. Pass DC .

◆  C4DUuid() [3/4]

C4DUuid ( _EMPTYCONSTRUCT   n )
explicit

Creates an empty uuid.

参数
[in] n Dummy argument. Pass EC .

◆  C4DUuid() [4/4]

C4DUuid ( const C4DUuid uid )

Copy constructor.

参数
[in] uid Another C4DUuid to copy.

成员函数文档编制

◆  GetHashCodeDeprecated()

UInt32 GetHashCodeDeprecated ( ) const

Gets the hash code for the uuid. Deprecated . Use maxon::Uuid::GetHashCode().

注意
This method returns a UInt32 and calculates a different value than maxon::Uuid::GetHashCode().
返回
The uuid's hash code.

◆  Reset()

void Reset ( Bool   clear )

Resets the uuid. Deprecated . Use maxon::Uuid::CreateId() or Set().

参数
[in] clear true if true, otherwise false . to clear the uuid or true if false, otherwise false . to reinitialize it.

◆  GetString()

String GetString ( ) const

Gets the string for the uuid. Deprecated . Use maxon::Uuid::ToString().

返回
The uuid's string.

◆  IsPopulated()

Bool IsPopulated ( ) const

Checks if the uuid has content.

返回
true if the uuid has content, otherwise false .

◆  CopyTo() [1/2]

void CopyTo ( UChar buf ) const

Copies the uuid to a UChar buffer. Deprecated 。使用 maxon::Uuid::Get() .

参数
[in] buf The destination buffer.

◆  CopyFrom() [1/2]

maxon::Result <void> CopyFrom ( UChar buf )

Copies the uuid from a UChar buffer. Deprecated . Use maxon::Uuid::Set().

参数
[in] buf The source buffer.
返回
OK on success.

◆  CopyFrom() [2/2]

maxon::Result <void> CopyFrom ( const maxon::String uuid )

Copies the uuid from a string. Deprecated . Use maxon::Uuid::Set().

参数
[in] uuid The source string.
返回
OK on success.

◆  CopyTo() [2/2]

void CopyTo ( const C4DUuid dst ) const

Copies the uuid to another uuid. Deprecated . Use maxon::Uuid::Set().

参数
[in] dst The destination uuid.

◆  operator==()

Bool operator== ( const C4DUuid k ) const

Equality operator. Checks if the uuids are equal. Deprecated 。使用 maxon::Uuid::Compare() .

参数
[in] k A uuid to compare with.
返回
true if the uuids are equal, otherwise false .

◆  operator!=()

Bool operator!= ( const C4DUuid k ) const

Inequality operator. Checks if the uuids are different. Deprecated 。使用 maxon::Uuid::Compare() .

参数
[in] k A uuid to compare with.
返回
true if the uuids are different, otherwise false .