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

class that handles relation instance inside modules More...

#include <Relation.h>

Public Member Functions

 Relation (std::string a_name, std::vector< Domain *> *a_params, std::string _module_name)
 constructor for Relation class More...
 
 ~Relation ()
 destructor for Relation class More...
 
std::vector< Domain * > * get_params ()
 getter for relation params More...
 
std::string get_name ()
 getter for relation name More...
 
std::string get_module ()
 getter for module name relation is in More...
 
void set_module (std::string _m)
 setter for module name relation is in More...
 
bool is_unknown ()
 getter for value saing, whether this relation is queried for unknown facts More...
 
void set_unknown (bool value)
 setter for value saing, whether this relation is queried for unknown facts More...
 
std::string print ()
 returns string with relation information More...
 

Detailed Description

class that handles relation instance inside modules

Constructor & Destructor Documentation

◆ Relation()

Inter4ql::Relation::Relation ( std::string  a_name,
std::vector< Domain *> *  a_params,
std::string  _module_name 
)

constructor for Relation class

Parameters
a_namename of relation
a_paramslist of types of parameters
_module_namename of a module relation is inside

◆ ~Relation()

Inter4ql::Relation::~Relation ( )

destructor for Relation class

Member Function Documentation

◆ get_module()

std::string Inter4ql::Relation::get_module ( )

getter for module name relation is in

Returns
module name

◆ get_name()

std::string Inter4ql::Relation::get_name ( )

getter for relation name

Returns
relation name

◆ get_params()

std::vector< Domain * > * Inter4ql::Relation::get_params ( )

getter for relation params

Returns
vector of relation parameters types

◆ is_unknown()

bool Inter4ql::Relation::is_unknown ( )

getter for value saing, whether this relation is queried for unknown facts

Returns
isUnknown value

◆ print()

std::string Inter4ql::Relation::print ( )

returns string with relation information

Returns
relation information packed in a std::string

◆ set_module()

void Inter4ql::Relation::set_module ( std::string  _m)

setter for module name relation is in

Parameters
_mmodule name

◆ set_unknown()

void Inter4ql::Relation::set_unknown ( bool  value)

setter for value saing, whether this relation is queried for unknown facts

Parameters
valuenew isUnknown value

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