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::simple_literal_integer Class Reference

#include <chomik.h>

Inheritance diagram for chomik::simple_literal_integer:
Collaboration diagram for chomik::simple_literal_integer:

Public Member Functions

 simple_literal_integer (int v)
 
virtual int get_value_integer () const
 
virtual int get_actual_integer_value (const machine &m, const basic_generator &g) const override
 
virtual void get_copy (std::unique_ptr< generic_literal > &target) const override
 
virtual void make_copy_with_replacements (const machine &m, const basic_generator &g, const replacing_policy &p, std::unique_ptr< generic_literal > &target) const override
 
- Public Member Functions inherited from chomik::simple_literal< int, static_cast< int >(chomik::variable_with_value::actual_memory_representation_type::INTEGER)>
 simple_literal (const int v)
 
virtual void report (std::ostream &s) const override
 
virtual variable_with_value::actual_memory_representation_type get_actual_memory_representation_type (machine &m, basic_generator &g) const override
 
virtual std::string get_actual_text_representation (const machine &m, const basic_generator &g) const override
 
virtual void add_placeholders_to_generator (basic_generator &g) const override
 
virtual void get_result_replacing_placeholders (const machine &m, const basic_generator &g, const replacing_policy &p, generic_name &target) const override
 
- Public Member Functions inherited from chomik::generic_literal
virtual ~generic_literal ()
 
virtual void get_actual_code_value (const machine &m, const basic_generator &g, const replacing_policy &p, code &target) const
 
virtual std::string get_actual_enum_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 bool get_is_code () const
 

Additional Inherited Members

- Protected Attributes inherited from chomik::simple_literal< int, static_cast< int >(chomik::variable_with_value::actual_memory_representation_type::INTEGER)>
const int my_value
 

Constructor & Destructor Documentation

◆ simple_literal_integer()

chomik::simple_literal_integer::simple_literal_integer ( int v)
inline

Member Function Documentation

◆ get_actual_integer_value()

virtual int chomik::simple_literal_integer::get_actual_integer_value ( const machine & m,
const basic_generator & g ) const
inlineoverridevirtual

Reimplemented from chomik::generic_literal.

◆ get_copy()

virtual void chomik::simple_literal_integer::get_copy ( std::unique_ptr< generic_literal > & target) const
inlineoverridevirtual

◆ get_value_integer()

virtual int chomik::simple_literal_integer::get_value_integer ( ) const
inlinevirtual

◆ make_copy_with_replacements()

virtual void chomik::simple_literal_integer::make_copy_with_replacements ( const machine & m,
const basic_generator & g,
const replacing_policy & p,
std::unique_ptr< generic_literal > & target ) const
inlineoverridevirtual

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

copyright by Pawel Biernacki

Vantaa 2022