Inter4ql  5.2
Public Member Functions | List of all members
Inter4ql::Domain Class Reference

Domain class - class that points to a data type. More...

#include <Domain.h>

Public Member Functions

 Domain (std::string a_name, variable_type::type type=variable_type::INVALID)
 constructor that creates a connection between name and type More...
 
 Domain (Inter4ql::variable_type::type a_type)
 constructor that creates a default named type More...
 
 ~Domain ()
 destructor More...
 
std::string get_name () const
 getter for name of a domain More...
 
variable_type::type get_type () const
 getter for type of a domain More...
 
void set_type (variable_type::type _t)
 setter for type of a domain More...
 
std::string print ()
 returns string with domain information More...
 

Detailed Description

Domain class - class that points to a data type.

Constructor & Destructor Documentation

◆ Domain() [1/2]

Inter4ql::Domain::Domain ( std::string  a_name,
variable_type::type  type = variable_type::INVALID 
)
explicit

constructor that creates a connection between name and type

Parameters
a_namename of a domain
typetype of a domain

◆ Domain() [2/2]

Inter4ql::Domain::Domain ( Inter4ql::variable_type::type  a_type)
explicit

constructor that creates a default named type

Parameters
a_typetype of a domain

◆ ~Domain()

Inter4ql::Domain::~Domain ( )

destructor

Member Function Documentation

◆ get_name()

std::string Inter4ql::Domain::get_name ( ) const

getter for name of a domain

Returns
name of the domain

◆ get_type()

Inter4ql::variable_type::type Inter4ql::Domain::get_type ( ) const

getter for type of a domain

Returns
type of the domain

◆ print()

std::string Inter4ql::Domain::print ( )

returns string with domain information

Returns
domain information packed in a std::string

◆ set_type()

void Inter4ql::Domain::set_type ( variable_type::type  _t)

setter for type of a domain

Parameters
_ttype of a domain

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