Safe DDS
eprosima::safedds::platform::IPlatform Class Referenceabstract

Platform interface. More...

#include <IPlatform.hpp>

Public Member Functions

virtual execution::TimePoint get_current_timepoint () noexcept=0
 Get current time. More...
 
virtual void fatal_error (const FatalErrorCode &error_code) noexcept=0
 On fatal error exit. More...
 
virtual void * allocate (uint32_t size, uint32_t alignment) noexcept=0
 Allocate memory. More...
 

Protected Member Functions

 ~IPlatform () noexcept=default
 Default destructor. More...
 
 IPlatform () noexcept=default
 Default creation. More...
 
 IPlatform (const IPlatform &) noexcept=delete
 Copy deleted. More...
 
 IPlatform (IPlatform &&) noexcept=delete
 Movement deleted. More...
 
IPlatformoperator= (const IPlatform &) noexcept=delete
 Copy operator deleted. More...
 
IPlatformoperator= (IPlatform &&) noexcept=delete
 Movement operator deleted. More...
 

Detailed Description

Platform interface.

Constructor & Destructor Documentation

◆ ~IPlatform()

eprosima::safedds::platform::IPlatform::~IPlatform ( )
protecteddefaultnoexcept

Default destructor.

◆ IPlatform() [1/3]

eprosima::safedds::platform::IPlatform::IPlatform ( )
protecteddefaultnoexcept

Default creation.

◆ IPlatform() [2/3]

eprosima::safedds::platform::IPlatform::IPlatform ( const IPlatform )
protecteddeletenoexcept

Copy deleted.

◆ IPlatform() [3/3]

eprosima::safedds::platform::IPlatform::IPlatform ( IPlatform &&  )
protecteddeletenoexcept

Movement deleted.

Member Function Documentation

◆ allocate()

virtual void* eprosima::safedds::platform::IPlatform::allocate ( uint32_t  size,
uint32_t  alignment 
)
pure virtualnoexcept

Allocate memory.

Parameters
sizememory size to allocate.
alignmentmemory alignment of the allocation.
Returns
pointer to memory block.

Implemented in eprosima::safedds::dds::SafeDomainParticipantFactoryPlatform.

◆ fatal_error()

virtual void eprosima::safedds::platform::IPlatform::fatal_error ( const FatalErrorCode &  error_code)
pure virtualnoexcept

On fatal error exit.

This method will be called whenever a fatal error is detected, and shall never return.

Parameters
error_codeerror code.

◆ get_current_timepoint()

virtual execution::TimePoint eprosima::safedds::platform::IPlatform::get_current_timepoint ( )
pure virtualnoexcept

Get current time.

Returns
TimePoint.

Implemented in eprosima::safedds::dds::SafeDomainParticipantFactoryPlatform.

◆ operator=() [1/2]

IPlatform& eprosima::safedds::platform::IPlatform::operator= ( const IPlatform )
protecteddeletenoexcept

Copy operator deleted.

◆ operator=() [2/2]

IPlatform& eprosima::safedds::platform::IPlatform::operator= ( IPlatform &&  )
protecteddeletenoexcept

Movement operator deleted.


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