ONE - On-device Neural Engine
Loading...
Searching...
No Matches
Domain.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#ifndef __NEST_DOMAIN_H__
18
#define __NEST_DOMAIN_H__
19
20
#include "
nest/Closure.h
"
21
22
namespace
nest
23
{
24
25
class
Domain
26
{
27
public
:
28
Domain
() =
default
;
29
30
public
:
31
Domain
(
const
DomainID
&
id
) : _id{
id
}
32
{
33
// DO NOTHING
34
}
35
36
public
:
37
Domain
(
const
Domain
&) =
default
;
38
39
public
:
40
template
<
typename
... Args>
Closure
operator()
(Args &&...indices)
41
{
42
return
Closure
{_id, std::forward<Args>(indices)...};
43
}
44
45
public
:
46
const
DomainID
&
id
(
void
)
const
{
return
_id; }
47
48
private
:
49
DomainID
const
_id;
50
};
51
52
}
// namespace nest
53
54
#endif
// __NEST_DOMAIN_H__
Closure.h
nest::Closure
Definition
Closure.h:27
nest::Domain
Definition
Domain.h:26
nest::Domain::Domain
Domain(const Domain &)=default
nest::Domain::Domain
Domain(const DomainID &id)
Definition
Domain.h:31
nest::Domain::Domain
Domain()=default
nest::Domain::id
const DomainID & id(void) const
Definition
Domain.h:46
nest::Domain::operator()
Closure operator()(Args &&...indices)
Definition
Domain.h:40
nest::DomainID
Definition
DomainID.h:26
nest
Definition
Block.h:27
compiler
nest
core
include
nest
Domain.h
Generated by
1.9.8