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

#include <chomik.h>

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

Public Member Functions

 simple_placeholder_with_value (const std::string &p, const TYPE v, type_instance *ti)
 
virtual variable_with_value::actual_memory_representation_type get_representation_type () const override
 
TYPE get_value () const
 
virtual void update_int_value (TYPE f, TYPE l)
 
virtual void update_ad_hoc_range_type_instance (machine &m, basic_generator &g) override
 
- Public Member Functions inherited from chomik::placeholder_with_value
 placeholder_with_value (const std::string &n)
 
const std::string & get_name () const
 
virtual ~placeholder_with_value ()
 
virtual void report (std::ostream &s) const =0
 
virtual bool get_is_valid () const
 
virtual bool get_is_terminated () const
 
virtual void increment ()
 
virtual std::string get_value_string () const
 
virtual std::string get_value_enum () const
 
virtual void get_value_code (code &target) const
 
virtual bool get_exceeds_level (int max_level) const
 
virtual int get_level () const
 
virtual void update_int_value (int f, int l)
 

Protected Attributes

TYPE value
 
type_instancemy_type_instance
 
- Protected Attributes inherited from chomik::placeholder_with_value
const std::string placeholder
 

Constructor & Destructor Documentation

◆ simple_placeholder_with_value()

template<typename TYPE , int REPRESENTATION_TYPE>
chomik::simple_placeholder_with_value< TYPE, REPRESENTATION_TYPE >::simple_placeholder_with_value ( const std::string & p,
const TYPE v,
type_instance * ti )
inline

Member Function Documentation

◆ get_representation_type()

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

◆ get_value()

template<typename TYPE , int REPRESENTATION_TYPE>
TYPE chomik::simple_placeholder_with_value< TYPE, REPRESENTATION_TYPE >::get_value ( ) const
inline

◆ update_ad_hoc_range_type_instance()

template<typename TYPE , int REPRESENTATION_TYPE>
virtual void chomik::simple_placeholder_with_value< TYPE, REPRESENTATION_TYPE >::update_ad_hoc_range_type_instance ( machine & m,
basic_generator & g )
inlineoverridevirtual

Reimplemented from chomik::placeholder_with_value.

◆ update_int_value()

template<typename TYPE , int REPRESENTATION_TYPE>
virtual void chomik::simple_placeholder_with_value< TYPE, REPRESENTATION_TYPE >::update_int_value ( TYPE f,
TYPE l )
inlinevirtual

Member Data Documentation

◆ my_type_instance

template<typename TYPE , int REPRESENTATION_TYPE>
type_instance* chomik::simple_placeholder_with_value< TYPE, REPRESENTATION_TYPE >::my_type_instance
protected

◆ value

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

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

copyright by Pawel Biernacki

Vantaa 2022