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_variable_with_value< TYPE, REPRESENTATION_TYPE > Class Template Reference

#include <chomik.h>

Inheritance diagram for chomik::simple_variable_with_value< TYPE, REPRESENTATION_TYPE >:
Collaboration diagram for chomik::simple_variable_with_value< TYPE, REPRESENTATION_TYPE >:

Public Member Functions

 simple_variable_with_value (std::shared_ptr< signature > &&s, TYPE v)
 
virtual void report (std::ostream &s) const 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 get_value_code (code &target) 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)
 
virtual void assign_value_code (const code &ci)
 

Protected Attributes

TYPE value
 
- Protected Attributes inherited from chomik::variable_with_value
std::shared_ptr< signatureactual_name
 

Additional Inherited Members

- Public Types inherited from chomik::variable_with_value
enum class  actual_memory_representation_type {
  NONE , INTEGER , FLOAT , STRING ,
  CODE , ENUM
}
 

Constructor & Destructor Documentation

◆ simple_variable_with_value()

template<typename TYPE , int REPRESENTATION_TYPE>
chomik::simple_variable_with_value< TYPE, REPRESENTATION_TYPE >::simple_variable_with_value ( std::shared_ptr< signature > && s,
TYPE v )
inline

Member Function Documentation

◆ get_debug_type_name()

template<typename TYPE , int REPRESENTATION_TYPE>
virtual std::string chomik::simple_variable_with_value< TYPE, REPRESENTATION_TYPE >::get_debug_type_name ( ) const
inlineoverridevirtual

◆ get_representation_type()

template<typename TYPE , int REPRESENTATION_TYPE>
virtual actual_memory_representation_type chomik::simple_variable_with_value< TYPE, REPRESENTATION_TYPE >::get_representation_type ( ) const
inlineoverridevirtual

◆ report()

template<typename TYPE , int REPRESENTATION_TYPE>
virtual void chomik::simple_variable_with_value< TYPE, REPRESENTATION_TYPE >::report ( std::ostream & s) const
inlineoverridevirtual

Member Data Documentation

◆ value

template<typename TYPE , int REPRESENTATION_TYPE>
TYPE chomik::simple_variable_with_value< TYPE, REPRESENTATION_TYPE >::value
protected

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

copyright by Pawel Biernacki

Vantaa 2022