Class: Babeltrace::CTF::Internal::Definition

Defined in:
lib/babeltrace/ctf/events.rb

Overview

< FFI::Struct

Instance Method Summary collapse

Instance Method Details

#field_nameObject 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_arrayObject



128
129
130
# File 'lib/babeltrace/ctf/events.rb', line 128

def get_char_array
  CTF.bt_ctf_get_char_array(self)
end

#get_declObject 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_intObject



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_strObject



124
125
126
# File 'lib/babeltrace/ctf/events.rb', line 124

def get_enum_str
  CTF.bt_ctf_get_enum_str(self)
end

#get_floatObject



136
137
138
# File 'lib/babeltrace/ctf/events.rb', line 136

def get_float
  CTF.bt_ctf_get_float(self)
end

#get_int64Object



115
116
117
# File 'lib/babeltrace/ctf/events.rb', line 115

def get_int64
  CTF.bt_ctf_get_int64(self)
end

#get_stringObject



132
133
134
# File 'lib/babeltrace/ctf/events.rb', line 132

def get_string
  CTF.bt_ctf_get_string(self)
end

#get_struct_field_countObject 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_uint64Object



111
112
113
# File 'lib/babeltrace/ctf/events.rb', line 111

def get_uint64
  CTF.bt_ctf_get_uint64(self)
end

#get_variantObject



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