scram::core::ProductContainer
A container of analysis result products with Literals. More...
#include <fault_tree_analysis.h>
Public Functions
| Name | |
|---|---|
| Iterator | begin() const<br>Begin and end iterators over products in the container. |
| Iterator | end() const |
| ProductContainer(const Zbdd & products, const Pdag & graph, const ProductSummary * summary =nullptr, std::shared_ptr< const ProductList > filtered_products =nullptr)<br>The constructor also collects basic events in products. | |
| const std::vector< const mef::BasicEvent * > & | product_events() const |
| const Pdag & | graph() const |
| bool | empty() const |
| int | size() const |
| const std::vector< int > & | distribution() const |
Detailed Description
class scram::core::ProductContainer;A container of analysis result products with Literals.
This is a wrapper of the analysis resultant ZBDD to work with Literals.
Public Functions Documentation
function begin
Iterator begin() constBegin and end iterators over products in the container.
function end
Iterator end() constfunction ProductContainer
ProductContainer(
const Zbdd & products,
const Pdag & graph,
const ProductSummary * summary =nullptr,
std::shared_ptr< const ProductList > filtered_products =nullptr
)The constructor also collects basic events in products.
Parameters:
- products Sets with indices of events from calculations.
- graph PDAG with basic event indices and pointers.
function product_events
inline const std::vector< const mef::BasicEvent * > & product_events() constReturn: Collection of basic events that are in the products.
function graph
inline const Pdag & graph() constReturn: The underlying PDAG used for product indexing.
This enables serializers/reporters to emit a stable BasicEvent -> index map for later deserialization of compact cut set encodings.
function empty
inline bool empty() constReturn: true if no products in the container.
function size
inline int size() constReturn: The number of products in the container.
function distribution
inline const std::vector< int > & distribution() constReturn: The product distribution by order.
Updated on 2026-01-09 at 21:59:11 +0000
