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_name_item< TYPE > Class Template Reference

#include <chomik.h>

Inheritance diagram for chomik::simple_name_item< TYPE >:
Collaboration diagram for chomik::simple_name_item< TYPE >:

Public Member Functions

 simple_name_item (TYPE v)
 
virtual void report (std::ostream &s) 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
 
- Public Member Functions inherited from chomik::generic_name_item
virtual ~generic_name_item ()
 
virtual void add_content_to_signature (signature &target, const machine &m, const basic_generator &g) const =0
 
virtual void add_content_to_signature (signature &target) const
 
virtual void get_result_replacing_placeholders (const machine &m, const basic_generator &g, const replacing_policy &p, generic_name &target) const =0
 
virtual void get_copy (std::shared_ptr< generic_name_item > &gni) const =0
 
virtual bool get_is_identifier () const
 
virtual bool get_is_integer () const
 
virtual bool get_is_float () const
 
virtual bool get_is_string () const
 
virtual bool get_is_code () const
 
virtual bool get_is_placeholder () const
 
virtual std::string get_placeholder_name () const
 
virtual bool get_match_integer (int v, const machine &m, const basic_generator &g) const
 
virtual bool get_match_float (double v, const machine &m, const basic_generator &g) const
 
virtual bool get_match_string (const std::string &v, const machine &m, const basic_generator &g) const
 
virtual bool get_match_identifier (const std::string &v, const machine &m, const basic_generator &g) const
 
virtual bool get_match_code (const code &v, const machine &m, const basic_generator &g) const
 
virtual bool get_is_variable_value () const
 

Protected Attributes

const TYPE my_value
 

Constructor & Destructor Documentation

◆ simple_name_item()

template<typename TYPE >
chomik::simple_name_item< TYPE >::simple_name_item ( TYPE v)
inline

Member Function Documentation

◆ add_placeholders_to_generator()

template<typename TYPE >
virtual void chomik::simple_name_item< TYPE >::add_placeholders_to_generator ( basic_generator & g) const
inlinevirtual

◆ get_actual_text_representation()

template<typename TYPE >
virtual std::string chomik::simple_name_item< TYPE >::get_actual_text_representation ( const machine & m,
const basic_generator & g ) const
inlineoverridevirtual

◆ report()

template<typename TYPE >
virtual void chomik::simple_name_item< TYPE >::report ( std::ostream & s) const
inlineoverridevirtual

Implements chomik::generic_name_item.

Reimplemented in chomik::name_item_string.

Member Data Documentation

◆ my_value

template<typename TYPE >
const TYPE chomik::simple_name_item< TYPE >::my_value
protected

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

copyright by Pawel Biernacki

Vantaa 2022