API Documentation
Loading...
Searching...
No Matches
UUID Class Reference

#include <UUID.h>

Inheritance diagram for UUID:
[legend]
Collaboration diagram for UUID:
[legend]

Public Member Functions

constexpr UUID ()
 
constexpr UUID (const Vector< 16, uint01 > &bytes) noexcept
 
 UUID (const bool &other) noexcept
 
 UUID (const uint01 &other) noexcept
 
 UUID (const uint02 &other) noexcept
 
 UUID (const uint04 &other) noexcept
 
 UUID (const uint08 &other) noexcept
 
 UUID (const sint01 &other) noexcept
 
 UUID (const sint02 &other) noexcept
 
 UUID (const sint04 &other) noexcept
 
 UUID (const sint08 &other) noexcept
 
 UUID (const fltp04 &other) noexcept
 
 UUID (const fltp08 &other) noexcept
 
NDEVR_BASE_API uint01getUniquePointer () const
 
NDEVR_BASE_API UUID appendUUID (bool offset) const
 
NDEVR_BASE_API UUID appendUUID (const char *identifier) const
 
NDEVR_BASE_API UUID appendUUID (uint04 offset) const
 
NDEVR_BASE_API UUID appendUUID (uint08 offset) const
 
NDEVR_BASE_API UUID appendUUID (sint04 offset) const
 
NDEVR_BASE_API UUID appendUUID (sint08 offset) const
 
NDEVR_BASE_API UUID appendUUID (fltp04 offset) const
 
NDEVR_BASE_API UUID appendUUID (const Vector< 3, fltp04 > &offset) const
 
NDEVR_BASE_API UUID appendUUID (fltp08 offset) const
 
NDEVR_BASE_API UUID appendUUID (const UUID &offset) const
 
template<uint01 t_size, class t_type >
UUID appendUUID (const Vector< t_size, t_type > &offset) const
 
constexpr size_t hash () const
 
constexpr size_t operator() () const
 
bool operator< (const UUID &other) const
 
bool operator<= (const UUID &other) const
 
bool operator> (const UUID &other) const
 
bool operator>= (const UUID &other) const
 
- Public Member Functions inherited from Vector< 16, uint01 >
constexpr Vector () noexcept
 
constexpr Vector (const Vector< t_dims, t_vec_type > &vector) noexcept
 
constexpr Vector (const uint01 &scaler) noexcept
 
constexpr Vector (const uint01 &x, typename std::enable_if< tdims==2, const uint01 & >::type y)
 
constexpr Vector (const uint01 &x, const uint01 &y, const typename std::enable_if< tdims==3, const uint01 & >::type z)
 
constexpr Vector (const uint01 &x, const uint01 &y, const uint01 &z, typename std::enable_if< tdims==4, const uint01 & >::type w)
 
constexpr Vector (const uint01 &x, const uint01 &y, const uint01 &z, const uint01 &w, typename std::enable_if< tdims==5, const uint01 & >::type v)
 
constexpr Vector (const uint01 &x, const uint01 &y, const uint01 &z, const uint01 &w, const uint01 &v, typename std::enable_if< tdims==6, const uint01 & >::type u)
 
constexpr Vector (const uint01 &x, const uint01 &y, const uint01 &z, const uint01 &w, const uint01 &v, const uint01 &u, const uint01 &t, const uint01 &s, typename std::enable_if< tdims==9, const uint01 & >::type r)
 
constexpr Vector (const uint01(&vector)[t_dims])
 
constexpr Vector (const Vector< tdims - 1, uint01 > &vector, typename std::enable_if< tdims >=2, const uint01 & >::type suffix)
 
constexpr Vector (const Vector< getMax(tdims - 2, 0), uint01 > &vector, const uint01 &suffix_a, typename std::enable_if< tdims >=3, const uint01 & >::type suffix_b)
 
constexpr Vector (const uint01 &prefix, typename std::enable_if< tdims >=2, const Vector< t_dims - 1, uint01 > & >::type vector)
 
constexpr Vector (const uint01 &prefix_a, const uint01 &prefix_b, typename std::enable_if< tdims >=3, const Vector< tdims - 1, uint01 > & >::type vector)
 
constexpr Vector< t_dims, t_new_type > as () const
 
constexpr Vector< t_new_dim, t_new_type > as () const
 
constexpr Vector< t_new_dim, t_new_type > as (t_new_type extra_fill_value) const
 
constexpr uint01 dimensionalValue () const
 
constexpr uint01 dimensionalIndex () const
 
constexpr operator uint01 & ()
 
constexpr operator const uint01 & () const
 
constexpr uint01 magnitudeSquared () const
 
constexpr t_magnitude_type magnitude () const
 
constexpr Vector< t_dims, t_norm_type > normalized (Vector< t_dims, t_norm_type > value_if_nan=Constant< Vector< t_dims, t_norm_type > >::NaN) const
 
constexpr uint01 product () const
 
constexpr uint01 sum () const
 
constexpr uint01operator[] (uint01 dimension_index)
 
constexpr const uint01operator[] (const uint01 dimension_index) const
 
constexpr Vector< t_dims, uint01operator- () const
 
constexpr Vector< t_dims, uint01 > & operator= (const uint01 &scaler)
 

Static Public Member Functions

static NDEVR_BASE_API UUID CreateUUID ()
 
static NDEVR_BASE_API constexpr UUID CreateUUID (const char *identifier)
 
- Static Public Member Functions inherited from Vector< 16, uint01 >
static constexpr uint01 NumberOfDimensions ()
 
static constexpr uint01 Type ()
 

Additional Inherited Members

- Protected Attributes inherited from Vector< 16, uint01 >
uint01 m_values [t_dims]
 

Detailed Description


Class: UUID

A universally unique identifier (UUID) is a 128-bit number used to identify information in computer systems. The term globally unique identifier (GUID) is also used.

UUIDs are for practical purposes unique, without depending for their uniqueness on a central registration authority or coordination between the parties generating them, unlike most other numbering schemes. While the probability that a UUID will be duplicated is not zero, it is close enough to zero to be negligible.

Thus, anyone can create a UUID and use it to identify something with near certainty that the identifier does not duplicate one that has already been, or will be, created to identify something else. Information labeled with UUIDs by independent parties can therefore be later combined into a single database, or transmitted on the same channel, without needing to resolve conflicts between identifiers.

Author: Tyler Parke

Date: 2017-11-17

Constructor & Destructor Documentation

◆ UUID() [1/13]

UUID ( )
inlineconstexpr

◆ UUID() [2/13]

UUID ( const Vector< 16, uint01 > & bytes)
inlineexplicitconstexprnoexcept

◆ UUID() [3/13]

UUID ( const bool & other)
inlineexplicitnoexcept

◆ UUID() [4/13]

UUID ( const uint01 & other)
inlineexplicitnoexcept

◆ UUID() [5/13]

UUID ( const uint02 & other)
inlineexplicitnoexcept

◆ UUID() [6/13]

UUID ( const uint04 & other)
inlineexplicitnoexcept

◆ UUID() [7/13]

UUID ( const uint08 & other)
inlineexplicitnoexcept

◆ UUID() [8/13]

UUID ( const sint01 & other)
inlineexplicitnoexcept

◆ UUID() [9/13]

UUID ( const sint02 & other)
inlineexplicitnoexcept

◆ UUID() [10/13]

UUID ( const sint04 & other)
inlineexplicitnoexcept

◆ UUID() [11/13]

UUID ( const sint08 & other)
inlineexplicitnoexcept

◆ UUID() [12/13]

UUID ( const fltp04 & other)
inlineexplicitnoexcept

◆ UUID() [13/13]

UUID ( const fltp08 & other)
inlineexplicitnoexcept

Member Function Documentation

◆ appendUUID() [1/11]

UUID appendUUID ( bool offset) const
nodiscard

◆ appendUUID() [2/11]

UUID appendUUID ( const char * identifier) const
nodiscard

◆ appendUUID() [3/11]

UUID appendUUID ( const UUID & offset) const
nodiscard

◆ appendUUID() [4/11]

UUID appendUUID ( const Vector< 3, fltp04 > & offset) const
nodiscard

◆ appendUUID() [5/11]

template<uint01 t_size, class t_type >
UUID appendUUID ( const Vector< t_size, t_type > & offset) const
inlinenodiscard

◆ appendUUID() [6/11]

UUID appendUUID ( fltp04 offset) const
nodiscard

◆ appendUUID() [7/11]

UUID appendUUID ( fltp08 offset) const
nodiscard

◆ appendUUID() [8/11]

UUID appendUUID ( sint04 offset) const
nodiscard

◆ appendUUID() [9/11]

UUID appendUUID ( sint08 offset) const
nodiscard

◆ appendUUID() [10/11]

UUID appendUUID ( uint04 offset) const
nodiscard

◆ appendUUID() [11/11]

UUID appendUUID ( uint08 offset) const
nodiscard

◆ CreateUUID() [1/2]

UUID CreateUUID ( )
static

Fn: static UUID UUID::CreateUUID();

Creates the uuid.

Author: Tyler Parke

Date: 2017-11-17

Returns: The new uuid.

◆ CreateUUID() [2/2]

static NDEVR_BASE_API constexpr UUID CreateUUID ( const char * identifier)
inlinestaticconstexpr

◆ getUniquePointer()

uint01 * getUniquePointer ( ) const

Fn: uint01* UUID::getUniquePointer() const;

Gets unique pointer.

Author: Tyler Parke

Date: 2017-11-17

Returns: Null if it fails, else the unique pointer.

◆ hash()

size_t hash ( ) const
inlineconstexpr

◆ operator()()

size_t operator() ( ) const
inlineconstexpr

◆ operator<()

bool operator< ( const UUID & other) const
inline

◆ operator<=()

bool operator<= ( const UUID & other) const
inline

◆ operator>()

bool operator> ( const UUID & other) const
inline

◆ operator>=()

bool operator>= ( const UUID & other) const
inline

The documentation for this class was generated from the following files: