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

A type definition within a contract. More...

#include <TypeChecker.hpp>

Collaboration diagram for Ark::types::Typedef:
[legend]

Public Member Functions

 Typedef (const std::string_view &type_name, const ValueType type, const bool is_variadic=false)
 
 Typedef (const std::string_view &type_name, const std::vector< ValueType > &type_list, const bool is_variadic=false)
 

Public Attributes

std::string_view name
 
std::vector< ValueTypetypes
 
bool variadic
 

Detailed Description

A type definition within a contract.

Definition at line 63 of file TypeChecker.hpp.

Constructor & Destructor Documentation

◆ Typedef() [1/2]

Ark::types::Typedef::Typedef ( const std::string_view & type_name,
const ValueType type,
const bool is_variadic = false )
inline

Definition at line 69 of file TypeChecker.hpp.

◆ Typedef() [2/2]

Ark::types::Typedef::Typedef ( const std::string_view & type_name,
const std::vector< ValueType > & type_list,
const bool is_variadic = false )
inline

Definition at line 73 of file TypeChecker.hpp.

Member Data Documentation

◆ name

std::string_view Ark::types::Typedef::name

Definition at line 65 of file TypeChecker.hpp.

Referenced by Ark::types::displayContract().

◆ types

std::vector<ValueType> Ark::types::Typedef::types

Definition at line 66 of file TypeChecker.hpp.

Referenced by Ark::types::displayContract().

◆ variadic

bool Ark::types::Typedef::variadic

Definition at line 67 of file TypeChecker.hpp.

Referenced by Ark::types::displayContract().


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