C++反射机制的一种简单实现  被引量:2

A Simple Implementation of C++ Reflection

在线阅读下载全文

作  者:鲍亮[1] 陈平[1] 

机构地区:[1]西安电子科技大学软件工程研究所,西安710071

出  处:《计算机工程》2006年第16期95-96,99,共3页Computer Engineering

基  金:"十五"军事电子预研重点课题项目

摘  要:讨论了C++反射机制的实现问题,介绍了反射机制的概念和分类,比较了向C++添加反射机制的可能性和方式,提出并分析了一种基于宏定义、模板和泛型机制的C++反射机制实现手段——“简单C++反射机制(SimpleC++ReflectionSCR)”。This paper is tocus on the implementation of C++ reflection mechanism. The definition and classification of reflection is simply introduced first. Then, the possibility and methods on how to add reflection mechanism to C++ programming language are discussed. Finally, simple C++ reflection (SCR), a macro definition, template and generic programming based solution, is discussed.

关 键 词:反射 宏定义 模板 简单C++反射 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象