dlvhex  2.5.0
ModuleAtom Struct Reference

Module atom structure for storing atoms of kind <predicate>[<inputs>]::<outputAtom>. More...

#include <include/dlvhex2/Atoms.h>

Inheritance diagram for ModuleAtom:
Collaboration diagram for ModuleAtom:

Public Member Functions

 ModuleAtom (IDKind kind, ID predicate, const Tuple &inputs, ID outputAtom, std::string actualModuleName)
 Constructor.
 ModuleAtom (IDKind kind)
 Constructor.
std::ostream & print (std::ostream &o) const

Data Fields

ID predicate
 Module atom name (predicate term).
Tuple inputs
 Input terms.
ID outputAtom
 Module output predicate.
std::string actualModuleName
 If the <predicate> is p1__p2 (because of prefixing) then the actualModuleName should be p2.

Detailed Description

Module atom structure for storing atoms of kind <predicate>[<inputs>]::<outputAtom>.

Definition at line 457 of file Atoms.h.


Constructor & Destructor Documentation

ModuleAtom::ModuleAtom ( IDKind  kind,
ID  predicate,
const Tuple inputs,
ID  outputAtom,
std::string  actualModuleName 
) [inline]

Constructor.

Parameters:
kindSee Atom::kind.
predicateSee ModuleAtom::predicate.
inputsSee ModuleAtom::inputs.
outputAtomSee ModuleAtom::outputAtom.
actualModuleNameSee ModuleAtom::actualModuleName.

Definition at line 481 of file Atoms.h.

ModuleAtom::ModuleAtom ( IDKind  kind) [inline]

Constructor.

Parameters:
kindSee Atom::kind.

Definition at line 493 of file Atoms.h.


Member Function Documentation

std::ostream & ModuleAtom::print ( std::ostream &  o) const

Definition at line 438 of file Atoms.cpp.

References inputs, outputAtom, predicate, and printvector().


Field Documentation

If the <predicate> is p1__p2 (because of prefixing) then the actualModuleName should be p2.

Definition at line 469 of file Atoms.h.

Referenced by sem< HexGrammarSemantics::mlpModuleAtom >::operator()().


The documentation for this struct was generated from the following files: