...
首页> 外文期刊>Computing and informatics >IMPLEMENTING THE FACTORY PATTERN WITH THE HELP OF REFLECTION
【24h】

IMPLEMENTING THE FACTORY PATTERN WITH THE HELP OF REFLECTION

机译:通过反射帮助实现工厂模式

获取原文
获取原文并翻译 | 示例
   

获取外文期刊封面封底 >>

       

摘要

Reflection, reflection-based programming and metaprogramming are valuable tools for many programming tasks, like the implementation of persistence and serialization-like operations, object-relational mapping, remote method invocation, automatic generation of user-interfaces, etc., and also for the implementation of several design patterns. C++ as one of the most prevalent programming languages still lacks support for standardised, compiler-assisted reflection. In this paper we introduce in short the Mirror reflection library which is a part of an ongoing effort to add reflection to C++ and we will show how reflection can be used to greatly simplify the implementation of object factories classes constructing instances of other classes from various external data representations.
机译:反射,基于反射的编程和元编程是许多编程任务的宝贵工具,例如实现类似持久性和序列化的操作,对象关系映射,远程方法调用,用户界面的自动生成等,并且对于实现几种设计模式。作为最流行的编程语言之一,C ++仍然缺乏对标准化的,编译器辅助的反射的支持。在本文中,我们简要介绍了Mirror反射库,这是正在进行的向C ++添加反射的工作的一部分,并且我们将展示如何使用反射来大大简化对象工厂类的实现,从而从各种外部构造其他类的实例。数据表示。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号