Class: Babeltrace::CTF::ArrayDef
Instance Attribute Summary
Attributes inherited from Definition
#definition
Instance Method Summary
collapse
Methods inherited from Definition
create, #decl, #initialize, #name
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
|
#len ⇒ Object
391
392
393
|
# File 'lib/babeltrace/ctf/events.rb', line 391
def len
@definition.decl.len
end
|
#value ⇒ Object
399
400
401
|
# File 'lib/babeltrace/ctf/events.rb', line 399
def value
len.times.collect { |i| index(i).value }
end
|