souffle  2.0.2-371-g6315b36
Public Member Functions
souffle::ast::NilConstant Class Reference

Defines the nil constant. More...

#include <NilConstant.h>

Inheritance diagram for souffle::ast::NilConstant:
Inheritance graph
Collaboration diagram for souffle::ast::NilConstant:
Collaboration graph

Public Member Functions

NilConstantclone () const override
 Create clone. More...
 
 NilConstant (SrcLocation loc={})
 
- Public Member Functions inherited from souffle::ast::Constant
const std::string & getConstant () const
 Get string representation of Constant. More...
 
- Public Member Functions inherited from souffle::ast::Argument
 Node (SrcLocation loc={})
 
- Public Member Functions inherited from souffle::ast::Node
virtual void apply (const NodeMapper &)
 Apply the mapper to all child nodes. More...
 
std::string extloc () const
 Return source location of the syntactic element. More...
 
virtual std::vector< const Node * > getChildNodes () const
 Obtain a list of all embedded AST child nodes. More...
 
const SrcLocationgetSrcLoc () const
 Return source location of the Node. More...
 
 Node (SrcLocation loc={})
 
bool operator!= (const Node &other) const
 Inequality check for two AST nodes. More...
 
bool operator== (const Node &other) const
 Equivalence check for two AST nodes. More...
 
void setSrcLoc (SrcLocation l)
 Set source location for the Node. More...
 
virtual ~Node ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from souffle::ast::Constant
 Constant (std::string value, SrcLocation loc={})
 
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...
 

Detailed Description

Defines the nil constant.

Definition at line 36 of file NilConstant.h.

Constructor & Destructor Documentation

◆ NilConstant()

souffle::ast::NilConstant::NilConstant ( SrcLocation  loc = {})
inline

Definition at line 38 of file NilConstant.h.

Member Function Documentation

◆ clone()

NilConstant* souffle::ast::NilConstant::clone ( ) const
inlineoverridevirtual

Create clone.

Implements souffle::ast::Constant.

Definition at line 40 of file NilConstant.h.


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