souffle
2.0.2-371-g6315b36
|
Go to the documentation of this file.
41 class ComponentInit :
public Node {
79 void print(std::ostream& os)
const override {
83 bool equal(
const Node& node)
const override {
ComponentInit(std::string name, Own< ComponentType > type, SrcLocation loc={})
std::vector< const Node * > getChildNodes() const override
Obtain a list of all embedded AST child nodes.
void print(std::ostream &os) const override
Output to a given output stream.
void setInstanceName(std::string name)
Set instance name.
An abstract class for manipulating AST Nodes by substitution.
void apply(const NodeMapper &mapper) override
Apply the mapper to all child nodes.
Component initialization class.
Component type of a component.
auto clone(const std::vector< A * > &xs)
Own< ComponentType > componentType
Actual component arguments for instantiation.
const std::string & getInstanceName() const
Return instance name.
Abstract class for syntactic elements in an input program.
void setComponentType(Own< ComponentType > type)
Set component type.
const ComponentType * getComponentType() const
Return component type.
const SrcLocation & getSrcLoc() const
Return source location of the Node.
bool equal(const Node &node) const override
Abstract equality check for two AST nodes.
ComponentInit * clone() const override
Create a clone (i.e.
std::string instanceName
Instance name.