![]() |
F´ Flight Software - C/C++ Documentation
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... | |
| template<class Interface , class Implementation , class StorageType , class Argument > | |
| Interface * | makeDelegate (StorageType &aligned_new_memory, const Interface *to_copy, const Argument &argument) |
| Make a delegate of type Interface using Implementation with copy-constructor and constructor-argument support. 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.
|
inline |
Make a delegate of type Interface using Implementation with copy-constructor and constructor-argument support.
As the copy-constructor overload, except a null to_copy constructs the Implementation from argument (e.g. RawTimeInterface selecting a RawTimeSource).
| Interface | interface the delegate supports (e.g. RawTimeInterface) |
| Implementation | implementation class of the delegate (e.g. PosixRawTime) |
| Argument | type of the constructor argument |
| aligned_new_memory | memory to be filled via placement new call |
| to_copy | pointer to Interface to be copied by copy constructor, or nullptr to construct from argument |
| argument | constructor argument used when to_copy is nullptr |
Definition at line 119 of file Delegate.hpp.