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_instance_range Class Reference

#include <chomik.h>

Inheritance diagram for chomik::type_instance_range:
Collaboration diagram for chomik::type_instance_range:

Public Member Functions

 type_instance_range (const std::string &n, int b1, int b2)
 
virtual void report (std::ostream &s) const override
 
virtual int get_first_iterator_for_range () const override
 
virtual int get_last_iterator_for_range () const override
 
virtual type_instance_mode get_mode () const
 
virtual int get_amount_of_values () const override
 
- Public Member Functions inherited from chomik::type_instance
 type_instance (const std::string &n)
 
virtual void add_type_instance_enum_value (const signature &n, unsigned new_level=1)
 
virtual void add_type_instance_enum_value (const std::string &n, unsigned new_level=1)
 
virtual std::vector< std::unique_ptr< type_instance_enum_value > >::const_iterator get_first_iterator_for_enum () const
 
virtual std::vector< std::unique_ptr< type_instance_enum_value > >::const_iterator get_last_iterator_for_enum () const
 
const std::string get_name () const
 
virtual std::string get_enum_item (int i)
 
virtual void update (placeholder_with_value &v, machine &m, basic_generator &g)
 
void update_name (const std::string &n)
 

Protected Attributes

int min_boundary
 
int max_boundary
 
- Protected Attributes inherited from chomik::type_instance
std::string name
 

Additional Inherited Members

- Public Types inherited from chomik::type_instance
enum class  type_instance_mode { NONE , INTEGER , ENUM }
 

Constructor & Destructor Documentation

◆ type_instance_range()

chomik::type_instance_range::type_instance_range ( const std::string & n,
int b1,
int b2 )
inline

Member Function Documentation

◆ get_amount_of_values()

virtual int chomik::type_instance_range::get_amount_of_values ( ) const
inlineoverridevirtual

Implements chomik::type_instance.

◆ get_first_iterator_for_range()

virtual int chomik::type_instance_range::get_first_iterator_for_range ( ) const
inlineoverridevirtual

Reimplemented from chomik::type_instance.

◆ get_last_iterator_for_range()

virtual int chomik::type_instance_range::get_last_iterator_for_range ( ) const
inlineoverridevirtual

Reimplemented from chomik::type_instance.

◆ get_mode()

virtual type_instance_mode chomik::type_instance_range::get_mode ( ) const
inlinevirtual

Reimplemented from chomik::type_instance.

◆ report()

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

Member Data Documentation

◆ max_boundary

int chomik::type_instance_range::max_boundary
protected

◆ min_boundary

int chomik::type_instance_range::min_boundary
protected

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

copyright by Pawel Biernacki

Vantaa 2022