OpenDDS  Snapshot(2023/04/07-19:43)
Public Member Functions | Public Attributes | List of all members
OpenDDS::XTypes::MinimalMemberDetail Struct Reference

#include <TypeObject.h>

Public Member Functions

 MinimalMemberDetail ()
 
 MinimalMemberDetail (ACE_CDR::Octet a, ACE_CDR::Octet b, ACE_CDR::Octet c, ACE_CDR::Octet d)
 
 MinimalMemberDetail (const NameHash &a_name_hash)
 
 MinimalMemberDetail (const OPENDDS_STRING &name)
 
bool operator== (const MinimalMemberDetail &other) const
 
bool operator!= (const MinimalMemberDetail &other) const
 

Public Attributes

NameHash name_hash
 

Detailed Description

Definition at line 1276 of file TypeObject.h.

Constructor & Destructor Documentation

◆ MinimalMemberDetail() [1/4]

OpenDDS::XTypes::MinimalMemberDetail::MinimalMemberDetail ( )
inline

Definition at line 1279 of file TypeObject.h.

1280  {
1281  name_hash[0] = name_hash[1] = name_hash[2] = name_hash[3] = 0;
1282  }

◆ MinimalMemberDetail() [2/4]

OpenDDS::XTypes::MinimalMemberDetail::MinimalMemberDetail ( ACE_CDR::Octet  a,
ACE_CDR::Octet  b,
ACE_CDR::Octet  c,
ACE_CDR::Octet  d 
)
inline

Definition at line 1284 of file TypeObject.h.

1285  {
1286  name_hash[0] = a; name_hash[1] = b; name_hash[2] = c; name_hash[3] = d;
1287  }

◆ MinimalMemberDetail() [3/4]

OpenDDS::XTypes::MinimalMemberDetail::MinimalMemberDetail ( const NameHash a_name_hash)
inlineexplicit

Definition at line 1289 of file TypeObject.h.

References name, and OPENDDS_STRING.

1290  {
1291  std::memcpy(&name_hash, &a_name_hash, sizeof name_hash);
1292  }

◆ MinimalMemberDetail() [4/4]

OpenDDS::XTypes::MinimalMemberDetail::MinimalMemberDetail ( const OPENDDS_STRING name)
explicit

Definition at line 38 of file TypeObject.cpp.

References OpenDDS::DCPS::MD5Hash(), and name_hash.

39 {
40  unsigned char result[16];
41  DCPS::MD5Hash(result, name.c_str(), name.size());
42 
43  std::memcpy(name_hash, result, sizeof name_hash);
44 }
void MD5Hash(MD5Result &result, const void *input, size_t size)
Definition: Hash.cpp:323
const char *const name
Definition: debug.cpp:60

Member Function Documentation

◆ operator!=()

bool OpenDDS::XTypes::MinimalMemberDetail::operator!= ( const MinimalMemberDetail other) const
inline

Definition at line 1301 of file TypeObject.h.

1302  {
1303  return !(*this == other);
1304  }

◆ operator==()

bool OpenDDS::XTypes::MinimalMemberDetail::operator== ( const MinimalMemberDetail other) const
inline

Definition at line 1296 of file TypeObject.h.

References name_hash, and OpenDDS::XTypes::name_hash_equal().

1297  {
1298  return name_hash_equal(name_hash, other.name_hash);
1299  }
bool name_hash_equal(const NameHash &x, const NameHash &y)
Definition: TypeObject.h:301

Member Data Documentation

◆ name_hash

NameHash OpenDDS::XTypes::MinimalMemberDetail::name_hash

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