Class: Babeltrace::CTF::SequenceDef

Inherits:
Definition show all
Defined in:
lib/babeltrace/ctf/events.rb

Instance Attribute Summary

Attributes inherited from Definition

#definition

Instance Method Summary collapse

Methods inherited from Definition

create, #decl, #initialize, #name

Constructor Details

This class inherits a constructor from Babeltrace::CTF::Definition

Instance Method Details

#index(i) ⇒ Object



407
408
409
410
# File 'lib/babeltrace/ctf/events.rb', line 407

def index(i)
  d = CTF.bt_sequence_index(@definition, i)
  return Definition.create(d)
end

#lenObject



403
404
405
# File 'lib/babeltrace/ctf/events.rb', line 403

def len
  CTF.bt_sequence_len(@definition)
end

#valueObject



412
413
414
# File 'lib/babeltrace/ctf/events.rb', line 412

def value
  len.times.collect { |i| index(i).value }
end