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

#include <chomik.h>

Inheritance diagram for chomik::type_instance_enum:
Collaboration diagram for chomik::type_instance_enum:

Public Member Functions

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

Additional Inherited Members

- Public Types inherited from chomik::type_instance
enum class  type_instance_mode { NONE , INTEGER , ENUM }
 
- Protected Attributes inherited from chomik::type_instance
std::string name
 

Constructor & Destructor Documentation

◆ type_instance_enum()

chomik::type_instance_enum::type_instance_enum ( const std::string & n)
inline

Member Function Documentation

◆ add_type_instance_enum_value() [1/2]

virtual void chomik::type_instance_enum::add_type_instance_enum_value ( const signature & n,
unsigned new_level )
overridevirtual

Reimplemented from chomik::type_instance.

◆ add_type_instance_enum_value() [2/2]

virtual void chomik::type_instance_enum::add_type_instance_enum_value ( const std::string & n,
unsigned int new_level )
overridevirtual

◆ get_amount_of_values()

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

Implements chomik::type_instance.

◆ get_enum_item()

virtual std::string chomik::type_instance_enum::get_enum_item ( int i)
inlinevirtual

Reimplemented from chomik::type_instance.

◆ get_first_iterator_for_enum()

virtual std::vector< std::unique_ptr< type_instance_enum_value > >::const_iterator chomik::type_instance_enum::get_first_iterator_for_enum ( ) const
inlineoverridevirtual

Reimplemented from chomik::type_instance.

◆ get_last_iterator_for_enum()

virtual std::vector< std::unique_ptr< type_instance_enum_value > >::const_iterator chomik::type_instance_enum::get_last_iterator_for_enum ( ) const
inlineoverridevirtual

Reimplemented from chomik::type_instance.

◆ get_mode()

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

Reimplemented from chomik::type_instance.

◆ report()

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

Implements chomik::type_instance.


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

copyright by Pawel Biernacki

Vantaa 2022