C++模板庫 libsigc++

fmms 12年前發布 | 20K 次閱讀 C/C++開發 C/C++

libsigc++是實現類型安全回調的一個C++模板庫。

libsigc++提供了信號(signal)和槽(slot)的概念,實現了信號機制。slot對應一個回調函數,信號(signal)與槽(slot)相關聯(attach),當一個信號被發射(emit)時,相對應的槽被調用。

  • Compile time typesafe callbacks (faster than run time checks)
  • Typesafety violations report line number correctly with template names (no tracing template failures into headers)
  • No compiler extensions or meta compilers required
  • Proper handling of dynamic objects and signals (deleted objects will not cause seg faults)
  • Extendable API at any level: signal, slot, connection and trackable
  • Extensions do not require alteration of basic components
  • User definable accumulators
  • A variety of adaptors to change the callback signature: bind, hide, retype, compose and lambda call groups
  • Various compilers and platforms are supported: gcc, cygwin, mingw32, MS .NET 2003, Sun Forte C++, Compaq C++, Intel C++, IBM AIX, Tru64, IRIX MipsPro.


 

項目主頁:http://www.baiduhome.net/lib/view/home/1326940411858

 本文由用戶 fmms 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!