Spicy
Public Member Functions | Friends | List of all members
hilti::rt::type_info::value::Parent Class Reference

#include <type-info.h>

Inheritance diagram for hilti::rt::type_info::value::Parent:
spicy::rt::ParsedUnit

Public Member Functions

template<typename T >
 Parent (const StrongReference< T > &value)
 
 Parent ()
 
void tie (hilti::rt::StrongReferenceGeneric value)
 

Friends

class type_info::Value
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Parent() [1/2]

template<typename T >
hilti::rt::type_info::value::Parent::Parent ( const StrongReference< T > &  value)
inline

Constructor that ties existing HILTI value to instance.

◆ Parent() [2/2]

hilti::rt::type_info::value::Parent::Parent ( )
inline

Constructor that leaves instance initially untied.

Member Function Documentation

◆ tie()

void hilti::rt::type_info::value::Parent::tie ( hilti::rt::StrongReferenceGeneric  value)
inline

Tie instances to an existing HILTI value.


The documentation for this class was generated from the following file: