Class: Babeltrace2::BTObject
- Inherits:
-
Object
- Object
- Babeltrace2::BTObject
- Defined in:
- lib/babeltrace2/types.rb
Direct Known Subclasses
BTClockSnapshot, BTError, Babeltrace2::BTError::Cause, BTEvent, BTField, Babeltrace2::BTFieldClass::Enumeration::Mapping, Babeltrace2::BTFieldClass::Structure::Member, Babeltrace2::BTFieldClass::Variant::Option, Babeltrace2::BTFieldPath::Item, BTIntegerRange, Babeltrace2::BTSelfComponent::Filter::Configuration, Babeltrace2::BTSelfComponent::Sink::Configuration, Babeltrace2::BTSelfComponent::Source::Configuration, Babeltrace2::BTSelfMessageIterator::Configuration, BTSharedObject
Instance Attribute Summary collapse
-
#handle ⇒ Object
readonly
Returns the value of attribute handle.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(handle) ⇒ BTObject
constructor
A new instance of BTObject.
- #to_ptr ⇒ Object
Constructor Details
#initialize(handle) ⇒ BTObject
Returns a new instance of BTObject.
564 565 566 567 |
# File 'lib/babeltrace2/types.rb', line 564 def initialize(handle) raise "Invalid handle" if !handle @handle = handle end |
Instance Attribute Details
#handle ⇒ Object (readonly)
Returns the value of attribute handle.
562 563 564 |
# File 'lib/babeltrace2/types.rb', line 562 def handle @handle end |
Instance Method Details
#==(other) ⇒ Object
573 574 575 |
# File 'lib/babeltrace2/types.rb', line 573 def ==(other) @handle == other.handle end |
#to_ptr ⇒ Object
569 570 571 |
# File 'lib/babeltrace2/types.rb', line 569 def to_ptr @handle end |