Base class, with type independent information.
More...
#include <RegisterBase.h>
|
| class | RegistrationLock |
| | Small class to manage registration lock This is used during dlopen, to avoid data races in registrations. More...
|
| |
|
| virtual void | clearStaged () noexcept=0 |
| | Clear staged objects.
|
| |
| virtual void | completeRegistration (void *image)=0 |
| | Save all staged objects from a register.
|
| |
| virtual std::vector< std::string > | getKeys () const =0 |
| | Get all registered keys.
|
| |
|
| std::shared_mutex | mutex |
| | Mutex protecting access to map.
|
| |
Base class, with type independent information.
Actual registers should inherit through the RegisterBase class below
◆ Register() [1/3]
| PLMD::Register::Register |
( |
| ) |
|
Constructor.
This keeps track of all created instances.
◆ ~Register()
| PLMD::Register::~Register |
( |
| ) |
|
|
virtualnoexcept |
◆ Register() [2/3]
| PLMD::Register::Register |
( |
Register && | | ) |
|
|
delete |
◆ Register() [3/3]
| PLMD::Register::Register |
( |
const Register & | | ) |
|
|
delete |
◆ clearStaged()
| virtual void PLMD::Register::clearStaged |
( |
| ) |
|
|
protectedpure virtualnoexcept |
◆ completeAllRegistrations()
| void PLMD::Register::completeAllRegistrations |
( |
void * | image | ) |
|
|
static |
Save all staged objects in all registers.
◆ completeRegistration()
| virtual void PLMD::Register::completeRegistration |
( |
void * | image | ) |
|
|
protectedpure virtual |
◆ getKeys()
| virtual std::vector< std::string > PLMD::Register::getKeys |
( |
| ) |
const |
|
protectedpure virtual |
◆ getKeysWithDLHandle()
| std::vector< std::string > PLMD::Register::getKeysWithDLHandle |
( |
void * | handle | ) |
const |
Get only keys registered specifically by a given image.
◆ getRegisteringFullPath()
| const std::string PLMD::Register::getRegisteringFullPath |
( |
| ) |
|
|
staticprotectednoexcept |
Return the path of the currently-loading library.
◆ imageToString()
| std::string PLMD::Register::imageToString |
( |
void * | image | ) |
|
|
staticprotected |
Internal tool to format image addresses.
◆ isDLRegistering()
| bool PLMD::Register::isDLRegistering |
( |
| ) |
|
|
staticprotectednoexcept |
Check if we are in a dlopen section.
◆ popDLRegistration()
| void PLMD::Register::popDLRegistration |
( |
| ) |
|
|
staticprivatenoexcept |
◆ pushDLRegistration()
| void PLMD::Register::pushDLRegistration |
( |
const std::string & | fullpath | ) |
|
|
staticprivate |
◆ registrationLock()
return a registration lock
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & | log, |
|
|
const Register & | reg ) |
|
friend |
◆ mutex
| std::shared_mutex PLMD::Register::mutex |
|
mutableprotected |
Mutex protecting access to map.
The documentation for this class was generated from the following files: