Class: Babeltrace::CTF::ArrayDef

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



395
396
397
# File 'lib/babeltrace/ctf/events.rb', line 395

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

#lenObject



391
392
393
# File 'lib/babeltrace/ctf/events.rb', line 391

def len
  @definition.decl.len
end

#valueObject



399
400
401
# File 'lib/babeltrace/ctf/events.rb', line 399

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