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

#include <chomik.h>

Public Member Functions

 matching_protocol ()
 
bool get_is_placeholder_bound_as_integer (const std::string &p) const
 
bool get_is_placeholder_bound_as_float (const std::string &p) const
 
bool get_is_placeholder_bound_as_string (const std::string &p) const
 
bool get_is_placeholder_bound_as_identifier (const std::string &p) const
 
int get_placeholder_value_integer (const std::string &p) const
 
double get_placeholder_value_float (const std::string &p) const
 
std::string get_placeholder_value_string (const std::string &p) const
 
std::string get_placeholder_value_identifier (const std::string &p) const
 
void bind_placeholder_as_integer (const std::string &p, int v)
 
void bind_placeholder_as_float (const std::string &p, double v)
 
void bind_placeholder_as_string (const std::string &p, std::string v)
 
void bind_placeholder_as_identifier (const std::string &p, std::string v)
 
void bind_placeholder_as_code (const std::string &p, const code &c)
 
void bind_placeholder_as_placeholder (const std::string &p, const std::string &p2)
 
bool get_is_successful () const
 
void report (std::ostream &s) const
 
void initialize_mapping (mapping_generator &target) const
 
void initialize_mapping (external_placeholder_generator &target) const
 
void copy_bound_placeholders (generator &target) const
 

Detailed Description

This is a small helper class used for matching signatures.

Constructor & Destructor Documentation

◆ matching_protocol()

chomik::matching_protocol::matching_protocol ( )
inline

Member Function Documentation

◆ bind_placeholder_as_code()

void chomik::matching_protocol::bind_placeholder_as_code ( const std::string & p,
const code & c )

◆ bind_placeholder_as_float()

void chomik::matching_protocol::bind_placeholder_as_float ( const std::string & p,
double v )
inline

◆ bind_placeholder_as_identifier()

void chomik::matching_protocol::bind_placeholder_as_identifier ( const std::string & p,
std::string v )
inline

◆ bind_placeholder_as_integer()

void chomik::matching_protocol::bind_placeholder_as_integer ( const std::string & p,
int v )
inline

◆ bind_placeholder_as_placeholder()

void chomik::matching_protocol::bind_placeholder_as_placeholder ( const std::string & p,
const std::string & p2 )
inline

◆ bind_placeholder_as_string()

void chomik::matching_protocol::bind_placeholder_as_string ( const std::string & p,
std::string v )
inline

◆ copy_bound_placeholders()

void chomik::matching_protocol::copy_bound_placeholders ( generator & target) const

◆ get_is_placeholder_bound_as_float()

bool chomik::matching_protocol::get_is_placeholder_bound_as_float ( const std::string & p) const
inline

◆ get_is_placeholder_bound_as_identifier()

bool chomik::matching_protocol::get_is_placeholder_bound_as_identifier ( const std::string & p) const
inline

◆ get_is_placeholder_bound_as_integer()

bool chomik::matching_protocol::get_is_placeholder_bound_as_integer ( const std::string & p) const
inline

◆ get_is_placeholder_bound_as_string()

bool chomik::matching_protocol::get_is_placeholder_bound_as_string ( const std::string & p) const
inline

◆ get_is_successful()

bool chomik::matching_protocol::get_is_successful ( ) const
inline

◆ get_placeholder_value_float()

double chomik::matching_protocol::get_placeholder_value_float ( const std::string & p) const
inline

◆ get_placeholder_value_identifier()

std::string chomik::matching_protocol::get_placeholder_value_identifier ( const std::string & p) const
inline

◆ get_placeholder_value_integer()

int chomik::matching_protocol::get_placeholder_value_integer ( const std::string & p) const
inline

◆ get_placeholder_value_string()

std::string chomik::matching_protocol::get_placeholder_value_string ( const std::string & p) const
inline

◆ initialize_mapping() [1/2]

void chomik::matching_protocol::initialize_mapping ( external_placeholder_generator & target) const

◆ initialize_mapping() [2/2]

void chomik::matching_protocol::initialize_mapping ( mapping_generator & target) const

◆ report()

void chomik::matching_protocol::report ( std::ostream & s) const

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

copyright by Pawel Biernacki

Vantaa 2022