FDR  4.2.7(6ecbe5a21b71ab020e8fcaeccfe5ebaad0599f4f)
Public Member Functions | List of all members
FDR::Assertions::LoopBehaviour Class Reference

A behaviour that performs some trace, and then repeats a suffix. More...

#include <loop_behaviour.h>

Inheritance diagram for FDR::Assertions::LoopBehaviour:
Inheritance graph
[legend]
Collaboration diagram for FDR::Assertions::LoopBehaviour:
Collaboration graph
[legend]

Public Member Functions

 LoopBehaviour (const std::shared_ptr< LTS::Machine > &machine, const std::vector< std::shared_ptr< LTS::Node >> &node_path, const std::vector< LTS::CompiledEvent > &trace, const unsigned int loop_index)
 
unsigned int loop_index () const
 The index at which the trace repeats. More...
 
- Public Member Functions inherited from FDR::Assertions::Behaviour
 Behaviour (const Behaviour &)=delete
 
std::shared_ptr< LTS::Machinemachine () const
 The machine in which the behaviour occurs.
 
const std::vector< std::shared_ptr< LTS::Node > > & node_path () const
 The sequence of nodes leading to the behaviour. More...
 
Behaviouroperator= (const Behaviour &)=delete
 
const std::vector< LTS::CompiledEvent > & trace () const
 Returns the sequence of events that led to this behaviour. More...
 

Additional Inherited Members

- Protected Member Functions inherited from FDR::Assertions::Behaviour
 Behaviour (const std::shared_ptr< LTS::Machine > &machine, const std::vector< std::shared_ptr< LTS::Node >> &node_path, const std::vector< LTS::CompiledEvent > &events)
 

Detailed Description

A behaviour that performs some trace, and then repeats a suffix.

This is used to represent divergences.

Member Function Documentation

◆ loop_index()

unsigned int FDR::Assertions::LoopBehaviour::loop_index ( ) const

The index at which the trace repeats.

If this method returns i then node_path()[i..) can be appeneded to the end of node_path() repeatably (equally, for trace).


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