Cyclone ISO C++ API Reference Guide
dds::core::policy::ResourceLimits Class Reference

More...

#include "CorePolicy.hpp"

Inherits dds::core::Value< D >.

Public Member Functions

 ResourceLimits (const ResourceLimits &other)
 
 ResourceLimits (int32_t max_samples=dds::core::LENGTH_UNLIMITED, int32_t max_instances=dds::core::LENGTH_UNLIMITED, int32_t max_samples_per_instance=dds::core::LENGTH_UNLIMITED)
 
int32_t max_instances () const
 
ResourceLimitsmax_instances (int32_t max_instances)
 
int32_t max_samples () const
 
ResourceLimitsmax_samples (int32_t max_samples)
 
int32_t max_samples_per_instance () const
 
ResourceLimitsmax_samples_per_instance (int32_t max_samples_per_instance)
 
bool operator!= (const Value &other) const
 
D * operator-> ()
 
const D * operator-> () const
 
bool operator== (const Value &other) const
 

Detailed Description

Definition at line 1159 of file CorePolicy.hpp.

Constructor & Destructor Documentation

◆ ResourceLimits() [1/2]

dds::core::policy::ResourceLimits::ResourceLimits ( int32_t  max_samples = dds::core::LENGTH_UNLIMITED,
int32_t  max_instances = dds::core::LENGTH_UNLIMITED,
int32_t  max_samples_per_instance = dds::core::LENGTH_UNLIMITED 
)

Creates a ResourceLimits QoS instance

Parameters
max_samplesthe max_samples value
max_instancesthe max_instances value
max_samples_per_instancethe max_samples_per_instance value

◆ ResourceLimits() [2/2]

dds::core::policy::ResourceLimits::ResourceLimits ( const ResourceLimits other)

Copies a ResourceLimits QoS instance

Parameters
otherthe ResourceLimits QoS instance to copy

Member Function Documentation

◆ max_instances() [1/2]

int32_t dds::core::policy::ResourceLimits::max_instances ( ) const

Gets the max_instances value

Returns
the max_instances value

◆ max_instances() [2/2]

ResourceLimits& dds::core::policy::ResourceLimits::max_instances ( int32_t  max_instances)

Sets the max_instances value

Parameters
max_instancesthe max_instances value

◆ max_samples() [1/2]

int32_t dds::core::policy::ResourceLimits::max_samples ( ) const

Gets the max_samples value

Returns
the max_samples value

◆ max_samples() [2/2]

ResourceLimits& dds::core::policy::ResourceLimits::max_samples ( int32_t  max_samples)

Sets the max_samples value

Parameters
max_samplesthe max_samples value

◆ max_samples_per_instance() [1/2]

int32_t dds::core::policy::ResourceLimits::max_samples_per_instance ( ) const

Gets the max_samples_per_instance value

Returns
the max_samples_per_instance value

◆ max_samples_per_instance() [2/2]

ResourceLimits& dds::core::policy::ResourceLimits::max_samples_per_instance ( int32_t  max_samples_per_instance)

Sets the max_samples_per_instance value

Parameters
max_samples_per_instancethe max_samples_per_instance value

◆ operator!=()

template<typename D >
bool dds::core::Value< D >::operator!= ( const Value< D > &  other) const
inherited

Compare this Value with another Value

Parameters
otherValue
Returns
true if not equal

◆ operator->() [1/2]

template<typename D >
D* dds::core::Value< D >::operator-> ( )
inherited

The operator->() is provided to be able to directly invoke functions on the delegate.

The decision to provide direct access to the delegate was motivated by the need for providing a way that was not invasive with respect to the CXXDDS API and yet would allow for vendor-specific extension. Thus vendor-specific extensions can be invoked on the Value and on all its subclasses as follows:

my_dds_value.standard_function();
my_dds_value->vendor_specific_extension();
Returns
a reference to delegate.

◆ operator->() [2/2]

template<typename D >
const D* dds::core::Value< D >::operator-> ( ) const
inherited

The operator->() is provided to be able to directly invoke functions on the delegate.

The decision to provide direct access to the delegate was motivated by the need for providing a way that was not invasive with respect to the CXXDDS API and yet would allow for vendor-specific extension. Thus vendor-specific extensions can be invoked on the Value and on all its subclasses as follows:

my_dds_value.standard_function();
my_dds_value->vendor_specific_extension();
Returns
a reference to delegate.

◆ operator==()

template<typename D >
bool dds::core::Value< D >::operator== ( const Value< D > &  other) const
inherited

Compare this Value with another Value

Parameters
otherValue
Returns
true if equal

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