Sha256: 5a10ff2b992c7079144fcb65c7de8eda56084d4775101ce04980f3805a28d4c1
Contents?: true
Size: 937 Bytes
Versions: 4
Compression:
Stored size: 937 Bytes
Contents
// -*- c++ -*- #pragma once #ifndef __REFLEX_RUBY_TIMER_H__ #define __REFLEX_RUBY_TIMER_H__ #include <rucy/class.h> #include <rucy/extension.h> #include <reflex/timer.h> RUCY_DECLARE_WRAPPER_VALUE_FROM_TO(REFLEX_EXPORT, Reflex::Timer) namespace Reflex { REFLEX_EXPORT Rucy::Class timer_class (); // class Reflex::Timer template <typename T> class RubyTimer : public Rucy::ClassWrapper<T> { typedef Rucy::ClassWrapper<T> Super; public: virtual void fire () { if (this->value.is_a(timer_class())) { RUCY_SYM(call_timer_block); this->value.call(call_timer_block); } Super::fire(); } };// RubyTimer }// Reflex namespace Rucy { template <> inline Class get_ruby_class<Reflex::Timer> () { return Reflex::timer_class(); } inline Value value (Reflex::Timer::Ref& ref, Value klass = Reflex::timer_class()) { return value(ref.get(), klass); } }// Rucy #endif//EOH
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
reflexion-0.3.4 | include/reflex/ruby/timer.h |
reflexion-0.3.3 | include/reflex/ruby/timer.h |
reflexion-0.3.2 | include/reflex/ruby/timer.h |
reflexion-0.3.1 | include/reflex/ruby/timer.h |