Class StreamableManager is a singleton manager class that organizes the actual packing and unpacking of concrete Streamable objects for SAMRAI::tbox::AbstractStream based communication.
More...
#include </home/runner/work/IBAMR/IBAMR/ibtk/include/ibtk/StreamableManager.h>
Class StreamableManager is a singleton manager class that organizes the actual packing and unpacking of concrete Streamable objects for SAMRAI::tbox::AbstractStream based communication.
- See also
- Streamable
-
StreamableFactory
◆ checkFactoryRegistration()
Check to see if a StreamableFactory has been registered with the manager.
- Returns
- true if the factory has been registered, false otherwise.
- Note
- This method simply checks to see if a StreamableFactory with the same Streamable ID has been registered with the manager. Every different Streamable/StreamableFactory type must have a unique ID.
◆ createUniqueID()
int IBTK::StreamableManager::createUniqueID |
( |
| ) |
|
|
staticprotected |
Generate a unique ID number.
Every call to createUniqueID() returns a different integer, simplifying the task of generating ID numbers for StreamableFactory objects.
◆ freeManager()
void IBTK::StreamableManager::freeManager |
( |
| ) |
|
|
static |
Deallocate the StreamableManager instance.
It is not necessary to call this function at program termination, since it is automatically called by the ShutdownRegistry class.
◆ getManager()
Return a pointer to the instance of the Streamable manager. All access to the singleton StreamableManager object is through the getManager() function.
Note that when the manager is accessed for the first time, the freeManager static method is registered with the ShutdownRegistry class. Consequently, an allocated manager is freed at program completion. Thus, users of this class do not explicitly allocate or deallocate the manager instances.
- Returns
- A pointer to the data manager instance.
◆ getUnregisteredID()
int IBTK::StreamableManager::getUnregisteredID |
( |
| ) |
|
|
static |
◆ registerFactory()
Register a StreamableFactory with the manager.
Each factory object registered with the manager is provided with a unique ID.
- Note
- To ensure that each MPI process uses the same streamable ID for each streamable class registered with the manager, this method is collective on all MPI processes!
The documentation for this class was generated from the following files:
- /home/runner/work/IBAMR/IBAMR/ibtk/include/ibtk/StreamableManager.h
- /home/runner/work/IBAMR/IBAMR/ibtk/include/ibtk/private/StreamableManager-inl.h
- /home/runner/work/IBAMR/IBAMR/ibtk/src/utilities/StreamableManager.cpp