OpenDDS  Snapshot(2023/04/28-20:55)
Public Member Functions | Public Attributes | List of all members
OpenDDS::XTypes::TypeObjectHashId Struct Reference

#include <TypeObject.h>

Public Member Functions

 TypeObjectHashId ()
 
 TypeObjectHashId (const EquivalenceKind &a_kind, const EquivalenceHashWrapper &a_hash)
 
bool operator< (const TypeObjectHashId &other) const
 

Public Attributes

EquivalenceKind kind
 
EquivalenceHash hash
 

Detailed Description

Definition at line 338 of file TypeObject.h.

Constructor & Destructor Documentation

◆ TypeObjectHashId() [1/2]

OpenDDS::XTypes::TypeObjectHashId::TypeObjectHashId ( )
inline

Definition at line 342 of file TypeObject.h.

343  : kind(0)
344  {}

◆ TypeObjectHashId() [2/2]

OpenDDS::XTypes::TypeObjectHashId::TypeObjectHashId ( const EquivalenceKind a_kind,
const EquivalenceHashWrapper a_hash 
)
inline

Definition at line 346 of file TypeObject.h.

References OpenDDS::XTypes::EquivalenceHashWrapper::eh_.

348  : kind(a_kind)
349  {
350  std::memcpy(hash, a_hash.eh_, sizeof hash);
351  }

Member Function Documentation

◆ operator<()

bool OpenDDS::XTypes::TypeObjectHashId::operator< ( const TypeObjectHashId other) const
inline

Definition at line 353 of file TypeObject.h.

References hash, and kind.

354  {
355  if (kind < other.kind) return true;
356  if (other.kind < kind) return false;
357  int ret = std::memcmp(hash, other.hash, sizeof hash);
358  if (ret < 0) return true;
359  if (ret > 0) return false;
360  return false;
361  }

Member Data Documentation

◆ hash

EquivalenceHash OpenDDS::XTypes::TypeObjectHashId::hash

◆ kind

EquivalenceKind OpenDDS::XTypes::TypeObjectHashId::kind

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