Spicy
Public Types | Public Member Functions | List of all members
hilti::rt::type_info::detail::DereferencableType Class Reference

#include <type-info.h>

Inheritance diagram for hilti::rt::type_info::detail::DereferencableType:
hilti::rt::type_info::Optional hilti::rt::type_info::Result hilti::rt::type_info::SetIterator hilti::rt::type_info::StrongReference hilti::rt::type_info::ValueReference hilti::rt::type_info::VectorIterator hilti::rt::type_info::WeakReference

Public Types

using Accessor = const void *(*)(const Value &v)
 

Public Member Functions

 DereferencableType (const TypeInfo *vtype, Accessor accessor)
 
Value value (const Value &v) const
 
const TypeInfovalueType () const
 

Detailed Description

Base class for auxiliary type information pertaining to types that contain a single element of another type.

Member Typedef Documentation

◆ Accessor

Type of a function that, given the outer value, returns a pointer to the contained element.

Constructor & Destructor Documentation

◆ DereferencableType()

hilti::rt::type_info::detail::DereferencableType::DereferencableType ( const TypeInfo vtype,
Accessor  accessor 
)
inline

Constructor.

Parameters
vtypetype of the contained elements
accessorfunction retrieving a pointer to the contained element

Member Function Documentation

◆ value()

Value hilti::rt::type_info::detail::DereferencableType::value ( const Value v) const
inline

Returns the contained value.

◆ valueType()

const TypeInfo* hilti::rt::type_info::detail::DereferencableType::valueType ( ) const
inline

Returns the type of elements, as passed into the constructor.


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