Class: Babeltrace::CTF::Definition
- Inherits:
-
Object
- Object
- Babeltrace::CTF::Definition
- Defined in:
- lib/babeltrace/ctf/events.rb
Direct Known Subclasses
ArrayDef, ArrayTextDef, EnumDef, FloatDef, IntegerDef, SequenceDef, SequenceTextDef, StringDef, StructDef, UntaggedVariantDef, VariantDef
Instance Attribute Summary collapse
-
#definition ⇒ Object
readonly
Returns the value of attribute definition.
Class Method Summary collapse
Instance Method Summary collapse
- #decl ⇒ Object
-
#initialize(definition) ⇒ Definition
constructor
A new instance of Definition.
- #name ⇒ Object
Constructor Details
#initialize(definition) ⇒ Definition
Returns a new instance of Definition.
305 306 307 |
# File 'lib/babeltrace/ctf/events.rb', line 305 def initialize(definition) @definition = definition end |
Instance Attribute Details
#definition ⇒ Object (readonly)
Returns the value of attribute definition.
298 299 300 |
# File 'lib/babeltrace/ctf/events.rb', line 298 def definition @definition end |
Class Method Details
.create(d) ⇒ Object
300 301 302 303 |
# File 'lib/babeltrace/ctf/events.rb', line 300 def self.create(d) return nil if d.pointer.null? d.decl.def_class.new(d) end |
Instance Method Details
#decl ⇒ Object
313 314 315 |
# File 'lib/babeltrace/ctf/events.rb', line 313 def decl @definition.decl end |
#name ⇒ Object
309 310 311 |
# File 'lib/babeltrace/ctf/events.rb', line 309 def name @definition.name end |