/***************************************************************************
 *                           BufferedActivityTimes.h                       *
 *                           -------------------                           *
 * copyright            : (C) 2016 by Francisco Naveros                    *
 * email                : fnaveros@ugr.es                                  *
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 3 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef BUFFEREDACTIVITYTIMES_H_
#define BUFFEREDACTIVITYTIMES_H_

/*!
 * \file BufferedActivityTimes.h
 *
 * \author Francisco Naveros
 * \date May 2016
 *
 * This file declares a class which implements a linked list of input activity times for each input sinapse in a learning rule with kernels precomputed in look-up tables. 
 */

/*!
 * \class BufferedActivityTimes
 *
 * \brief Buffer for activity times.
 *
 * This class declares a class which implements a linked list of input activity times for each input sinapse in a learning rule with kernels precomputed in look-up tables. 
 *
 * \author Francisco Naveros
 * \date May 2016
 */
class BufferedActivityTimes {

	public:

		int size;
		//Size of vector, number of elements, first element, last element, 
		int * indexData;

		double ** times;



		BufferedActivityTimes(int newSize);

		~BufferedActivityTimes();

		void InsertElement(int index, double time, double thresholdTime);

		void GetTimeElements(int index, double newThresholdTime, double * outputTimes);



};






#endif /* BUFFEREDACTIVITYTIMES_H_ */
