Line data Source code
1 : /*
2 : * Copyright (c) Huawei Technologies Co., Ltd. 2024-2024. All rights reserved.
3 : * Description: ccu representation implementation file
4 : * Author: sunzhepeng
5 : * Create: 2024-06-17
6 : */
7 :
8 : #include "ccu_loopcall_v1.h"
9 :
10 : #include "exception_util.h"
11 : #include "ccu_api_exception.h"
12 :
13 : namespace hcomm {
14 : namespace CcuRep {
15 :
16 2 : LoopCall::LoopCall(CcuRepContext* context, const std::string& label) : context(context), label(label)
17 : {
18 : // repLoopCall = std::make_shared<CcuRepLoopCall>(label);
19 2 : }
20 :
21 0 : void LoopCall::AppendToContext()
22 : {
23 0 : if (context == nullptr) {
24 0 : Hccl::THROW<Hccl::CcuApiException>("context is nullptr, loopCall");
25 : }
26 0 : return context->Append(repLoopCall);
27 : }
28 :
29 : }; // namespace CcuRep
30 : }; // namespace hcomm
|