タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

programmingとC++とbinaryに関するmitsuki_engawaのブックマーク (2)

  • reflection.cc - 兼雑記

    http://shinh.skr.jp/koneta/reflection_cpp.tar.gz 以下のように、 Test クラス内の test ではじまっているメソッドをイテレートして呼び出せます。 #include "reflection.h" #include <iostream> #include <cstring> using namespace std; class Test { void test_func1(); void test_func2(); void ignore(); }; void Test::test_func1() { cout << "func1" << endl; } void Test::test_func2() { cout << "func2" << endl; } void Test::ignore() { cout << "error" <<

    reflection.cc - 兼雑記
    mitsuki_engawa
    mitsuki_engawa 2005/11/17
    メソッドを名前で列挙する。
  • 1