#include <MPIInputSpikeBuffer.h>
Public Member Functions | |
MPIInputSpikeBufferVector (int numBuffers, size_t buf_size=MPIBUFFER_BLOCK_SIZE) | |
Constructor. | |
virtual | ~MPIInputSpikeBufferVector () |
MPIInputSpikeBuffer< T > & | operator[] (int idx) |
References the idx MPIInputSpikeBuffer in the array. | |
T * | getBuffersPool () |
Gives a pointer of the allocated space for the buffers. [used for testing only]. | |
unsigned int | size () |
Returns the number of MPIInputSpikeBuffers in the array. | |
Protected Attributes | |
int | nNodes |
Number of mpi input buffers in the vector (equals to number of mpi nodes). | |
size_t | _buf_size |
Size of the memory block to store the serialized data in incoming mpi messages. | |
vector< MPIInputSpikeBuffer< T > > | _buffers |
vector of all MPIInputSpikeBuffers | |
T * | inputBuffersPool |
The allocated contiguous memory block. |
Allocates contiguous memory space necessary to hold the received mpi serialized spike data for all of the MPIInputSpikeBuffers in the array, and then gives equal-sized segments of this memory pool to all of the mpi input buffers. MPI input buffers then use this memory segment to store the received mpi data.
Definition at line 191 of file MPIInputSpikeBuffer.h.
MPIInputSpikeBufferVector< T >::MPIInputSpikeBufferVector | ( | int | numBuffers, | |
size_t | buf_size = MPIBUFFER_BLOCK_SIZE | |||
) | [inline] |
Constructor.
numBuffers | number of MPIInputSpikeBuffers to create in the array. | |
buf_size | size of the memory block to store the serialized data in incoming mpi messages. |
Definition at line 352 of file MPIInputSpikeBuffer.h.
References MPIInputSpikeBufferVector< T >::_buffers, MPIInputSpikeBufferVector< T >::inputBuffersPool, and MPIInputSpikeBufferVector< T >::nNodes.
virtual MPIInputSpikeBufferVector< T >::~MPIInputSpikeBufferVector | ( | ) | [inline, virtual] |
Definition at line 202 of file MPIInputSpikeBuffer.h.
References MPIInputSpikeBufferVector< T >::inputBuffersPool.
MPIInputSpikeBuffer<T>& MPIInputSpikeBufferVector< T >::operator[] | ( | int | idx | ) | [inline] |
References the idx MPIInputSpikeBuffer in the array.
Definition at line 208 of file MPIInputSpikeBuffer.h.
References MPIInputSpikeBufferVector< T >::_buffers.
T* MPIInputSpikeBufferVector< T >::getBuffersPool | ( | ) | [inline] |
Gives a pointer of the allocated space for the buffers. [used for testing only].
Definition at line 214 of file MPIInputSpikeBuffer.h.
References MPIInputSpikeBufferVector< T >::inputBuffersPool.
unsigned int MPIInputSpikeBufferVector< T >::size | ( | ) | [inline] |
Returns the number of MPIInputSpikeBuffers in the array.
Definition at line 220 of file MPIInputSpikeBuffer.h.
References MPIInputSpikeBufferVector< T >::nNodes.
int MPIInputSpikeBufferVector< T >::nNodes [protected] |
Number of mpi input buffers in the vector (equals to number of mpi nodes).
Definition at line 227 of file MPIInputSpikeBuffer.h.
Referenced by MPIInputSpikeBufferVector< T >::MPIInputSpikeBufferVector(), and MPIInputSpikeBufferVector< T >::size().
size_t MPIInputSpikeBufferVector< T >::_buf_size [protected] |
Size of the memory block to store the serialized data in incoming mpi messages.
Definition at line 230 of file MPIInputSpikeBuffer.h.
vector<MPIInputSpikeBuffer<T> > MPIInputSpikeBufferVector< T >::_buffers [protected] |
vector of all MPIInputSpikeBuffers
Definition at line 233 of file MPIInputSpikeBuffer.h.
Referenced by MPIInputSpikeBufferVector< T >::MPIInputSpikeBufferVector(), and MPIInputSpikeBufferVector< T >::operator[]().
T* MPIInputSpikeBufferVector< T >::inputBuffersPool [protected] |
The allocated contiguous memory block.
Definition at line 236 of file MPIInputSpikeBuffer.h.
Referenced by MPIInputSpikeBufferVector< T >::getBuffersPool(), MPIInputSpikeBufferVector< T >::MPIInputSpikeBufferVector(), and MPIInputSpikeBufferVector< T >::~MPIInputSpikeBufferVector().