Class: Rod::PolymorphicJoinElement

Inherits:
JoinElement show all
Defined in:
lib/rod/join_element.rb

Class Method Summary collapse

Methods inherited from AbstractModel

build_structure, cache, compatible?, difference, fields, indexed_properties, metadata, path_for_data, properties

Class Method Details

.layoutObject



39
40
41
42
43
# File 'lib/rod/join_element.rb', line 39

def self.layout
  '  printf("  offset: %lu, class: %lu\n",' +
    '(unsigned long)sizeof(unsigned long), ' +
    '(unsigned long)sizeof(unsigned long));' + "\n"
end

.struct_nameObject



35
36
37
# File 'lib/rod/join_element.rb', line 35

def self.struct_name
  "_polymorphic_join_element"
end

.typedef_structObject



25
26
27
28
29
30
31
32
33
# File 'lib/rod/join_element.rb', line 25

def self.typedef_struct
  str = <<-END
  |typedef struct {
  |  unsigned long offset;
  |  unsigned long class;
  |} _polymorphic_join_element;
  END
  str.margin
end