souffle  2.0.2-371-g6315b36
Public Member Functions | Data Fields
souffle::profile::Atom Class Reference

#include <Rule.h>

Collaboration diagram for souffle::profile::Atom:
Collaboration graph

Public Member Functions

 Atom (std::string identifier, std::string rule, size_t level, size_t frequency)
 
bool operator< (const Atom &other) const
 

Data Fields

const size_t frequency
 
const std::string identifier
 
const size_t level
 
const std::string rule
 

Detailed Description

Definition at line 24 of file Rule.h.

Constructor & Destructor Documentation

◆ Atom()

souffle::profile::Atom::Atom ( std::string  identifier,
std::string  rule,
size_t  level,
size_t  frequency 
)
inline

Definition at line 31 of file Rule.h.

32  : identifier(std::move(identifier)), rule(std::move(rule)), level(level), frequency(frequency) {}

Member Function Documentation

◆ operator<()

bool souffle::profile::Atom::operator< ( const Atom other) const
inline

Definition at line 34 of file Rule.h.

34  {
35  if (rule != other.rule) {
36  return rule < other.rule;
37  } else if (level != other.level) {
38  return level < other.level;
39  }
40  return identifier < other.identifier;
41  }

References identifier, level, and rule.

Field Documentation

◆ frequency

const size_t souffle::profile::Atom::frequency

Definition at line 29 of file Rule.h.

◆ identifier

const std::string souffle::profile::Atom::identifier

Definition at line 26 of file Rule.h.

Referenced by souffle::profile::Reader::extractRelationNameFromAtom(), and operator<().

◆ level

const size_t souffle::profile::Atom::level

Definition at line 28 of file Rule.h.

Referenced by operator<().

◆ rule

const std::string souffle::profile::Atom::rule

Definition at line 27 of file Rule.h.

Referenced by operator<().


The documentation for this class was generated from the following file:
souffle::profile::Atom::rule
const std::string rule
Definition: Rule.h:27
souffle::profile::Atom::frequency
const size_t frequency
Definition: Rule.h:29
souffle::profile::Atom::level
const size_t level
Definition: Rule.h:28
souffle::profile::Atom::identifier
const std::string identifier
Definition: Rule.h:26