Skip to content

scram::core::Product

Collection of unique literals.

#include <fault_tree_analysis.h>

Public Functions

Name
Product(const std::vector< int > & data, const Pdag & graph)<br>Initializes product literals.
boolempty() const
intsize() const
intorder() const
doublep() const
autobegin() const
autoend() const

Public Functions Documentation

function Product

cpp
inline Product(
    const std::vector< int > & data,
    const Pdag & graph
)

Initializes product literals.

Parameters:

  • data The underlying set.
  • graph The graph with indices to events map.

function empty

cpp
inline bool empty() const

Return: true for unity product with no literals.

function size

cpp
inline int size() const

Return: The number of literals in the product.

function order

cpp
inline int order() const

Return: The order of the product.

Note: An empty set indicates the Base/Unity set.

function p

cpp
double p() const

Return: The product of the literal probabilities.

Precondition: Events are initialized with expressions.

function begin

cpp
inline auto begin() const

Return: A read proxy iterator that points to the first element.

function end

cpp
inline auto end() const

Return: A sentinel iterator signifying the end of iteration.


Updated on 2026-01-09 at 21:59:11 +0000