HAL  v4.5.0-254-g8f9f6a423
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
init_component.cpp
Go to the documentation of this file.
2 
3 #include <memory>
4 
5 namespace hal
6 {
7  InitComponent::InitComponent(const std::string& init_category, const std::vector<std::string>& init_identifiers) : m_init_category(init_category), m_init_identifiers(init_identifiers)
8  {
9  }
10 
11  std::unique_ptr<InitComponent> InitComponent::create(const std::string& init_category, const std::vector<std::string>& init_identifiers)
12  {
13  return std::unique_ptr<InitComponent>(new InitComponent(init_category, init_identifiers));
14  }
15 
16  InitComponent::ComponentType InitComponent::get_type() const
17  {
18  return m_type;
19  }
20 
21  bool InitComponent::is_class_of(const GateTypeComponent* component)
22  {
23  return component->get_type() == m_type;
24  }
25 
26  std::vector<GateTypeComponent*> InitComponent::get_components(const std::function<bool(const GateTypeComponent*)>& filter) const
27  {
28  UNUSED(filter);
29  return {};
30  }
31 
32  const std::string& InitComponent::get_init_category() const
33  {
34  return m_init_category;
35  }
36 
37  void InitComponent::set_init_category(const std::string& init_category)
38  {
39  m_init_category = init_category;
40  }
41 
42  const std::vector<std::string>& InitComponent::get_init_identifiers() const
43  {
44  return m_init_identifiers;
45  }
46 
47  void InitComponent::set_init_identifiers(const std::vector<std::string>& init_identifiers)
48  {
49  m_init_identifiers = init_identifiers;
50  }
51 } // namespace hal
virtual ComponentType get_type() const =0
#define UNUSED(expr)
Definition: defines.h:49
Definition: defines.h:45