C++ Device API Reference Manual
Reference documentation for the Simics C++ Device API.
 
Loading...
Searching...
No Matches
hierarchical-object-interface.h
Go to the documentation of this file.
1// -*- mode: C++; c-file-style: "virtutech-c++" -*-
2
3/*
4 © 2022 Intel Corporation
5
6 This software and the related documents are Intel copyrighted materials, and
7 your use of them is governed by the express license under which they were
8 provided to you ("License"). Unless the License provides otherwise, you may
9 not use, modify, copy, publish, distribute, disclose or transmit this software
10 or the related documents without Intel's prior written permission.
11
12 This software and the related documents are provided as is, with no express or
13 implied warranties, other than those that are expressly stated in the License.
14*/
15
16#ifndef SIMICS_HIERARCHICAL_OBJECT_INTERFACE_H
17#define SIMICS_HIERARCHICAL_OBJECT_INTERFACE_H
18
19#include <string>
20#include <string_view>
21
22#include "simics/conf-object.h"
23
24namespace simics {
25
26class MappableConfObject;
27class FieldInterface;
28class RegisterInterface;
29class BankInterface;
30
37enum class Level {BANK = 0, REGISTER = 1, FIELD = 2};
38
50 public:
52 virtual const std::string &hierarchical_name() const = 0;
54 virtual std::string_view name() const = 0;
56 virtual const std::string &description() const = 0;
57 virtual void set_description(std::string_view desc) = 0;
59 virtual Level hierarchy_level() const = 0;
61 virtual std::string_view bank_name() const = 0;
63 virtual MappableConfObject *dev_obj() const = 0;
66 virtual ConfObjectRef bank_obj_ref() const = 0;
68 virtual std::string_view parent_name() const = 0;
70 virtual FieldInterface *lookup_field(const std::string &name) const = 0;
73 const std::string &name) const = 0;
75 virtual BankInterface *lookup_bank(const std::string &name) const = 0;
76};
77
78} // namespace simics
79
80#endif
An interface implemented by a Simics bank.
Definition: bank-interface.h:47
Represents Simics C type conf_object_t.
Definition: conf-object.h:38
Definition: field-interface.h:34
Interface for hierarchical objects used in bank register modeling.
Definition: hierarchical-object-interface.h:49
virtual std::string_view parent_name() const =0
virtual BankInterface * lookup_bank(const std::string &name) const =0
virtual std::string_view bank_name() const =0
virtual Level hierarchy_level() const =0
virtual const std::string & hierarchical_name() const =0
virtual MappableConfObject * dev_obj() const =0
virtual std::string_view name() const =0
virtual void set_description(std::string_view desc)=0
virtual const std::string & description() const =0
virtual FieldInterface * lookup_field(const std::string &name) const =0
virtual ConfObjectRef bank_obj_ref() const =0
virtual RegisterInterface * lookup_register(const std::string &name) const =0
Definition: mappable-conf-object.h:134
Definition: register-interface.h:37
Definition: after-bank.h:33
Level
Enum representing the hierarchy level of an object.
Definition: hierarchical-object-interface.h:37