![]() |
Spicy
|
#include <type-info.h>
Public Member Functions | |
template<typename T > | |
Parent (const StrongReference< T > &value) | |
Parent () | |
void | tie (hilti::rt::StrongReferenceGeneric value) |
Friends | |
class | type_info::Value |
Helper class to provide safe traversal of HILTI values through the type-info API. To initiate traversal, an instance of Parent
is needed that has its life-time tied to a strong reference encapsulating the value. The instance will keep the value alive during its own lifetime, and the traversal will catch if that ends prematurely.
|
inline |
Constructor that ties existing HILTI value to instance.
|
inline |
Constructor that leaves instance initially untied.
|
inline |
Tie instances to an existing HILTI value.