CARLsim  5.0.0
CARLsim: a GPU-accelerated SNN simulator
RangeDelay Struct Reference

a range struct for synaptic delays More...

#include <carlsim_datastructures.h>

Public Member Functions

 RangeDelay (int _min, int _max)
 
 RangeDelay (int _val)
 

Public Attributes

int max
 
int min
 

Friends

std::ostream & operator<< (std::ostream &strm, const RangeDelay &d)
 

Detailed Description

Synaptic delays can range between 1 and 20 ms. The struct maintains two fields: min and max.

Parameters
[in]minthe lower bound for delay values
[in]maxthe upper bound for delay values Examples: RangeDelay(2) => all delays will be 2 (delay.min=2, delay.max=2) RangeDelay(1,10) => delays will be in range [1,10]

Definition at line 279 of file carlsim_datastructures.h.

Constructor & Destructor Documentation

◆ RangeDelay() [1/2]

RangeDelay ( int  _val)
inline

Definition at line 280 of file carlsim_datastructures.h.

◆ RangeDelay() [2/2]

RangeDelay ( int  _min,
int  _max 
)
inline

Definition at line 284 of file carlsim_datastructures.h.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  strm,
const RangeDelay d 
)
friend

Definition at line 290 of file carlsim_datastructures.h.

Member Data Documentation

◆ max

int max

Definition at line 293 of file carlsim_datastructures.h.

◆ min

int min

Definition at line 293 of file carlsim_datastructures.h.


The documentation for this struct was generated from the following file: