mCRL2
Loading...
Searching...
No Matches
mcrl2::pbes_system::pbes_equation Class Reference

pbes equation. More...

#include <pbes_equation.h>

Inheritance diagram for mcrl2::pbes_system::pbes_equation:
mcrl2::pbes_system::detail::stategraph_equation

Public Types

using term_type = pbes_expression
 The expression type of the equation.
 
using variable_type = propositional_variable
 The variable type of the equation.
 
using symbol_type = fixpoint_symbol
 The symbol type of the equation.
 

Public Member Functions

 pbes_equation ()=default
 Constructor.
 
 pbes_equation (const fixpoint_symbol &symbol, const propositional_variable &variable, const pbes_expression &expr)
 Constructor.
 
const fixpoint_symbol & symbol () const
 Returns the fixpoint symbol of the equation.
 
fixpoint_symbol & symbol ()
 Returns the fixpoint symbol of the equation.
 
const propositional_variable & variable () const
 Returns the pbes variable of the equation.
 
propositional_variable & variable ()
 Returns the pbes variable of the equation.
 
const pbes_expression & formula () const
 Returns the predicate formula on the right hand side of the equation.
 
pbes_expression & formula ()
 Returns the predicate formula on the right hand side of the equation.
 
bool is_solved () const
 Returns true if the predicate formula on the right hand side contains no predicate variables.
 
void swap (pbes_equation &other) noexcept
 Swaps the contents.
 
bool operator< (const pbes_equation &other) const
 A comparison operator on pbes equations.
 

Protected Attributes

fixpoint_symbol m_symbol
 The fixpoint symbol of the equation.
 
propositional_variable m_variable
 The variable on the left hand side of the equation.
 
pbes_expression m_formula
 The expression on the right hand side of the equation.
 

Detailed Description

pbes equation.

Definition at line 28 of file pbes_equation.h.

Member Typedef Documentation

◆ symbol_type

The symbol type of the equation.

Definition at line 48 of file pbes_equation.h.

◆ term_type

The expression type of the equation.

Definition at line 42 of file pbes_equation.h.

◆ variable_type

The variable type of the equation.

Definition at line 45 of file pbes_equation.h.

Constructor & Destructor Documentation

◆ pbes_equation() [1/2]

mcrl2::pbes_system::pbes_equation::pbes_equation ( )
default

Constructor.

◆ pbes_equation() [2/2]

mcrl2::pbes_system::pbes_equation::pbes_equation ( const fixpoint_symbol &  symbol,
const propositional_variable &  variable,
const pbes_expression &  expr 
)
inline

Constructor.

Parameters
symbolA fixpoint symbol
variableA propositional variable declaration
exprA PBES expression

Definition at line 57 of file pbes_equation.h.

Member Function Documentation

◆ formula() [1/2]

pbes_expression & mcrl2::pbes_system::pbes_equation::formula ( )
inline

Returns the predicate formula on the right hand side of the equation.

Returns
The predicate formula on the right hand side of the equation.

Definition at line 102 of file pbes_equation.h.

◆ formula() [2/2]

const pbes_expression & mcrl2::pbes_system::pbes_equation::formula ( ) const
inline

Returns the predicate formula on the right hand side of the equation.

Returns
The predicate formula on the right hand side of the equation.

Definition at line 95 of file pbes_equation.h.

◆ is_solved()

bool mcrl2::pbes_system::pbes_equation::is_solved ( ) const

Returns true if the predicate formula on the right hand side contains no predicate variables.

Returns
True if the predicate formula on the right hand side contains no predicate variables.

Definition at line 102 of file pbes.cpp.

◆ operator<()

bool mcrl2::pbes_system::pbes_equation::operator< ( const pbes_equation &  other) const
inline

A comparison operator on pbes equations.

The comparison is on the addresses of aterm objects and can therefore differ in every run.

Parameters
otherThe variable to compare with.
Returns
True if the this argument is smaller than other.

Definition at line 125 of file pbes_equation.h.

◆ swap()

void mcrl2::pbes_system::pbes_equation::swap ( pbes_equation &  other)
inlinenoexcept

Swaps the contents.

Definition at line 113 of file pbes_equation.h.

◆ symbol() [1/2]

fixpoint_symbol & mcrl2::pbes_system::pbes_equation::symbol ( )
inline

Returns the fixpoint symbol of the equation.

Returns
The fixpoint symbol of the equation.

Definition at line 74 of file pbes_equation.h.

◆ symbol() [2/2]

const fixpoint_symbol & mcrl2::pbes_system::pbes_equation::symbol ( ) const
inline

Returns the fixpoint symbol of the equation.

Returns
The fixpoint symbol of the equation.

Definition at line 67 of file pbes_equation.h.

◆ variable() [1/2]

propositional_variable & mcrl2::pbes_system::pbes_equation::variable ( )
inline

Returns the pbes variable of the equation.

Returns
The pbes variable of the equation.

Definition at line 88 of file pbes_equation.h.

◆ variable() [2/2]

const propositional_variable & mcrl2::pbes_system::pbes_equation::variable ( ) const
inline

Returns the pbes variable of the equation.

Returns
The pbes variable of the equation.

Definition at line 81 of file pbes_equation.h.

Member Data Documentation

◆ m_formula

pbes_expression mcrl2::pbes_system::pbes_equation::m_formula
protected

The expression on the right hand side of the equation.

Definition at line 38 of file pbes_equation.h.

◆ m_symbol

fixpoint_symbol mcrl2::pbes_system::pbes_equation::m_symbol
protected

The fixpoint symbol of the equation.

Definition at line 32 of file pbes_equation.h.

◆ m_variable

propositional_variable mcrl2::pbes_system::pbes_equation::m_variable
protected

The variable on the left hand side of the equation.

Definition at line 35 of file pbes_equation.h.


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