F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
|
Functions | |
template<class Interface , class Implementation , class StorageType > | |
Interface * | makeDelegate (StorageType &aligned_new_memory) |
Make a delegate of type Interface using Implementation without copy-constructor support (generic function) More... | |
template<class Interface , class Implementation , class StorageType > | |
Interface * | makeDelegate (StorageType &aligned_new_memory, const Interface *to_copy) |
Make a delegate of type Interface using Implementation with copy-constructor support (generic function) More... | |
|
inline |
Make a delegate of type Interface using Implementation without copy-constructor support (generic function)
This function is a generic implementation of the getDelegate
functions provided for each function within Os. This is templated over two types: Interface (e.g. TaskInterface) the interface the delegate supports, and Implementation the implementation of the interface. This function takes care of the critical requirements of the getDelegate function:
Implementors of a getDelegate
function may use this function by calling it and returning the result.
Neither Interface nor Implementation is allowed to support copy-constructors
Example: TaskInterface getDelegate (Without Copy-Constructor)
Interface | interface the delegate supports (e.g. TaskInterface) |
Implementation | implementation class of the delegate (e.g. PosixTask) |
aligned_new_memory | memory to be filled via placement new call |
Definition at line 46 of file Delegate.hpp.
|
inline |
Make a delegate of type Interface using Implementation with copy-constructor support (generic function)
This function is a generic implementation of the getDelegate
functions provided for each function within Os. This is templated over two types: Interface (e.g. TaskInterface) the interface the delegate supports, and Implementation the implementation of the interface. This function takes care of the critical requirements of the getDelegate function:
Implementors of a getDelegate
function may use this function by calling it and returning the result.
Example: FileInterface getDelegate Supporting Copy-Constructor
Interface | interface the delegate supports (e.g. FileInterface) |
Implementation | implementation class of the delegate (e.g. PosixFile) |
aligned_new_memory | memory to be filled via placement new call |
to_copy | pointer to Interface to be copied by copy constructor |
Definition at line 89 of file Delegate.hpp.