Class: Babeltrace::CTF::Internal::Definition
- Defined in:
- lib/babeltrace/ctf/events.rb
Overview
< Babeltrace::Definition < FFI::Struct
Instance Method Summary collapse
- #field_name ⇒ Object (also: #name)
- #get_char_array ⇒ Object
- #get_decl ⇒ Object (also: #decl)
- #get_enum_int ⇒ Object
- #get_enum_str ⇒ Object
- #get_float ⇒ Object
- #get_int64 ⇒ Object
- #get_string ⇒ Object
- #get_struct_field_count ⇒ Object (also: #struct_field_count)
- #get_struct_field_index(i) ⇒ Object
- #get_uint64 ⇒ Object
- #get_variant ⇒ Object
Instance Method Details
#field_name ⇒ Object Also known as: name
95 96 97 |
# File 'lib/babeltrace/ctf/events.rb', line 95 def field_name CTF.bt_ctf_field_name(self) end |
#get_char_array ⇒ Object
128 129 130 |
# File 'lib/babeltrace/ctf/events.rb', line 128 def get_char_array CTF.bt_ctf_get_char_array(self) end |
#get_decl ⇒ Object Also known as: decl
100 101 102 103 |
# File 'lib/babeltrace/ctf/events.rb', line 100 def get_decl decl = CTF.bt_ctf_get_decl_from_def(self) CTF::Declaration.create(decl) end |
#get_enum_int ⇒ Object
119 120 121 122 |
# File 'lib/babeltrace/ctf/events.rb', line 119 def get_enum_int d = CTF.bt_ctf_get_enum_int(self) CTF::Definition.create(d) end |
#get_enum_str ⇒ Object
124 125 126 |
# File 'lib/babeltrace/ctf/events.rb', line 124 def get_enum_str CTF.bt_ctf_get_enum_str(self) end |
#get_float ⇒ Object
136 137 138 |
# File 'lib/babeltrace/ctf/events.rb', line 136 def get_float CTF.bt_ctf_get_float(self) end |
#get_int64 ⇒ Object
115 116 117 |
# File 'lib/babeltrace/ctf/events.rb', line 115 def get_int64 CTF.bt_ctf_get_int64(self) end |
#get_string ⇒ Object
132 133 134 |
# File 'lib/babeltrace/ctf/events.rb', line 132 def get_string CTF.bt_ctf_get_string(self) end |
#get_struct_field_count ⇒ Object Also known as: struct_field_count
106 107 108 |
# File 'lib/babeltrace/ctf/events.rb', line 106 def get_struct_field_count CTF.bt_ctf_get_struct_field_count(self) end |
#get_struct_field_index(i) ⇒ Object
145 146 147 148 |
# File 'lib/babeltrace/ctf/events.rb', line 145 def get_struct_field_index(i) d = CTF.bt_ctf_get_struct_field_index(self, i) CTF::Definition.create(d) end |
#get_uint64 ⇒ Object
111 112 113 |
# File 'lib/babeltrace/ctf/events.rb', line 111 def get_uint64 CTF.bt_ctf_get_uint64(self) end |
#get_variant ⇒ Object
140 141 142 143 |
# File 'lib/babeltrace/ctf/events.rb', line 140 def get_variant d = CTF.bt_ctf_get_variant(self) CTF::Definition.create(d) end |