Class: Hwloc::NumanodeAttr
- Defined in:
- lib/hwloc/Obj.rb
Instance Attribute Summary
Attributes inherited from Struct
Instance Method Summary collapse
Methods inherited from Struct
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Hwloc::Struct
Instance Method Details
#page_types ⇒ Object
226 227 228 229 230 231 232 233 |
# File 'lib/hwloc/Obj.rb', line 226 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 |