返回介绍

31.18 Class Object Definition

发布于 2020-09-09 22:56:04 字数 1142 浏览 752 评论 0 收藏 0

NOTE

  1. ClassDefn handle is a new concept. It does not correspond to any vpiUserDefined (class object) in the design. Rather it represents the actual type definition of a class.
  2. Should not call vpi_get_value/vpi_put_value on the non-static variables obtained from the class definition handle.
  3. Iterator to constraints returns only normal constraints and not inline constraints.
  4. To get constraints inherited from base classes, you will need to traverse the extend relation to obtain the base class.
  5. The vpiDerivedClasses iterator returns all the classes derived from the given class.
  6. The relation to vpiExtend exists whenever a one class is derived from another class (ref Section 11.12). The relation from extend to classDefn provides the base class. The iterators from extend to param assign and arguments provide the parameters and arguments used in constructor chaining (ref Section 11.16 and 11.23)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文