NEST main@caf0ae8
 
Loading...
Searching...
No Matches
buffer_resize_log.h
Go to the documentation of this file.
1/*
2 * buffer_resize_log.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 BUFFER_RESIZE_LOG_H
24#define BUFFER_RESIZE_LOG_H
25
26// C++ includes:
27#include <vector>
28
29// Includes from libnestutil:
30#include "dictionary.h"
31
32namespace nest
33{
34
39{
40public:
42 void clear();
43 void add_entry( size_t global_max_spikes_sent, size_t new_buffer_size );
44 void to_dict( Dictionary& ) const;
45
46private:
47 std::vector< long > time_steps_;
48 std::vector< long > global_max_spikes_sent_;
49 std::vector< long > new_buffer_size_;
50};
51
52}
53
54#endif /* buffer_resize_log_h */
Dictionary class for interface to Python and C++ API.
Definition dictionary.h:213
Collect information on spike transmission buffer resizing.
Definition buffer_resize_log.h:39
std::vector< long > global_max_spikes_sent_
Spike number that triggered resize.
Definition buffer_resize_log.h:48
BufferResizeLog()
Definition buffer_resize_log.cpp:35
void add_entry(size_t global_max_spikes_sent, size_t new_buffer_size)
Definition buffer_resize_log.cpp:51
void to_dict(Dictionary &) const
Definition buffer_resize_log.cpp:59
std::vector< long > time_steps_
Time of resize event in steps.
Definition buffer_resize_log.h:47
std::vector< long > new_buffer_size_
Buffer size after resize.
Definition buffer_resize_log.h:49
void clear()
Definition buffer_resize_log.cpp:43
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33