ArkScript
A small, fast, functional and scripting language for video games
Ark::internal::ValTableElem Struct Reference

A Compiler Value class helper to handle multiple types. More...

#include <ValTableElem.hpp>

Public Member Functions

 ValTableElem (double value) noexcept
 
 ValTableElem (long value) noexcept
 
 ValTableElem (const std::string &value) noexcept
 
 ValTableElem (const Node &v) noexcept
 
 ValTableElem (std::size_t value) noexcept
 
bool operator== (const ValTableElem &A) const noexcept
 

Public Attributes

std::variant< double, std::string, std::size_t > value
 
ValTableElemType type
 

Detailed Description

A Compiler Value class helper to handle multiple types.

Definition at line 37 of file ValTableElem.hpp.

Constructor & Destructor Documentation

◆ ValTableElem() [1/5]

Ark::internal::ValTableElem::ValTableElem ( double  value)
explicitnoexcept

Definition at line 5 of file ValTableElem.cpp.

◆ ValTableElem() [2/5]

Ark::internal::ValTableElem::ValTableElem ( long  value)
explicitnoexcept

Definition at line 10 of file ValTableElem.cpp.

◆ ValTableElem() [3/5]

Ark::internal::ValTableElem::ValTableElem ( const std::string &  value)
explicitnoexcept

Definition at line 15 of file ValTableElem.cpp.

◆ ValTableElem() [4/5]

Ark::internal::ValTableElem::ValTableElem ( const Node v)
explicitnoexcept

Definition at line 20 of file ValTableElem.cpp.

References Ark::internal::Number, and Ark::internal::String.

◆ ValTableElem() [5/5]

Ark::internal::ValTableElem::ValTableElem ( std::size_t  value)
explicitnoexcept

Definition at line 34 of file ValTableElem.cpp.

Member Function Documentation

◆ operator==()

bool Ark::internal::ValTableElem::operator== ( const ValTableElem A) const
noexcept

Definition at line 39 of file ValTableElem.cpp.

Member Data Documentation

◆ type

ValTableElemType Ark::internal::ValTableElem::type

Definition at line 40 of file ValTableElem.hpp.

◆ value

std::variant<double, std::string, std::size_t> Ark::internal::ValTableElem::value

Definition at line 39 of file ValTableElem.hpp.


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