C4DUuid Class Reference

#include <c4d_uuid.h>

Public Member Functions

 C4DUuid ()
 
 C4DUuid (_DONTCONSTRUCT n)
 
 C4DUuid (_EMPTYCONSTRUCT n)
 
 C4DUuid (const C4DUuid &uid)
 
UInt32 GetHashCode () const
 
void Reset (Bool clear)
 
String GetString () const
 
Bool Content () const
 
void CopyTo (UChar *buf) const
 
void CopyFrom (UChar *buf)
 
Bool CopyFrom (const String &uuid)
 
void CopyTo (const C4DUuid &dst) const
 
Bool operator== (const C4DUuid &k) const
 
Bool operator!= (const C4DUuid &k) const
 

Private Attributes

UChar dummy [C4DUUID_SIZE]
 

Constructor & Destructor Documentation

§ C4DUuid() [1/4]

C4DUuid ( )

Default constructor.

§ C4DUuid() [2/4]

C4DUuid ( _DONTCONSTRUCT  n)
explicit

Creates an uninitialized uuid.

Parameters
[in]nDummy argument. Pass DC.

§ C4DUuid() [3/4]

C4DUuid ( _EMPTYCONSTRUCT  n)
explicit

Creates an empty uuid.

Parameters
[in]nDummy argument. Pass EC.

§ C4DUuid() [4/4]

C4DUuid ( const C4DUuid uid)

Copy constructor.

Parameters
[in]uidAnother C4DUuid to copy.

Member Function Documentation

§ GetHashCode()

UInt32 GetHashCode ( ) const

Gets the hash code for the uuid.

Returns
The uuid's hash code.

§ Reset()

void Reset ( Bool  clear)

Resets the uuid.

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

§ GetString()

String GetString ( void  ) const

Gets the string for the uuid.

Returns
The uuid's string.

§ Content()

Bool Content ( void  ) const

Checks if the uuid has content.

Returns
true if the uuid has content, otherwise false.

§ CopyTo() [1/2]

void CopyTo ( UChar buf) const

Copies the uuid to a UChar buffer.

Parameters
[in]bufThe destination buffer.

§ CopyFrom() [1/2]

void CopyFrom ( UChar buf)

Copies the uuid from a UChar buffer.

Parameters
[in]bufThe source buffer.

§ CopyFrom() [2/2]

Bool CopyFrom ( const String uuid)

Copies the uuid from a string.

Parameters
[in]uuidThe source string.
Returns
true if successful, otherwise false.

§ CopyTo() [2/2]

void CopyTo ( const C4DUuid dst) const

Copies the uuid to another uuid.

Parameters
[in]dstThe destination uuid.

§ operator==()

Bool operator== ( const C4DUuid k) const

Equality operator. Checks if the uuids are equal.

Parameters
[in]kA uuid to compare with.
Returns
true if the uuids are equal, otherwise false.

§ operator!=()

Bool operator!= ( const C4DUuid k) const

Inequality operator. Checks if the uuids are different.

Parameters
[in]kA uuid to compare with.
Returns
true if the uuids are different, otherwise false.

Member Data Documentation

§ dummy

UChar dummy[C4DUUID_SIZE]
private