57 size_ = int(spkTimes.size());
66 if (currentIndex_ < size_ && spkTimes_[currentIndex_] < endOfTimeSlice) {
67 return spkTimes_[currentIndex_++];
73 void SpikeGeneratorFromVector::checkSpikeVector() {
75 for (
int i=0; i<size_; i++) {
76 std::stringstream var; var <<
"spkTimes[" << currentIndex_ <<
"]";
CARLsim User Interface This class provides a user interface to the public sections of CARLsimCore sou...
static void assertTrue(bool statement, errorType errorIfAssertionFails, std::string errorFunc, std::string errorMsgPrefix="", std::string errorMsgSuffix="")
simple wrapper for assert statement
SpikeGeneratorFromVector(std::vector< int > spkTimes)
SpikeGeneratorFromVector constructor.
int nextSpikeTime(CARLsim *sim, int grpId, int nid, int currentTime, int lastScheduledSpikeTime, int endOfTimeSlice)
schedules the next spike time