Class: Babeltrace::Iter

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/babeltrace/iterator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#childObject

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(timestamp)
  Babeltrace.bt_iter_create_time_pos(self, timestamp)
end

#get_posObject



38
39
40
# File 'lib/babeltrace/iterator.rb', line 38

def get_pos
  Babeltrace.bt_iter_get_pos(self)
end

#nextObject



34
35
36
# File 'lib/babeltrace/iterator.rb', line 34

def next
  Babeltrace.bt_iter_next(self)
end

#rewindObject



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