-
Notifications
You must be signed in to change notification settings - Fork 1
/
lookback_connector_model.h
58 lines (47 loc) · 1.98 KB
/
lookback_connector_model.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef LOOKBACK_CONNECTOR_MODEL_H
#define LOOKBACK_CONNECTOR_MODEL_H
#include "connector_model.h"
#include "lookback_node.h"
#include <vector>
namespace nest
{
template <typename ConnectionT>
class LookBackConnectorModel : public GenericConnectorModel<ConnectionT> {
public:
LookBackConnectorModel( const std::string name,
bool is_primary,
bool has_delay,
bool requires_symmetric)
: GenericConnectorModel<ConnectionT>( name, is_primary, has_delay, requires_symmetric=requires_symmetric)
{
}
LookBackConnectorModel( const LookBackConnectorModel& cm,
const std::string name )
: GenericConnectorModel<ConnectionT>( cm, name )
{
}
private:
inline bool is_matching_syn_id(ConnectorBase *conn_base_in, index syn_id);
inline std::vector<ConnectionT *> get_conn_ptrs_hom(ConnectorBase * conn_base_in);
inline std::vector<ConnectionT *> get_conn_ptrs_het(ConnectorBase * conn_base_in, index syn_id);
inline std::vector<ConnectionT *> get_conn_ptrs(ConnectorBase * conn_base_in, index synid);
inline void update_conn_ptrs(const std::vector<ConnectionT*> &old_conn_ptrs, const std::vector<ConnectionT*> &new_conn_ptrs);
LookBackNode<ConnectionT>* get_validated_neuron(Node *node_in);
public:
ConnectorBase* add_connection( Node& src,
Node& tgt,
ConnectorBase* conn,
synindex syn_id,
double delay,
double weight);
ConnectorBase* add_connection( Node& src,
Node& tgt,
ConnectorBase* conn,
synindex syn_id,
DictionaryDatum& d,
double delay,
double weight );
ConnectorModel* clone(std::string name) const;
};
}
#endif