NEST main@caf0ae8
 
Loading...
Searching...
No Matches
device_node.h
Go to the documentation of this file.
1/*
2 * device_node.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 DEVICE_NODE_H
24#define DEVICE_NODE_H
25
26// Includes from nestkernel:
27#include "node.h"
28
29namespace nest
30{
31
35class DeviceNode : public Node
36{
37
38public:
40 : Node()
41 , local_device_id_( invalid_index )
42 {
43 }
44
46 : Node( dn )
47 , local_device_id_( invalid_index )
48 {
49 }
50
51 void set_local_device_id( const size_t ldid ) override;
52 size_t get_local_device_id() const override;
53
54protected:
56};
57
58inline void
60{
61 local_device_id_ = ldid;
62}
63
64inline size_t
69
70} // namespace
71
72#endif /* #ifndef DEVICE_NODE_H */
Base class for device objects.
Definition device_node.h:36
void set_local_device_id(const size_t ldid) override
Sets the local device id.
Definition device_node.h:59
DeviceNode()
Definition device_node.h:39
size_t local_device_id_
Definition device_node.h:55
size_t get_local_device_id() const override
Gets the local device id.
Definition device_node.h:65
DeviceNode(DeviceNode const &dn)
Definition device_node.h:45
Base class for all NEST network objects.
Definition node.h:99
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
Declarations for base class Node.