/home/runner/work/HiCR/HiCR/include/hicr/core/instanceTemplate.hpp Source File

HiCR: /home/runner/work/HiCR/HiCR/include/hicr/core/instanceTemplate.hpp Source File
HiCR
instanceTemplate.hpp
Go to the documentation of this file.
1/*
2 * Copyright 2025 Huawei Technologies Co., Ltd.
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
24#pragma once
25
26#include <cstdint>
27#include <hicr/core/definitions.hpp>
29#include <hicr/core/topology.hpp>
31
32namespace HiCR
33{
34
38class InstanceManager;
39
44{
45 friend class HiCR::InstanceManager;
46
47 public:
48
56 : _topology(topology){};
57 InstanceTemplate() = delete;
58
62 virtual ~InstanceTemplate() = default;
63
69 const HiCR::Topology &getTopology() const { return _topology; }
70
71 private:
72
76 const HiCR::Topology _topology;
77};
78
79} // namespace HiCR
Definition instanceManager.hpp:57
Definition instanceTemplate.hpp:44
virtual ~InstanceTemplate()=default
InstanceTemplate(const HiCR::Topology &topology)
Definition instanceTemplate.hpp:55
const HiCR::Topology & getTopology() const
Definition instanceTemplate.hpp:69
Definition topology.hpp:40
Provides a definition for the abstract instance manager class.
Provides a definition for the HiCR Instance class.