HAL
init_component.cpp
Go to the documentation of this file.
2 
3 namespace hal
4 {
5  InitComponent::InitComponent(const std::string& init_category, const std::vector<std::string>& init_identifiers) : m_init_category(init_category), m_init_identifiers(init_identifiers)
6  {
7  }
8 
10  {
11  return m_type;
12  }
13 
15  {
16  return component->get_type() == m_type;
17  }
18 
19  std::vector<GateTypeComponent*> InitComponent::get_components(const std::function<bool(const GateTypeComponent*)>& filter) const
20  {
21  UNUSED(filter);
22  return {};
23  }
24 
25  const std::string& InitComponent::get_init_category() const
26  {
27  return m_init_category;
28  }
29 
30  void InitComponent::set_init_category(const std::string& init_category)
31  {
32  m_init_category = init_category;
33  }
34 
35  const std::vector<std::string>& InitComponent::get_init_identifiers() const
36  {
37  return m_init_identifiers;
38  }
39 
40  void InitComponent::set_init_identifiers(const std::vector<std::string>& init_identifiers)
41  {
42  m_init_identifiers = init_identifiers;
43  }
44 } // namespace hal
virtual ComponentType get_type() const =0
InitComponent(const std::string &init_category, const std::vector< std::string > &init_identifiers)
const std::string & get_init_category() const
static bool is_class_of(const GateTypeComponent *component)
void set_init_category(const std::string &init_category)
std::vector< GateTypeComponent * > get_components(const std::function< bool(const GateTypeComponent *)> &filter=nullptr) const override
void set_init_identifiers(const std::vector< std::string > &init_identifiers)
const std::vector< std::string > & get_init_identifiers() const
ComponentType get_type() const override
#define UNUSED(expr)
Definition: defines.h:49