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



419
420
421
# File 'lib/babeltrace/ctf/events.rb', line 419

def index(i)
  return Definition.create(@definition.sequence_index(i))
end

#lenObject



415
416
417
# File 'lib/babeltrace/ctf/events.rb', line 415

def len
  @definition.sequence_len
end

#valueObject



423
424
425
# File 'lib/babeltrace/ctf/events.rb', line 423

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