UL Class Reference

Universal Label class with optimized comparison and string formatting. More...

#include <types.h>

Inheritance diagram for UL:

RefCount Identifier< 16 > IRefCount List of all members.

Public Member Functions

 UL (const UInt8 *ID)
 Construct a UL from a sequence of bytes.
 UL (const SmartPtr< UL > ID)
 Construct a UL as a copy of another UL.
 UL (const UL &RHS)
 Copy constructor.
 UL (const UUID &RHS)
 Construct a UL from an end-swapped UUID.
 UL (const UUIDPtr &RHS)
 Construct a UL from an end-swapped UUID.
 UL (const UUID *RHS)
 Construct a UL from an end-swapped UUID.
bool operator== (const UL &RHS) const
 Fast compare a UL based on testing most-likely to fail bytes first.
bool Matches (const UL &RHS) const
 Fast compare a UL based on testing most-likely to fail bytes first *IGNORING THE VERSION NUMBER*.
ULoperator= (const UUID &RHS)
 Set a UL from a UUID, does end swapping.
ULoperator= (const UUIDPtr &RHS)
 Set a UL from a UUID, does end swapping.
ULoperator= (const UUID *RHS)
 Set a UL from a UUID, does end swapping.
std::string GetString (void) const
 Produce a human-readable string in one of the "standard" formats.

Private Member Functions

 UL ()
 Prevent default construction.

Detailed Description

Universal Label class with optimized comparison and string formatting.


Constructor & Destructor Documentation

UL (  )  [private]

Prevent default construction.

UL ( const UInt8 ID  )  [inline]

Construct a UL from a sequence of bytes.

Note:
The byte string must contain at least 16 bytes or errors will be produced when it is used

UL ( const SmartPtr< UL ID  )  [inline]

Construct a UL as a copy of another UL.

UL ( const UL RHS  )  [inline]

Copy constructor.

UL ( const UUID RHS  )  [inline]

Construct a UL from an end-swapped UUID.

UL ( const UUIDPtr RHS  )  [inline]

Construct a UL from an end-swapped UUID.

UL ( const UUID RHS  )  [inline]

Construct a UL from an end-swapped UUID.


Member Function Documentation

bool operator== ( const UL RHS  )  const [inline]

Fast compare a UL based on testing most-likely to fail bytes first.

We use an unrolled loop with modified order for best efficiency DRAGONS: There may be a slightly faster way that will prevent pipeline stalling, but this is fast enough!

bool Matches ( const UL RHS  )  const [inline]

Fast compare a UL based on testing most-likely to fail bytes first *IGNORING THE VERSION NUMBER*.

We use an unrolled loop with modified order for best efficiency DRAGONS: There may be a slightly faster way that will prevent pipeline stalling, but this is fast enough!

UL & operator= ( const UUID RHS  )  [inline]

Set a UL from a UUID, does end swapping.

UL& operator= ( const UUIDPtr RHS  )  [inline]

Set a UL from a UUID, does end swapping.

UL& operator= ( const UUID RHS  )  [inline]

Set a UL from a UUID, does end swapping.

std::string GetString ( void   )  const [inline]

Produce a human-readable string in one of the "standard" formats.

Reimplemented from Identifier< 16 >.


The documentation for this class was generated from the following file:
Generated on Mon Apr 2 15:21:02 2007 for MXFLib by  doxygen 1.5.1-p1