souffle  2.0.2-371-g6315b36
Public Member Functions | Protected Member Functions
souffle::ast::RecordInit Class Reference

Defines a record initialization class. More...

#include <RecordInit.h>

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

Public Member Functions

RecordInitclone () const override
 Create clone. More...
 
 RecordInit (VecOwn< Argument > operands={}, SrcLocation loc={})
 
- Public Member Functions inherited from souffle::ast::Term
void addArgument (Own< Argument > arg)
 Add argument to argument list. More...
 
void apply (const NodeMapper &map) override
 Apply the mapper to all child nodes. More...
 
std::vector< Argument * > getArguments () const
 Get arguments. More...
 
std::vector< const Node * > getChildNodes () const override
 Obtain a list of all embedded AST child nodes. More...
 
- Public Member Functions inherited from souffle::ast::Argument
 Node (SrcLocation loc={})
 
- Public Member Functions inherited from souffle::ast::Node
std::string extloc () const
 Return source location of the syntactic element. 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
 

Protected Member Functions

void print (std::ostream &os) const override
 Output to a given output stream. More...
 
- Protected Member Functions inherited from souffle::ast::Term
bool equal (const Node &node) const override
 Abstract equality check for two AST nodes. More...
 
template<typename... Operands>
 Term (Operands &&... operands)
 
template<typename... Operands>
 Term (SrcLocation loc, Operands &&... operands)
 
 Term (VecOwn< Argument > operands, SrcLocation loc={})
 

Additional Inherited Members

- Protected Attributes inherited from souffle::ast::Term
VecOwn< Argumentargs
 Arguments. More...
 

Detailed Description

Defines a record initialization class.

Definition at line 42 of file RecordInit.h.

Constructor & Destructor Documentation

◆ RecordInit()

souffle::ast::RecordInit::RecordInit ( VecOwn< Argument operands = {},
SrcLocation  loc = {} 
)
inline

Definition at line 44 of file RecordInit.h.

45  :
46  void print(std::ostream& os) const override {

Member Function Documentation

◆ clone()

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

Create clone.

Implements souffle::ast::Argument.

Definition at line 47 of file RecordInit.h.

◆ print()

void souffle::ast::RecordInit::print ( std::ostream &  os) const
inlineoverrideprotectedvirtual

Output to a given output stream.

Implements souffle::ast::Node.

Definition at line 52 of file RecordInit.h.


The documentation for this class was generated from the following file:
souffle::ast::RecordInit::print
void print(std::ostream &os) const override
Output to a given output stream.
Definition: RecordInit.h:52