‚Q‚¿‚á‚ñ‚Ë‚é šƒXƒ}ƒz”Łš ¡ŒfŽ¦”‚ɖ߂遡 ‘S•” 1- ÅV50  

¡ ‚±‚̃XƒŒƒbƒh‚͉ߋŽƒƒO‘qŒÉ‚ÉŠi”[‚³‚ê‚Ä‚¢‚Ü‚·

++C++: V‚µ‚¢ƒ‰ƒCƒtƒXƒ^ƒCƒ‹‚ðlˆÄ‚µ‚Ü‚µ‚½

1 F—¥“®‚·‚é–¼–³‚µ‚³‚ñF03/07/13 11:45
ˆÈ‰º‚Ì•û–@‚ʼn¼‘zŠÖ”‚É—]•ª‚ȃAƒZƒ“ƒuƒ‰ƒR[ƒh‚ªo‚È‚­‚È‚è‚Ü‚µ‚½B
virtual‚̐‚¢Žš‚©‚猈•Ê‚Å‚«‚Ü‚·B
--object.h
#define FINALIZED_CLASS(Base,User) Base##_T<User>
struct Object{
@@foo(){ return 0; }; //virtual‚̂‚à‚è
@@enum{ bar=0 }; //virtual const?
};
template <class Object_User>
struct Object_T : Object_User{
@@FooPlusBar(){ return foo()+bar; };
};
--foo.cpp
#include "object.h"
struct MyObjectImp:Object{
@@foo(){ return 1; }; //ƒI[ƒo[ƒ‰ƒCƒh
@@enum{ bar=1 }; //ƒI[ƒo[ƒ‰ƒCƒh
};
typedef FINALIZED_CLASS(Object,MyObjectImp) MyObject;

main(){
@@return MyObject().FooPlusBar(); // =2
}
--foo.asm
_main:
@@mov eax,2
@@ret
--


2 F2getF03/07/13 11:46
ƒÖƒ¿ƒÁƒ¿ƒÑƒ¿..._ƒÓ(߁Íß )±Ë¬


3 F3getF03/07/13 11:48
ƒÀƒ¿ƒÈƒ¿..._ƒÓ(߁Íß )±Ë¬

4 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/07/13 11:54
4get

5 F_F03/07/13 11:55
http://homepage.mac.com/hiroyuki44/

6 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/07/13 12:18
ƒÑƒ¿ƒÑƒ¿ƒÇƒÅƒ¿H
ƒÁƒÁƒÇƒÈƒÈƒÍƒÒƒÁƒÁƒÇƒËƒÍ
ƒÑƒ¿ƒÑƒ¿ƒÇƒÅƒ¿H

7 FŽRè ÂF03/07/15 09:50

@__ÈQÈ_
@|i@@OO j|@ƒQ‚é‚ہiOOj
@|_ÜÜÜ_
@_ |ÜÜÜ~|@@@@@@@@@ŽRèÂ
@@ ~PPPP

2 KB
¡ ‚±‚̃XƒŒƒbƒh‚͉ߋŽƒƒO‘qŒÉ‚ÉŠi”[‚³‚ê‚Ä‚¢‚Ü‚·

šƒXƒ}ƒz”Łš ŒfŽ¦”Â‚É–ß‚é ‘S•” ‘O100 ŽŸ100 ÅV50

read.cgi ver 05.02.02 2014/06/23 Mango Mangüé š
FOX š DSO(Dynamic Shared Object)