Spicy
Public Member Functions | List of all members
hilti::rt::type_info::Tuple Class Reference

#include <type-info.h>

Public Member Functions

 Tuple (std::vector< tuple::Element > elements)
 
const auto & elements () const
 
auto iterate (const Value &v) const
 

Detailed Description

Auxiliary type information for type `tuple.

Constructor & Destructor Documentation

◆ Tuple()

hilti::rt::type_info::Tuple::Tuple ( std::vector< tuple::Element elements)
inline

Constructor

Parameters
labelsthe tuple's elements

Member Function Documentation

◆ elements()

const auto& hilti::rt::type_info::Tuple::elements ( ) const
inline

Returns the tuple's elements.

◆ iterate()

auto hilti::rt::type_info::Tuple::iterate ( const Value v) const
inline

Returns a vector that can be iterated over to visit all the elements.

Parameters
vthe value referring to the tuple to iterate over
Returns
a vector of pairs (element, value) where element is the current `tuple::Element and value is the element's value.

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