首页> 外国专利> Constructor Argument Optimization in Object Model for Folding Multiple Casts Expressions

Constructor Argument Optimization in Object Model for Folding Multiple Casts Expressions

机译:折叠多个强制转换表达式的对象模型中的构造函数参数优化

摘要

A method and computer program product, for providing an optimization for a most derived object during compile time are provided. The optimization determines whether a most derived class object is present during a compile time. Also, the optimization utilizes the most derived class object to obtain a location of a virtual base for the most derived class object during the compile time, and provides the virtual base of the most derived class object during the compile time. The method is executed for a constructor and/or a destructor. The constructor or destructor contains arguments which require conversion to a base type, and the conversion is performed at compile-time instead of at runtime.
机译:提供了一种方法和计算机程序产品,用于在编译期间为最派生的对象提供优化。该优化确定在编译期间是否存在派生程度最高的类对象。同样,优化利用最派生类对象在编译时为最派生类对象获取虚拟库的位置,并在编译时提供最派生类对象的虚拟库。该方法针对构造函数和/或析构函数执行。构造函数或析构函数包含需要转换为基本类型的参数,并且转换是在编译时而不是在运行时执行的。

著录项

  • 公开/公告号US2009064116A1

    专利类型

  • 公开/公告日2009-03-05

    原文格式PDF

  • 申请/专利权人 MICHAEL WONG;

    申请/专利号US20070847164

  • 发明设计人 MICHAEL WONG;

    申请日2007-08-29

  • 分类号G06F9/45;

  • 国家 US

  • 入库时间 2022-08-21 19:30:49

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号