Kaspersky Neuromorphic Platform  1.0.0
API Reference
Loading...
Searching...
No Matches
spike_message.h File Reference

Spike message class. More...

#include <iostream>
#include <vector>
#include "message_header.h"
+ Include dependency graph for spike_message.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  knp::core::messaging::SpikeMessage
 Structure of the spike message. More...
 

Namespaces

namespace  knp
 General framework namespace.
 
namespace  knp::core
 Core library namespace.
 
namespace  knp::core::messaging
 Messaging namespace.
 

Typedefs

using knp::core::messaging::SpikeIndex = uint32_t
 Spike index type in the form of a 32-bit unsigned integer.
 
using knp::core::messaging::SpikeData = std::vector<SpikeIndex>
 List of spike indexes.
 

Functions

bool knp::core::messaging::operator== (const SpikeMessage &sm1, const SpikeMessage &sm2)
 Check if two spike messages are the same.
 
std::ostream & knp::core::messaging::operator<< (std::ostream &stream, const core::messaging::SpikeData &spikes)
 Send spiking neuron indexes to an output stream.
 
std::ostream & knp::core::messaging::operator<< (std::ostream &stream, const SpikeMessage &msg)
 Send spike message to an output stream.
 
std::istream & knp::core::messaging::operator>> (std::istream &stream, SpikeMessage &msg)
 Get spike message from an input stream.
 

Detailed Description

Spike message class.

Developers: Artiom N.
Date
26.01.2023
License: Apache 2.0

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file spike_message.h.