TA的每日心情 | 慵懒 2019-6-5 13:01 |
|---|
签到天数: 115 天 [LV.6]出窍
|
回复 老兵帅客 的帖子* e1 L) w. y, w5 u- s7 v7 T+ h
/ G4 S* H# a" e: M
在wikipedia上搜了一下reflection C++。
) b- j% \, ]( x/ U/ PQt/C++
+ |1 h! l6 @% h, \5 F1 O( p; z' P" b, Y2 g% v2 [9 `0 t% k+ H* \0 S
Qt 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.
]3 l. ^, A; h% o/ m4 R貌似并不能直接支持,但是可以实现类似效果。- F# R7 U, z* J: Q
c++ reflection4 I$ w9 \( U2 V' e
|
|