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

#include <chomik.h>

Inheritance diagram for chomik::type_definition_body_range:
Collaboration diagram for chomik::type_definition_body_range:

Public Member Functions

 type_definition_body_range (generic_range *const nr)
 
virtual void report (std::ostream &s) const override
 
virtual void expand (machine &m, int depth, const std::string &n, std::shared_ptr< type_instance > &e) const override
 
virtual void add_placeholders_to_generator (basic_generator &g) const override
 
virtual bool get_is_range () const override
 
virtual int get_min_value (machine &m, basic_generator &g) const override
 
virtual int get_max_value (machine &m, basic_generator &g) const override
 
- Public Member Functions inherited from chomik::type_definition_body
virtual ~type_definition_body ()
 

Constructor & Destructor Documentation

◆ type_definition_body_range()

chomik::type_definition_body_range::type_definition_body_range ( generic_range *const nr)
inline

This constructor tales the first parameter and owns it, the generic range must not be destroyed by the parser!.

Member Function Documentation

◆ add_placeholders_to_generator()

virtual void chomik::type_definition_body_range::add_placeholders_to_generator ( basic_generator & g) const
inlineoverridevirtual

◆ expand()

virtual void chomik::type_definition_body_range::expand ( machine & m,
int depth,
const std::string & n,
std::shared_ptr< type_instance > & e ) const
overridevirtual

◆ get_is_range()

virtual bool chomik::type_definition_body_range::get_is_range ( ) const
inlineoverridevirtual

◆ get_max_value()

virtual int chomik::type_definition_body_range::get_max_value ( machine & m,
basic_generator & g ) const
inlineoverridevirtual

Reimplemented from chomik::type_definition_body.

◆ get_min_value()

virtual int chomik::type_definition_body_range::get_min_value ( machine & m,
basic_generator & g ) const
inlineoverridevirtual

Reimplemented from chomik::type_definition_body.

◆ report()

virtual void chomik::type_definition_body_range::report ( std::ostream & s) const
inlineoverridevirtual

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

copyright by Pawel Biernacki

Vantaa 2022