Commit Graph

31 Commits (4d08211a958ce73b3cd52ae1ca7d250e9327daeb)

Author SHA1 Message Date
Marc Alexander Lehmann 4d08211a95 throw declarations are fine any time 16 years ago
llucax 0f140ad22b Add exceptions support to C++ interface.
Add exception specification and a ev::bad_loop exception that is thrown
when a loop can't be initialized.
16 years ago
llucax a836b93fee Add missing ev_time () to ev namespace, but renamed as now ().
Note there is no colission with ev_now (), which is a member function of
loop_ref named in the C++ interface.
16 years ago
llucax 8218239271 Add loop wrappers to C++ interface.
3 new classes are provided: loop_ref, dynamic_loop and default_loop.

loop_ref has value semantics and is just a pointer wrapper (but with
reference syntax). You can change a ev_loop* for a loop_ref and
vice-versa without notice. You can create (or asign) a loop_ref from
a ev_loop* and you can cast a loop_ref to a ev_loop*. You can check
for equality between loop_refs and ev_loop pointers. No clean-up is done
by a loop_ref.

dynamic_loop and default_loop have both reference semantics (they are
non-copiable and non-assignable), and provide automatic destruction.
16 years ago
llucax 888247c72c Add missing feed_event () method to base watchers class. 16 years ago
llucax 41a0047f88 Add missing free functions to ev namespace. 16 years ago
llucax 4b62c8e39d Add missing constants to ev namespace. 16 years ago
llucax 9a6f0043cb Move typedef and constant to the top. 16 years ago
llucax fef12f5966 Remove private implementation of watcher's copy ctor and operator=. 16 years ago
Marc Alexander Lehmann 95a9270715 *** empty log message *** 16 years ago
Marc Alexander Lehmann 441f6880c4 *** empty log message *** 16 years ago
Marc Alexander Lehmann 2a9e0df433 *** empty log message *** 16 years ago
Marc Alexander Lehmann a833e4a491 *** empty log message *** 16 years ago
Marc Alexander Lehmann ab41c6612e fucked up++ watchers again 16 years ago
Marc Alexander Lehmann bf86fed66d fix c++ interface 16 years ago
Marc Alexander Lehmann 19fc194840 document c++ callbacks! 16 years ago
Marc Alexander Lehmann 4989fff209 applied fix by chris brody 16 years ago
Marc Alexander Lehmann 435ffedd0e *** empty log message *** 16 years ago
Marc Alexander Lehmann 79531a989f complete c++ overhaul 16 years ago
Marc Alexander Lehmann de0d38140f fix bug reported by chris brody 16 years ago
Marc Alexander Lehmann 97ec2832ad great idea. radically simplify the method callbacks 16 years ago
Marc Alexander Lehmann 93e0a445b7 *** empty log message *** 16 years ago
Marc Alexander Lehmann b2a7836d18 docs 16 years ago
Marc Alexander Lehmann ff5ffd9908 update c++ if 16 years ago
Marc Alexander Lehmann 669bbc0040 document c++ api 16 years ago
Marc Alexander Lehmann 16572bb3c5 use a static method as thunk, saving codesize and better hiding. didn't know this was possible 16 years ago
Marc Alexander Lehmann a6e7c5d3b5 fix ev++ 16 years ago
Marc Alexander Lehmann 2318d410a3 do away with ev++.C 16 years ago
Marc Alexander Lehmann 4e4ecb8dc4 fix bug 16 years ago
Marc Alexander Lehmann eeea948092 make timers best-effort non-drifting 16 years ago
Marc Alexander Lehmann b07765847b first rough cut at c++ interface 16 years ago