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

#include <chomik.h>

Inheritance diagram for chomik::variable_with_value_code:
Collaboration diagram for chomik::variable_with_value_code:

Public Member Functions

 variable_with_value_code (std::shared_ptr< signature > &&s, std::unique_ptr< code > &&v)
 
virtual void report (std::ostream &s) const override
 
virtual void get_value_code (code &target) const
 
virtual void assign_value_code (const code &ci) override
 
virtual actual_memory_representation_type get_representation_type () const override
 
virtual std::string get_debug_type_name () const override
 
- Public Member Functions inherited from chomik::variable_with_value
 variable_with_value (std::shared_ptr< signature > &&n)
 
virtual ~variable_with_value ()
 
std::string get_signature_item_representation (int item_index) const
 
std::string get_signature_item_type_name (int item_index) const
 
int get_amount_of_signature_items () const
 
std::string get_signature_string_representation () const
 
virtual int get_value_integer () const
 
virtual double get_value_float () const
 
virtual std::string get_value_string () const
 
virtual std::string get_value_enum () const
 
virtual void assign_value_integer (int v)
 
virtual void assign_value_float (double v)
 
virtual void assign_value_string (std::string v)
 
virtual void assign_value_enum (std::string v)
 

Additional Inherited Members

- Public Types inherited from chomik::variable_with_value
enum class  actual_memory_representation_type {
  NONE , INTEGER , FLOAT , STRING ,
  CODE , ENUM
}
 
- Protected Attributes inherited from chomik::variable_with_value
std::shared_ptr< signatureactual_name
 

Detailed Description

This class is used to represent a variable_with_value with the value of the built-in type code.

Constructor & Destructor Documentation

◆ variable_with_value_code()

chomik::variable_with_value_code::variable_with_value_code ( std::shared_ptr< signature > && s,
std::unique_ptr< code > && v )
inline

Member Function Documentation

◆ assign_value_code()

virtual void chomik::variable_with_value_code::assign_value_code ( const code & ci)
overridevirtual

Reimplemented from chomik::variable_with_value.

◆ get_debug_type_name()

virtual std::string chomik::variable_with_value_code::get_debug_type_name ( ) const
inlineoverridevirtual

Reimplemented from chomik::variable_with_value.

◆ get_representation_type()

virtual actual_memory_representation_type chomik::variable_with_value_code::get_representation_type ( ) const
inlineoverridevirtual

◆ get_value_code()

virtual void chomik::variable_with_value_code::get_value_code ( code & target) const
virtual

Reimplemented from chomik::variable_with_value.

◆ report()

virtual void chomik::variable_with_value_code::report ( std::ostream & s) const
overridevirtual

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

copyright by Pawel Biernacki

Vantaa 2022