blob: cc406d05c73b20a7cca34b497e8d19ca201ed3fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#pragma once
#include <iterator>
#include "IComponent.h"
class Circuit {
private:
unsigned size = 0;
IComponent* components[16] = { nullptr };
public:
virtual void add(IComponent* pComponent);
using iterator = IComponent* const *;
iterator begin() const { return &components[0]; }
iterator end() const { return &components[size]; }
};
|