Class: Hwloc::ObjMemory

Inherits:
Struct
  • Object
show all
Defined in:
lib/hwloc/Obj.rb

Instance Attribute Summary

Attributes inherited from Struct

#topology

Instance Method Summary collapse

Methods inherited from Struct

#[], #method_missing

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Hwloc::Struct

Instance Method Details

#page_typesObject



206
207
208
209
210
211
212
213
# File 'lib/hwloc/Obj.rb', line 206

def page_types
  page_types_ptr = self[:page_types]
  return page_types_len.times.collect { |i|
    pt = ObjMemoryPageType::new(page_types_ptr+i*ObjMemoryPageType.size)
    pt.instance_variable_set(:@topology, @topology)
    pt
  }
end