HAL
v4.5.0-124-g47ab54673
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
mac_component.cpp
Go to the documentation of this file.
1
#include "
hal_core/netlist/gate_library/gate_type_component/mac_component.h
"
2
3
namespace
hal
4
{
5
MACComponent::ComponentType
MACComponent::get_type
()
const
6
{
7
return
m_type;
8
}
9
10
bool
MACComponent::is_class_of
(
const
GateTypeComponent
* component)
11
{
12
return
component->
get_type
() == m_type;
13
}
14
15
std::vector<GateTypeComponent*>
MACComponent::get_components
(
const
std::function<
bool
(
const
GateTypeComponent
*)>& filter)
const
16
{
17
UNUSED
(filter);
18
return
{};
19
}
20
}
// namespace hal
hal::GateTypeComponent
Definition:
gate_type_component.h:40
hal::GateTypeComponent::ComponentType
ComponentType
Definition:
gate_type_component.h:48
hal::GateTypeComponent::get_type
virtual ComponentType get_type() const =0
hal::MACComponent::is_class_of
static bool is_class_of(const GateTypeComponent *component)
Definition:
mac_component.cpp:10
hal::MACComponent::get_components
std::vector< GateTypeComponent * > get_components(const std::function< bool(const GateTypeComponent *)> &filter=nullptr) const override
Definition:
mac_component.cpp:15
hal::MACComponent::get_type
ComponentType get_type() const override
Definition:
mac_component.cpp:5
UNUSED
#define UNUSED(expr)
Definition:
defines.h:49
mac_component.h
hal
Definition:
defines.h:45
src
netlist
gate_library
gate_type_component
mac_component.cpp
Generated by
1.9.1