|
| virtual uintptr_t | registerHandler (const AttachPointMetaData &mdata)=0 |
| | Function that will be called when a handler is registered with the tool implementing the attach point.
|
| |
| virtual void | beforeHandler (uintptr_t key, std::conditional_t< std::is_pointer_v< argT >, const std::remove_pointer_t< argT > *, const argT & > arg)=0 |
| | Function to be called before the handler is called.
|
| |
| virtual void | afterHandler (uintptr_t key)=0 |
| | Function to be called after the handler is called.
|
| |
| virtual void | serializeHandlerAttachPointKey (SST::Core::Serialization::serializer &UNUSED(ser), uintptr_t &UNUSED(key)) |
| | Function that will be called to handle the key returned from registerHandler, if the AttachPoint tool is serializable.
|
| |
| virtual uintptr_t | registerHandler (const AttachPointMetaData &mdata)=0 |
| | Function that will be called when a handler is registered with the tool implementing the attach point.
|
| |
| virtual void | beforeHandler (uintptr_t key, std::conditional_t< std::is_pointer_v< argT >, const std::remove_pointer_t< argT > *, const argT & > arg)=0 |
| | Function to be called before the handler is called.
|
| |
| virtual void | afterHandler (uintptr_t key, std::conditional_t< std::is_pointer_v< void >, const std::remove_pointer_t< void > *, const void & > ret_value)=0 |
| | Function to be called after the handler is called.
|
| |
| virtual void | serializeHandlerAttachPointKey (SST::Core::Serialization::serializer &UNUSED(ser), uintptr_t &UNUSED(key)) |
| | Function that will be called to handle the key returned from registerHandler, if the AttachPoint tool is serializable.
|
| |
|
void | operator() (argT arg) |
| |
| void | attachTool (AttachPoint *tool, const AttachPointMetaData &mdata) |
| | Attaches a tool to the AttachPoint.
|
| |
| void | detachTool (AttachPoint *tool) |
| | Remove an attached tool.
|
| |
|
void | transferAttachedToolInfo (SSTHandlerBase *handler) |
| | Transfers attached tools from existing handler.
|
| |
|
virtual const char * | cls_name () const =0 |
| |
|
virtual uint32_t | cls_id () const =0 |
| |
|
virtual std::string | serialization_name () const =0 |
| |
template<typename argT>
class SST::SSTHandlerBase< void, argT >::AttachPoint
Attach Point to get notified when a handler starts and stops.
This class is used in conjuction with a Tool type base class to create various tool types to attach to the handler.
Function that will be called to handle the key returned from registerHandler, if the AttachPoint tool is serializable.
This is needed because the key is opaque to the Link, so it doesn't know how to handle it during serialization. During SIZE and PACK phases of serialization, the tool needs to store out any information that will be needed to recreate data that is reliant on the key. On UNPACK, the function needs to recreate any state and reinitialize the passed in key reference to the proper state to continue to make valid calls to beforeHandler() and afterHandler().
Since not all tools will be serializable, there is a default, empty implementation.
- Parameters
-
Function that will be called to handle the key returned from registerHandler, if the AttachPoint tool is serializable.
This is needed because the key is opaque to the Link, so it doesn't know how to handle it during serialization. During SIZE and PACK phases of serialization, the tool needs to store out any information that will be needed to recreate data that is reliant on the key. On UNPACK, the function needs to recreate any state and reinitialize the passed in key reference to the proper state to continue to make valid calls to beforeHandler() and afterHandler().
Since not all tools will be serializable, there is a default, empty implementation.
- Parameters
-