chomik 0.2.1
experimental and minimalistic programming language

My name is Pawel Biernacki.
I am a software engineer.
This site is my hobby project.

Loading...
Searching...
No Matches
chomik::generic_value Class Referenceabstract

#include <chomik.h>

Inheritance diagram for chomik::generic_value:

Public Member Functions

virtual ~generic_value ()
 
virtual void report (std::ostream &s) const =0
 
virtual variable_with_value::actual_memory_representation_type get_actual_memory_representation_type (machine &m, basic_generator &g) const =0
 
virtual std::string get_actual_text_representation (const machine &m, const basic_generator &g) const =0
 
virtual int get_actual_integer_value (const machine &m, const basic_generator &g) const
 
virtual double get_actual_float_value (const machine &m, const basic_generator &g) const
 
virtual std::string get_actual_string_value (const machine &m, const basic_generator &g) const
 
virtual std::string get_actual_enum_value (const machine &m, const basic_generator &g) const
 
virtual void get_actual_code_value (const machine &m, const basic_generator &g, const replacing_policy &p, code &target) const
 
virtual void add_placeholders_to_generator (basic_generator &g) const =0
 
virtual void get_result_replacing_placeholders (const machine &m, const basic_generator &g, const replacing_policy &p, generic_name &target) const =0
 
virtual void make_copy_with_replacements (const machine &m, const basic_generator &g, const replacing_policy &p, std::shared_ptr< generic_value > &target) const =0
 
virtual void get_copy (std::unique_ptr< generic_value > &target) const =0
 
virtual void get_literal_copy (std::unique_ptr< generic_literal > &target) const
 
virtual bool get_is_code_with_placeholders (machine &m, basic_generator &g) const
 
virtual bool get_is_literal () const
 
virtual bool get_is_code (machine &m) const
 

Detailed Description

This is a base class for various values (integers, floats, strings, enums, code).

Constructor & Destructor Documentation

◆ ~generic_value()

virtual chomik::generic_value::~generic_value ( )
inlinevirtual

Member Function Documentation

◆ add_placeholders_to_generator()

virtual void chomik::generic_value::add_placeholders_to_generator ( basic_generator & g) const
pure virtual

◆ get_actual_code_value()

virtual void chomik::generic_value::get_actual_code_value ( const machine & m,
const basic_generator & g,
const replacing_policy & p,
code & target ) const
inlinevirtual

◆ get_actual_enum_value()

virtual std::string chomik::generic_value::get_actual_enum_value ( const machine & m,
const basic_generator & g ) const
inlinevirtual

◆ get_actual_float_value()

virtual double chomik::generic_value::get_actual_float_value ( const machine & m,
const basic_generator & g ) const
inlinevirtual

◆ get_actual_integer_value()

virtual int chomik::generic_value::get_actual_integer_value ( const machine & m,
const basic_generator & g ) const
inlinevirtual

◆ get_actual_memory_representation_type()

virtual variable_with_value::actual_memory_representation_type chomik::generic_value::get_actual_memory_representation_type ( machine & m,
basic_generator & g ) const
pure virtual

◆ get_actual_string_value()

virtual std::string chomik::generic_value::get_actual_string_value ( const machine & m,
const basic_generator & g ) const
inlinevirtual

◆ get_actual_text_representation()

virtual std::string chomik::generic_value::get_actual_text_representation ( const machine & m,
const basic_generator & g ) const
pure virtual

◆ get_copy()

virtual void chomik::generic_value::get_copy ( std::unique_ptr< generic_value > & target) const
pure virtual

◆ get_is_code()

virtual bool chomik::generic_value::get_is_code ( machine & m) const
inlinevirtual

◆ get_is_code_with_placeholders()

virtual bool chomik::generic_value::get_is_code_with_placeholders ( machine & m,
basic_generator & g ) const
inlinevirtual

◆ get_is_literal()

virtual bool chomik::generic_value::get_is_literal ( ) const
inlinevirtual

Reimplemented in chomik::generic_value_literal.

◆ get_literal_copy()

virtual void chomik::generic_value::get_literal_copy ( std::unique_ptr< generic_literal > & target) const
inlinevirtual

Reimplemented in chomik::generic_value_literal.

◆ get_result_replacing_placeholders()

virtual void chomik::generic_value::get_result_replacing_placeholders ( const machine & m,
const basic_generator & g,
const replacing_policy & p,
generic_name & target ) const
pure virtual

◆ make_copy_with_replacements()

virtual void chomik::generic_value::make_copy_with_replacements ( const machine & m,
const basic_generator & g,
const replacing_policy & p,
std::shared_ptr< generic_value > & target ) const
pure virtual

◆ report()

virtual void chomik::generic_value::report ( std::ostream & s) const
pure virtual

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

copyright by Pawel Biernacki

Vantaa 2022