Class: Babeltrace2::UserMessageIterator
- Inherits:
-
Object
- Object
- Babeltrace2::UserMessageIterator
- Includes:
- GetMethod
- Defined in:
- lib/babeltrace2/plugin/plugin-dev.rb
Instance Attribute Summary collapse
-
#bt_message_iterator ⇒ Object
readonly
Returns the value of attribute bt_message_iterator.
Instance Method Summary collapse
-
#initialize ⇒ UserMessageIterator
constructor
A new instance of UserMessageIterator.
Constructor Details
#initialize ⇒ UserMessageIterator
Returns a new instance of UserMessageIterator.
173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 |
# File 'lib/babeltrace2/plugin/plugin-dev.rb', line 173 def initialize next_method = get_method(:next, 2) raise "'next' method must be defined" unless next_method finalize_method = get_method(:finalize, 1) initialize_method = get_method(:init, 3) seek_beginning_method = get_method(:seek_beginning, 1) can_seek_beginning_method = get_method(:can_seek_beginning, 1) seek_ns_from_origin_method = get_method(:seek_ns_from_origin, 2) can_seek_ns_from_origin_method = get_method(:can_seek_ns_from_origin, 2) = BTMessageIteratorClass.new(next_method: next_method) .finalize_method = finalize_method if finalize_method .initialize_method = initialize_method if initialize_method if seek_beginning_method .set_seek_beginning_methods(seek_beginning_method, can_seek_method: can_seek_beginning_method) end if seek_ns_from_origin_method .set_seek_ns_from_origin_methods(seek_ns_from_origin_method, can_seek_method: can_seek_ns_from_origin_method) end end |
Instance Attribute Details
#bt_message_iterator ⇒ Object (readonly)
Returns the value of attribute bt_message_iterator.
171 172 173 |
# File 'lib/babeltrace2/plugin/plugin-dev.rb', line 171 def end |