OpenDDS  Snapshot(2023/04/07-19:43)
Public Member Functions | Private Attributes | List of all members
OpenDDS::DCPS::SerializedSizeBound Class Reference

#include <TypeSupportImpl.h>

Public Member Functions

 SerializedSizeBound ()
 
 SerializedSizeBound (size_t bound)
 
 operator bool () const
 
size_t get () const
 
OPENDDS_STRING to_string () const
 

Private Attributes

bool bounded_
 
size_t bound_
 

Detailed Description

Definition at line 35 of file TypeSupportImpl.h.

Constructor & Destructor Documentation

◆ SerializedSizeBound() [1/2]

OpenDDS::DCPS::SerializedSizeBound::SerializedSizeBound ( )
inline

Definition at line 37 of file TypeSupportImpl.h.

◆ SerializedSizeBound() [2/2]

OpenDDS::DCPS::SerializedSizeBound::SerializedSizeBound ( size_t  bound)
inline

Definition at line 43 of file TypeSupportImpl.h.

44  : bounded_(true)
45  , bound_(bound)
46  {
47  }

Member Function Documentation

◆ get()

size_t OpenDDS::DCPS::SerializedSizeBound::get ( void  ) const
inline

◆ operator bool()

OpenDDS::DCPS::SerializedSizeBound::operator bool ( ) const
inline

Definition at line 49 of file TypeSupportImpl.h.

50  {
51  return bounded_;
52  }

◆ to_string()

OPENDDS_STRING OpenDDS::DCPS::SerializedSizeBound::to_string ( void  ) const
inline

Definition at line 60 of file TypeSupportImpl.h.

References OpenDDS::DCPS::to_dds_string().

61  {
62  return bounded_ ? to_dds_string(bound_) : "<unbounded>";
63  }
String to_dds_string(unsigned short to_convert)

Member Data Documentation

◆ bound_

size_t OpenDDS::DCPS::SerializedSizeBound::bound_
private

Definition at line 67 of file TypeSupportImpl.h.

◆ bounded_

bool OpenDDS::DCPS::SerializedSizeBound::bounded_
private

Definition at line 66 of file TypeSupportImpl.h.


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