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

#include <TypeObject.h>

Collaboration diagram for OpenDDS::XTypes::AppliedAnnotationParameter:
Collaboration graph
[legend]

Public Member Functions

 AppliedAnnotationParameter ()
 
 AppliedAnnotationParameter (ACE_CDR::Octet a, ACE_CDR::Octet b, ACE_CDR::Octet c, ACE_CDR::Octet d, const AnnotationParameterValue &a_value)
 
 AppliedAnnotationParameter (const NameHash &a_name_hash, const AnnotationParameterValue &a_value)
 
bool operator< (const AppliedAnnotationParameter &other) const
 
bool operator== (const AppliedAnnotationParameter &other) const
 
bool operator!= (const AppliedAnnotationParameter &other) const
 

Public Attributes

NameHash paramname_hash
 
AnnotationParameterValue value
 

Detailed Description

Definition at line 1094 of file TypeObject.h.

Constructor & Destructor Documentation

◆ AppliedAnnotationParameter() [1/3]

OpenDDS::XTypes::AppliedAnnotationParameter::AppliedAnnotationParameter ( )
inline

Definition at line 1098 of file TypeObject.h.

1099  {
1101  }

◆ AppliedAnnotationParameter() [2/3]

OpenDDS::XTypes::AppliedAnnotationParameter::AppliedAnnotationParameter ( ACE_CDR::Octet  a,
ACE_CDR::Octet  b,
ACE_CDR::Octet  c,
ACE_CDR::Octet  d,
const AnnotationParameterValue a_value 
)
inline

Definition at line 1103 of file TypeObject.h.

1104  : value(a_value)
1105  {
1106  paramname_hash[0] = a;
1107  paramname_hash[1] = b;
1108  paramname_hash[2] = c;
1109  paramname_hash[3] = d;
1110  }

◆ AppliedAnnotationParameter() [3/3]

OpenDDS::XTypes::AppliedAnnotationParameter::AppliedAnnotationParameter ( const NameHash a_name_hash,
const AnnotationParameterValue a_value 
)
inline

Definition at line 1112 of file TypeObject.h.

1114  : value(a_value)
1115  {
1116  std::memcpy(&paramname_hash, a_name_hash, sizeof paramname_hash);
1117  }

Member Function Documentation

◆ operator!=()

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

Definition at line 1129 of file TypeObject.h.

1130  {
1131  return !(*this == other);
1132  }

◆ operator<()

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

Definition at line 1119 of file TypeObject.h.

References paramname_hash.

1120  {
1121  return std::memcmp(paramname_hash, other.paramname_hash, sizeof paramname_hash) < 0;
1122  }

◆ operator==()

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

Definition at line 1124 of file TypeObject.h.

References OpenDDS::XTypes::name_hash_equal(), paramname_hash, and value.

1125  {
1126  return name_hash_equal(paramname_hash, other.paramname_hash) && value == other.value;
1127  }
bool name_hash_equal(const NameHash &x, const NameHash &y)
Definition: TypeObject.h:301

Member Data Documentation

◆ paramname_hash

NameHash OpenDDS::XTypes::AppliedAnnotationParameter::paramname_hash

◆ value

AnnotationParameterValue OpenDDS::XTypes::AppliedAnnotationParameter::value

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