souffle
2.0.2-371-g6315b36
|
Go to the documentation of this file.
39 class ComponentType :
public Node {
41 ComponentType(std::string
name =
"", std::vector<QualifiedName> params = {}, SrcLocation loc = {})
69 void print(std::ostream& os)
const override {
76 bool equal(
const Node& node)
const override {
std::vector< QualifiedName > typeParams
Component type parameters.
std::string name
Component name.
void setTypeParameters(const std::vector< QualifiedName > ¶ms)
Set component type parameters.
void print(std::ostream &os) const override
Output to a given output stream.
ComponentType(std::string name="", std::vector< QualifiedName > params={}, SrcLocation loc={})
const std::vector< QualifiedName > & getTypeParameters() const
Return component type parameters.
Component type of a component.
ComponentType * clone() const override
Create a clone (i.e.
bool equal(const Node &node) const override
Abstract equality check for two AST nodes.
detail::joined_sequence< Iter, Printer > join(const Iter &a, const Iter &b, const std::string &sep, const Printer &p)
Creates an object to be forwarded to some output stream for printing sequences of elements interspers...
Abstract class for syntactic elements in an input program.
const SrcLocation & getSrcLoc() const
Return source location of the Node.
const std::string & getName() const
Return component name.
void setName(std::string n)
Set component name.