NEST  2.6.0,not_revisioned_source_dir@0
syn_id_delay.h
Go to the documentation of this file.
1 /*
2  * syn_id_delay.h
3  *
4  * This file is part of NEST.
5  *
6  * Copyright (C) 2004 The NEST Initiative
7  *
8  * NEST is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * NEST is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with NEST. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
23 #ifndef SYN_ID_DELAY_H
24 #define SYN_ID_DELAY_H
25 
26 #include "nest_time.h"
27 
28 namespace nest
29 {
30 
31  struct SynIdDelay
32  {
33  unsigned syn_id: 8;
34  unsigned delay: 24;
35 
37  {
38  set_delay_ms(d);
39  }
40 
41  SynIdDelay(const SynIdDelay &s) :
42  syn_id(s.syn_id),
43  delay(s.delay)
44  {
45  }
46 
51 
56  };
57 
58 }
59 
60 #endif
SynIdDelay(const SynIdDelay &s)
Definition: syn_id_delay.h:41
const Name d("d")
Specific to Izhikevich 2003.
Definition: nest_names.h:83
static double_t delay_steps_to_ms(delay steps)
Convert between delays given in steps and milliseconds.
Definition: nest_time.h:411
const synindex invalid_synindex
Definition: nest.h:116
void set_delay_ms(const double_t d)
Set the delay of the connection specified in ms.
Definition: syn_id_delay.h:55
unsigned syn_id
Definition: syn_id_delay.h:33
static delay delay_ms_to_steps(double_t ms)
Definition: nest_time.h:415
SynIdDelay(double_t d)
Definition: syn_id_delay.h:36
Definition: syn_id_delay.h:31
double double_t
Double precision floating point numbers.
Definition: nest.h:93
double_t get_delay_ms() const
Return the delay of the connection in ms.
Definition: syn_id_delay.h:50
long_t delay
Delay of a connection.
Definition: nest.h:178