HAL  v4.5.0-257-ge24279b4e
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
mac_component.cpp
Go to the documentation of this file.
2 
3 #include <memory>
4 
5 namespace hal
6 {
7  std::unique_ptr<MACComponent> MACComponent::create()
8  {
9  // TODO do fancy MAC stuff
10  return std::unique_ptr<MACComponent>(new MACComponent());
11  }
12 
14  {
15  return m_type;
16  }
17 
19  {
20  return component->get_type() == m_type;
21  }
22 
23  std::vector<GateTypeComponent*> MACComponent::get_components(const std::function<bool(const GateTypeComponent*)>& filter) const
24  {
25  UNUSED(filter);
26  return {};
27  }
28 } // namespace hal
virtual ComponentType get_type() const =0
static bool is_class_of(const GateTypeComponent *component)
std::vector< GateTypeComponent * > get_components(const std::function< bool(const GateTypeComponent *)> &filter=nullptr) const override
static std::unique_ptr< MACComponent > create()
ComponentType get_type() const override
#define UNUSED(expr)
Definition: defines.h:49
Definition: defines.h:45