Simple Lua
A Simple C++ Lua Wrapper
Loading...
Searching...
No Matches
SL::Table::Data Struct Reference

Represents a value in the table stored in memory with a type. More...

#include <Table.hpp>

Static Public Member Functions

template<typename T >
static SL_SYMBOL Data fromValue (const T &value)
 Construct a data entry from a value.
 
template<typename T >
static SL_SYMBOL std::shared_ptr< void > emplace (const T &value)
 Allocate room and copy the memory of a given value.
 

Public Attributes

std::shared_ptr< void > data
 
int type
 

Detailed Description

Represents a value in the table stored in memory with a type.

Member Function Documentation

◆ emplace()

template<typename T >
static SL_SYMBOL std::shared_ptr< void > SL::Table::Data::emplace ( const T & value)
static

Allocate room and copy the memory of a given value.

Template Parameters
TType of the entry
Parameters
valueValue of the entry
Returns
std::shared_ptr<void> Pointer to the allocated entry

◆ fromValue()

template<typename T >
static SL_SYMBOL Data SL::Table::Data::fromValue ( const T & value)
static

Construct a data entry from a value.

Template Parameters
TType of the data entry
Parameters
valueValue of the entry
Returns
Data The entry

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