quic/qbox
Loading...
Searching...
No Matches
pathid_extension.h
1/*
2 * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All Rights Reserved.
3 * Author: GreenSocs 2022
4 *
5 * SPDX-License-Identifier: BSD-3-Clause
6 */
7
8#ifndef _GREENSOCS_PATHID_EXTENSION_H
9#define _GREENSOCS_PATHID_EXTENSION_H
10
11#include <systemc>
12#include <tlm>
13
14namespace gs {
15
25class PathIDExtension : public tlm::tlm_extension<PathIDExtension>, public std::vector<int>
26{
27public:
28 PathIDExtension() = default;
29 PathIDExtension(const PathIDExtension&) = default;
30
31public:
32 virtual tlm_extension_base* clone() const override { return new PathIDExtension(*this); }
33
34 virtual void copy_from(const tlm_extension_base& ext) override
35 {
36 const PathIDExtension& other = static_cast<const PathIDExtension&>(ext);
37 *this = other;
38 }
39};
40} // namespace gs
41#endif
Definition target.h:160
Definition pathid_extension.h:26
Tool which reads a Lua configuration file and sets parameters.
Definition biflow.cc:10