Class: YTLJit::AsmType::TypeCommon

Inherits:
Object
  • Object
show all
Defined in:
lib/ytljit/type.rb

Direct Known Subclasses

Array, PointedData, Pointer, Scalar, Struct, StructMember

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTypeCommon

Returns a new instance of TypeCommon.



5
6
7
8
9
# File 'lib/ytljit/type.rb', line 5

def initialize
  @type = nil
  @size = nil
  @alignment = nil
end

Instance Attribute Details

#alignmentObject (readonly)

Returns the value of attribute alignment.



13
14
15
# File 'lib/ytljit/type.rb', line 13

def alignment
  @alignment
end

#sizeObject (readonly)

Returns the value of attribute size.



12
13
14
# File 'lib/ytljit/type.rb', line 12

def size
  @size
end

#typeObject (readonly)

Returns the value of attribute type.



11
12
13
# File 'lib/ytljit/type.rb', line 11

def type
  @type
end