Skip to content

Commit a94387a

Browse files
Compile fixes
1 parent 654118e commit a94387a

File tree

5 files changed

+13
-3
lines changed

5 files changed

+13
-3
lines changed

include/network/activation_key.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,13 @@ class ActivationKey {
1212
int actId;
1313
};
1414

15+
struct ActivationKeyComparator {
16+
bool operator()(ActivationKey* a, ActivationKey* b) const {
17+
if(a->getNeuronId() != b->getNeuronId())
18+
return a->getNeuronId() < b->getNeuronId();
19+
else
20+
return a->getActId() < b->getActId();
21+
}
22+
};
23+
1524
#endif // NETWORK_ACTIVATION_KEY_H

include/network/link.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Link : public Obj, public Element, public ModelProvider {
2020
public:
2121
Link(LinkDefinition* type, Synapse* s, Activation* input, Activation* output);
2222

23-
Stream<Obj*> followManyRelation(Relation* rel) override;
23+
RelatedObjectIterable* followManyRelation(Relation* rel) override;
2424
Obj* followSingleRelation(Relation* rel) override;
2525
Timestamp getFired() override;
2626
Timestamp getCreated() override;

include/network/link_definition.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <vector>
1313

1414
class Link;
15+
class Synapse;
1516
class SynapseDefinition;
1617

1718

include/network/neuron.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Neuron : public Obj, public Element, public ModelProvider {
1919
Neuron(NeuronDefinition* type, Model* model, long id);
2020
Neuron(NeuronDefinition* type, Model* model);
2121

22-
Stream<Obj*> followManyRelation(Relation* rel) override;
22+
RelatedObjectIterable* followManyRelation(Relation* rel) override;
2323
Obj* followSingleRelation(Relation* rel) override;
2424
long getId() const;
2525
void updatePropagable(Neuron* n, bool isPropagable);

include/network/synapse.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Synapse : public Obj, public Element {
2323

2424
virtual ~Synapse() = default;
2525

26-
virtual std::vector<Obj*> followManyRelation(Relation* rel) = 0;
26+
virtual RelatedObjectIterable* followManyRelation(Relation* rel) = 0;
2727
virtual Obj* followSingleRelation(Relation* rel) = 0;
2828

2929
int getSynapseId() const;

0 commit comments

Comments
 (0)