GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
chaiscript::eval::Compiled_AST_Node< T > Struct Template Reference

#include <chaiscript_eval.hpp>

Inheritance diagram for chaiscript::eval::Compiled_AST_Node< T >:
Collaboration diagram for chaiscript::eval::Compiled_AST_Node< T >:

Public Member Functions

 Compiled_AST_Node (AST_Node_Impl_Ptr< T > t_original_node, std::vector< AST_Node_Impl_Ptr< T > > t_children, std::function< Boxed_Value(const std::vector< AST_Node_Impl_Ptr< T > > &, const chaiscript::detail::Dispatch_State &t_ss)> t_func)
Boxed_Value eval_internal (const chaiscript::detail::Dispatch_State &t_ss) const override
Public Member Functions inherited from chaiscript::eval::AST_Node_Impl< T >
 AST_Node_Impl (std::string t_ast_node_text, AST_Node_Type t_id, Parse_Location t_loc, std::vector< AST_Node_Impl_Ptr< T > > t_children=std::vector< AST_Node_Impl_Ptr< T > >())
std::vector< std::reference_wrapper< AST_Node > > get_children () const final
Boxed_Value eval (const chaiscript::detail::Dispatch_State &t_e) const final
Public Member Functions inherited from chaiscript::AST_Node
const std::string & filename () const
const File_Position & start () const
const File_Position & end () const
std::string pretty_print () const
std::string to_string (const std::string &t_prepend="") const
 Prints the contents of an AST node, including its children, recursively.
virtual ~AST_Node ()=default
 AST_Node (AST_Node &&)=default
AST_Node & operator= (AST_Node &&)=default
 AST_Node (const AST_Node &)=delete
AST_Node & operator= (const AST_Node &)=delete

Public Attributes

std::function< Boxed_Value(const std::vector< AST_Node_Impl_Ptr< T > > &, const chaiscript::detail::Dispatch_State &t_ss)> m_func
AST_Node_Impl_Ptr< T > m_original_node
Public Attributes inherited from chaiscript::eval::AST_Node_Impl< T >
std::vector< AST_Node_Impl_Ptr< T > > children
Public Attributes inherited from chaiscript::AST_Node
const AST_Node_Type identifier
const std::string text
Parse_Location location

Additional Inherited Members

Static Public Member Functions inherited from chaiscript::eval::AST_Node_Impl< T >
static bool get_scoped_bool_condition (const AST_Node_Impl< T > &node, const chaiscript::detail::Dispatch_State &t_ss)
Static Public Member Functions inherited from chaiscript::AST_Node
static bool get_bool_condition (const Boxed_Value &t_bv, const chaiscript::detail::Dispatch_State &t_ss)
Protected Member Functions inherited from chaiscript::AST_Node
 AST_Node (std::string t_ast_node_text, AST_Node_Type t_id, Parse_Location t_loc)

Constructor & Destructor Documentation

◆ Compiled_AST_Node()

template<typename T>
chaiscript::eval::Compiled_AST_Node< T >::Compiled_AST_Node ( AST_Node_Impl_Ptr< T > t_original_node,
std::vector< AST_Node_Impl_Ptr< T > > t_children,
std::function< Boxed_Value(const std::vector< AST_Node_Impl_Ptr< T > > &, const chaiscript::detail::Dispatch_State &t_ss)> t_func )
inline

Member Function Documentation

◆ eval_internal()

template<typename T>
Boxed_Value chaiscript::eval::Compiled_AST_Node< T >::eval_internal ( const chaiscript::detail::Dispatch_State & t_ss) const
inlineoverridevirtual

Member Data Documentation

◆ m_func

template<typename T>
std::function<Boxed_Value (const std::vector<AST_Node_Impl_Ptr<T>> &, const chaiscript::detail::Dispatch_State &t_ss)> chaiscript::eval::Compiled_AST_Node< T >::m_func

◆ m_original_node

template<typename T>
AST_Node_Impl_Ptr<T> chaiscript::eval::Compiled_AST_Node< T >::m_original_node

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