Named variable class.
More...
#include <Variable.h>
|
bool | equal (const Node &node) const override |
| Abstract equality check for two AST nodes. More...
|
|
void | print (std::ostream &os) const override |
| Output to a given output stream. More...
|
|
Named variable class.
Definition at line 38 of file Variable.h.
◆ Variable()
souffle::ast::Variable::Variable |
( |
std::string |
name, |
|
|
SrcLocation |
loc = {} |
|
) |
| |
|
inline |
◆ clone()
Variable* souffle::ast::Variable::clone |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ equal()
bool souffle::ast::Variable::equal |
( |
const Node & |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ getName()
const std::string& souffle::ast::Variable::getName |
( |
| ) |
const |
|
inline |
Return variable name.
Definition at line 48 of file Variable.h.
51 void print(std::ostream& os)
const override {
Referenced by Variable().
◆ print()
void souffle::ast::Variable::print |
( |
std::ostream & |
os | ) |
const |
|
inlineoverrideprotectedvirtual |
◆ setName()
void souffle::ast::Variable::setName |
( |
std::string |
name | ) |
|
|
inline |
Set variable name.
Definition at line 43 of file Variable.h.
◆ name
std::string souffle::ast::Variable::name |
|
protected |
The documentation for this class was generated from the following file: