TA的每日心情 | 慵懒 2019-6-5 13:01 |
---|
签到天数: 115 天 [LV.6]出窍
|
回复 老兵帅客 的帖子
( f& X/ C9 Y9 Z
' z- _, A8 ]' u' C3 h. R! @ q ^2 c在wikipedia上搜了一下reflection C++。
" G8 h: l( [' h* G' C) qQt/C++
! V/ i- l1 K/ p( R" n7 ?) M
+ Z, ?8 ?# u; tQt framework extends C++ with its meta-language and provides reflection ability of member/method reference and query by name for Qt objects with QMetaObject class, which contains meta-information about the Qt objects. Objective-C is a reflective, object-oriented programming language that adds Smalltalk-style messaging to the C programming language.
) S1 F# M6 x, z* I+ ~+ @( n; V貌似并不能直接支持,但是可以实现类似效果。; V' _% W8 M& @3 G0 h" }: l G; {& J
c++ reflection
% I/ b2 V5 t5 W- V' X% y2 ^ |
|