HAL  v4.5.0-254-g8f9f6a423
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
hal::SubgraphFunctionCache Class Reference

#include <hal_core/netlist/decorators/subgraph_function_cache.h>

Collaboration diagram for hal::SubgraphFunctionCache:
Collaboration graph

Public Member Functions

 SubgraphFunctionCache (SubgraphFunctionCache &&)=default
 
SubgraphFunctionCache & operator= (SubgraphFunctionCache &&)=default
 
 SubgraphFunctionCache (const SubgraphFunctionCache &)=delete
 
SubgraphFunctionCache & operator= (const SubgraphFunctionCache &)=delete
 
size_t size () const
 

Friends

class SubgraphNetlistDecorator
 

Detailed Description

A reusable store for the Boolean functions that SubgraphNetlistDecorator::get_subgraph_function computes and the inputs that SubgraphNetlistDecorator::get_subgraph_function_inputs determines for the output pins of the gates of one specific subgraph.

The subgraph a cache belongs to is sealed in when it is created with SubgraphNetlistDecorator::make_subgraph_function_cache, and the cache can only ever be used for exactly that subgraph.

The cache belongs to the netlist it was created for and must be dropped when the netlist is modified, as its entries are not invalidated by netlist events.

Definition at line 53 of file subgraph_function_cache.h.

Constructor & Destructor Documentation

◆ SubgraphFunctionCache() [1/2]

hal::SubgraphFunctionCache::SubgraphFunctionCache ( SubgraphFunctionCache &&  )
default

◆ SubgraphFunctionCache() [2/2]

hal::SubgraphFunctionCache::SubgraphFunctionCache ( const SubgraphFunctionCache &  )
delete

Member Function Documentation

◆ operator=() [1/2]

SubgraphFunctionCache& hal::SubgraphFunctionCache::operator= ( const SubgraphFunctionCache &  )
delete

◆ operator=() [2/2]

SubgraphFunctionCache& hal::SubgraphFunctionCache::operator= ( SubgraphFunctionCache &&  )
default

◆ size()

size_t hal::SubgraphFunctionCache::size ( ) const
inline

Get the number of cached Boolean functions.

Returns
The number of cached Boolean functions.

Definition at line 66 of file subgraph_function_cache.h.

Friends And Related Function Documentation

◆ SubgraphNetlistDecorator

friend class SubgraphNetlistDecorator
friend

Definition at line 72 of file subgraph_function_cache.h.


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