Safe DDS
eprosima::safedds::memory::IStringView Interface Referenceabstract

Provides a view on top of a string. More...

#include <IStringView.hpp>

Public Member Functions

virtual uint32_t const_string_size () const noexcept=0
 Retrieves the size of the string. More...
 
virtual char const * const_string_data () const noexcept=0
 Retrieves a const pointer to the string. More...
 

Protected Member Functions

 ~IStringView () noexcept=default
 Protected destructor ownership defined on creation. More...
 
 IStringView () noexcept=default
 Default creation. More...
 
 IStringView (const IStringView &) noexcept=default
 Copy allowed. More...
 
 IStringView (IStringView &&) noexcept=default
 Movement allowed. More...
 
IStringViewoperator= (const IStringView &) noexcept=default
 Copy operator allowed. More...
 
IStringViewoperator= (IStringView &&) noexcept=default
 Movement operator allowed. More...
 

Detailed Description

Provides a view on top of a string.

Constructor & Destructor Documentation

◆ ~IStringView()

eprosima::safedds::memory::IStringView::~IStringView ( )
protecteddefaultnoexcept

Protected destructor ownership defined on creation.

◆ IStringView() [1/3]

eprosima::safedds::memory::IStringView::IStringView ( )
protecteddefaultnoexcept

Default creation.

◆ IStringView() [2/3]

eprosima::safedds::memory::IStringView::IStringView ( const IStringView )
protecteddefaultnoexcept

Copy allowed.

◆ IStringView() [3/3]

eprosima::safedds::memory::IStringView::IStringView ( IStringView &&  )
protecteddefaultnoexcept

Movement allowed.

Member Function Documentation

◆ const_string_data()

virtual char const* eprosima::safedds::memory::IStringView::const_string_data ( ) const
pure virtualnoexcept

Retrieves a const pointer to the string.

Returns
a const pointer to the string.

Implemented in eprosima::safedds::memory::container::StaticString< N >, and eprosima::safedds::memory::container::StaticString< DEFAULT_STRING_SIZE >.

◆ const_string_size()

virtual uint32_t eprosima::safedds::memory::IStringView::const_string_size ( ) const
pure virtualnoexcept

◆ operator=() [1/2]

IStringView& eprosima::safedds::memory::IStringView::operator= ( const IStringView )
protecteddefaultnoexcept

Copy operator allowed.

Returns
IStringView&.

◆ operator=() [2/2]

IStringView& eprosima::safedds::memory::IStringView::operator= ( IStringView &&  )
protecteddefaultnoexcept

Movement operator allowed.

Returns
IStringView&.

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