Line data Source code
1 : /*
2 : * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved.
3 : * Description: ccu representation base header file
4 : * Create: 2025-05-21
5 : */
6 :
7 : #ifndef HCOMM_CCU_REPRESENTATION_REM_MEM_H
8 : #define HCOMM_CCU_REPRESENTATION_REM_MEM_H
9 :
10 : #include "ccu_rep_base_v1.h"
11 : #include "ccu_datatype_v1.h"
12 :
13 : namespace hcomm {
14 : namespace CcuRep {
15 :
16 : class CcuRepRemMem : public CcuRepBase {
17 :
18 : public:
19 : CcuRepRemMem(CcuInsGeneratorBase* insGenPtr, const ChannelHandle channel, RemoteAddr rem);
20 : bool Translate(CcuKernel* ccuKernel, CcuInstr *&instr, uint16_t &instrId, const TransDep &dep) override;
21 : std::string Describe() override;
22 :
23 0 : ChannelHandle GetChannel() { return channel; }
24 0 : RemoteAddr GetRem() { return rem; }
25 : private:
26 : CcuInsGeneratorBase* insGenPtr{nullptr};
27 : ChannelHandle channel;
28 :
29 : RemoteAddr rem{};
30 :
31 : };
32 :
33 : }; // namespace CcuRep
34 : }; // namespace hcomm
35 : #endif // HCOMM_CCU_REPRESENTATION_REM_MEM_H
|