LibQuicR
quicr::TrackHash Struct Reference

Cached hashes for a full track name and its components. More...

#include <track_name.h>

Public Member Functions

 TrackHash (const uint64_t name_space, const uint64_t name) noexcept
 Construct from precomputed component hashes. More...
 
 TrackHash (const FullTrackName &ftn) noexcept
 Compute component and combined hashes for a full track name. More...
 
 TrackHash (const TrackHash &other)=default
 Copy cached track hashes. More...
 
TrackHash & operator= (const TrackHash &other)=default
 Copy-assign cached track hashes. More...
 

Public Attributes

std::uint64_t track_namespace_hash = 0
 Hash of the namespace bytes. More...
 
std::uint64_t track_name_hash = 0
 Hash of the track-name bytes. More...
 
uint64_t track_fullname_hash = 0
 Combined namespace and track-name hash. More...
 

Detailed Description

Cached hashes for a full track name and its components.

Constructor & Destructor Documentation

◆ TrackHash() [1/3]

quicr::TrackHash::TrackHash ( const uint64_t  name_space,
const uint64_t  name 
)
inlinenoexcept

Construct from precomputed component hashes.

Parameters
name_spaceNamespace hash.
nameTrack-name hash.

◆ TrackHash() [2/3]

quicr::TrackHash::TrackHash ( const FullTrackName &  ftn)
inlinenoexcept

Compute component and combined hashes for a full track name.

Parameters
ftnFull track name to hash.

◆ TrackHash() [3/3]

quicr::TrackHash::TrackHash ( const TrackHash &  other)
default

Copy cached track hashes.

Parameters
otherHash object to copy.

Member Function Documentation

◆ operator=()

TrackHash& quicr::TrackHash::operator= ( const TrackHash &  other)
default

Copy-assign cached track hashes.

Parameters
otherHash object to copy.
Returns
This hash object.

Member Data Documentation

◆ track_fullname_hash

uint64_t quicr::TrackHash::track_fullname_hash = 0

Combined namespace and track-name hash.

◆ track_name_hash

std::uint64_t quicr::TrackHash::track_name_hash = 0

Hash of the track-name bytes.

◆ track_namespace_hash

std::uint64_t quicr::TrackHash::track_namespace_hash = 0

Hash of the namespace bytes.


The documentation for this struct was generated from the following file: