Class: Babeltrace::Iter
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Babeltrace::Iter
- Defined in:
- lib/babeltrace/iterator.rb
Instance Attribute Summary collapse
-
#child ⇒ Object
Returns the value of attribute child.
Instance Method Summary collapse
- #create_time_pos(timestamp) ⇒ Object
- #get_pos ⇒ Object
- #next ⇒ Object
- #rewind ⇒ Object
- #set_pos(pos) ⇒ Object
Instance Attribute Details
#child ⇒ Object
Returns the value of attribute child.
32 33 34 |
# File 'lib/babeltrace/iterator.rb', line 32 def child @child end |
Instance Method Details
#create_time_pos(timestamp) ⇒ Object
52 53 54 |
# File 'lib/babeltrace/iterator.rb', line 52 def create_time_pos() Babeltrace.bt_iter_create_time_pos(self, ) end |
#get_pos ⇒ Object
38 39 40 |
# File 'lib/babeltrace/iterator.rb', line 38 def get_pos Babeltrace.bt_iter_get_pos(self) end |
#next ⇒ Object
34 35 36 |
# File 'lib/babeltrace/iterator.rb', line 34 def next Babeltrace.bt_iter_next(self) end |
#rewind ⇒ Object
46 47 48 49 50 |
# File 'lib/babeltrace/iterator.rb', line 46 def rewind pos = IterPos::new pos[:type] = :SEEK_BEGIN set_pos(pos) end |
#set_pos(pos) ⇒ Object
42 43 44 |
# File 'lib/babeltrace/iterator.rb', line 42 def set_pos(pos) Babeltrace.bt_iter_set_pos(self, pos) end |