souffle  2.0.2-371-g6315b36
Public Member Functions | Protected Member Functions | Protected Attributes
souffle::ram::LogSize Class Reference

Log relation size and a logging message. More...

#include <LogSize.h>

Inheritance diagram for souffle::ram::LogSize:
Inheritance graph
Collaboration diagram for souffle::ram::LogSize:
Collaboration graph

Public Member Functions

LogSizeclone () const override
 Create a clone (i.e. More...
 
const std::string & getMessage () const
 Get logging message. More...
 
 LogSize (std::string rel, std::string message)
 
- Public Member Functions inherited from souffle::ram::RelationStatement
const std::string & getRelation () const
 Get RAM relation. More...
 
 RelationStatement (std::string rel)
 
- Public Member Functions inherited from souffle::ram::Node
virtual void apply (const NodeMapper &)
 Apply the mapper to all child nodes. More...
 
virtual std::vector< const Node * > getChildNodes () const
 Obtain list of all embedded child nodes. More...
 
bool operator!= (const Node &other) const
 Inequality check for two RAM nodes. More...
 
bool operator== (const Node &other) const
 Equivalence check for two RAM nodes. More...
 
virtual void rewrite (const Node *oldNode, Own< Node > newNode)
 Rewrite a child node. More...
 
virtual ~Node ()=default
 

Protected Member Functions

bool equal (const Node &node) const override
 Equality check for two RAM nodes. More...
 
void print (std::ostream &os, int tabpos) const override
 Pretty print with indentation. More...
 
- Protected Member Functions inherited from souffle::ram::RelationStatement
bool equal (const Node &node) const override
 Equality check for two RAM nodes. More...
 
- Protected Member Functions inherited from souffle::ram::Statement
void print (std::ostream &os) const override
 Print RAM node. More...
 

Protected Attributes

const std::string message
 Logging message. More...
 
- Protected Attributes inherited from souffle::ram::RelationStatement
std::string relation
 Relation. More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from souffle::ram::Statement
static void print (const Statement *statement, std::ostream &os, int tabpos)
 Pretty print jump-bed. More...
 

Detailed Description

Log relation size and a logging message.

Definition at line 38 of file LogSize.h.

Constructor & Destructor Documentation

◆ LogSize()

souffle::ram::LogSize::LogSize ( std::string  rel,
std::string  message 
)
inline

Definition at line 40 of file LogSize.h.

43 {

Referenced by getMessage().

Member Function Documentation

◆ clone()

LogSize* souffle::ram::LogSize::clone ( ) const
inlineoverridevirtual

Create a clone (i.e.

deep copy) of this node

Implements souffle::ram::Statement.

Definition at line 47 of file LogSize.h.

47  :
48  void print(std::ostream& os, int tabpos) const override {
49  os << times(" ", tabpos) << "LOGSIZE " << relation;

References message, souffle::ram::RelationStatement::relation, souffle::stringify(), and souffle::times().

Here is the call graph for this function:

◆ equal()

bool souffle::ram::LogSize::equal ( const Node ) const
inlineoverrideprotectedvirtual

Equality check for two RAM nodes.

Default action is that nothing needs to be checked.

Reimplemented from souffle::ram::Node.

Definition at line 59 of file LogSize.h.

◆ getMessage()

const std::string& souffle::ram::LogSize::getMessage ( ) const
inline

Get logging message.

Definition at line 43 of file LogSize.h.

43  {
44  return new LogSize(relation, message);
45  }

References LogSize(), message, and souffle::ram::RelationStatement::relation.

Here is the call graph for this function:

◆ print()

void souffle::ram::LogSize::print ( std::ostream &  os,
int  tabpos 
) const
inlineoverrideprotectedvirtual

Pretty print with indentation.

Implements souffle::ram::Statement.

Definition at line 52 of file LogSize.h.

55  {
56  const auto& other = static_cast<const LogSize&>(node);
57  return RelationStatement::equal(other) && message == other.message;

Field Documentation

◆ message

const std::string souffle::ram::LogSize::message
protected

Logging message.

Definition at line 65 of file LogSize.h.

Referenced by clone(), and getMessage().


The documentation for this class was generated from the following file:
souffle::ram::LogSize::LogSize
LogSize(std::string rel, std::string message)
Definition: LogSize.h:40
souffle::ram::RelationStatement::equal
bool equal(const Node &node) const override
Equality check for two RAM nodes.
Definition: RelationStatement.h:47
souffle::ram::RelationStatement::relation
std::string relation
Relation.
Definition: RelationStatement.h:54
souffle::times
detail::multiplying_printer< T > times(const T &value, unsigned num)
A utility printing a given value multiple times.
Definition: StreamUtil.h:322
souffle::ram::LogSize::print
void print(std::ostream &os, int tabpos) const override
Pretty print with indentation.
Definition: LogSize.h:52
souffle::ram::LogSize::message
const std::string message
Logging message.
Definition: LogSize.h:65