sigslot alternatives and similar libraries
Based on the "Miscellaneous" category.
Alternatively, view sigslot alternatives based on common mentions on social networks and blogs.
-
ZXing
ZXing ("Zebra Crossing") barcode scanning library for Java, Android -
RE2
RE2 is a fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python. It is a C++ library. -
ZBar
Clone of the mercurial repository http://zbar.hg.sourceforge.net:8000/hgroot/zbar/zbar -
American fuzzy lop
american fuzzy lop - a security-oriented fuzzer -
Serial Communication Library
Cross-platform, Serial Port library written in C++ -
Better Enums
C++ compile-time enum to string, iteration, in a single header file -
c-smart-pointers
Smart pointers for the (GNU) C programming language -
Experimental Boost.DI
DI: C++14 Dependency Injection Library -
UNITS
a compile-time, header-only, dimensional analysis and unit conversion library built on c++14 with no dependencies. -
constexpr-8cc
Compile-time C Compiler implemented as C++14 constant expressions -
outcome
Provides very lightweight outcome<T> and result<T> (non-Boost edition) -
cxx-prettyprint
A header-only library for C++(0x) that allows automagic pretty-printing of any container. -
libcpuid
a small C library for x86 CPU detection and feature extraction -
value-category-cheatsheet
A C++14 cheat-sheet on lvalues, rvalues, xvalues, and more -
StrTk
C++ String Toolkit Library https://www.partow.net/programming/strtk/index.html -
ub-canaries
collection of C/C++ programs that try to get compilers to exploit undefined behavior -
QtVerbalExpressions
This Qt lib is based off of the C++ VerbalExpressions library. [MIT] -
access_profiler
a tool to count accesses to member variables in c++ programs
Write Clean C++ Code. Always.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of sigslot or a related project?
Popular Comparisons
README
sigslot
C++11 signal/slot implementation
Requirements
- c++11
How to use
For a code sample, see test.cpp
class Emitter
{
public:
Signal<int> the_signal;
void do_emit(int value)
{
the_signal.emit(value);
}
};
The only thing required for a class to emit signals, is to declare a field of the Signal<> type. The template arguments will be the parameter types of the slots to be bound to the signal.
class Receiver: public Object
{
public:
void slot(int v)
{
cout << "Yay! " << v << endl;
}
};
The only thing required for a class to be able to bind to signals, is for it to derive from Object. After that, every method of the object can be bound to signals.
int main(int argc, char* argv[])
{
// Create both an emitting and receiving instance
Emitter em;
Receiver recv;
// Bind the slot to the signal
em.the_signal.bind(&Receiver::slot, &recv);
// Emit
em.do_emit(42);
return EXIT_SUCCESS;
}
Here we instantiate both classes, bind the signal and emit it.
Donations
Like it?
If you find this useful, please consider donating to BTC: 1Pck5gui4iXhTQUiUc3qFD7uPbj1cn5ZSB