Class: IDL::Type
- Inherits:
-
Object
show all
- Defined in:
- lib/ridl/type.rb
Direct Known Subclasses
Any, Array, Boolean, Char, Const, Fixed, Float, Integer, Native, NodeType, Object, Sequence, String, ValueBase, Void, WChar, WString
Defined Under Namespace
Classes: Any, Array, Boolean, Char, Component, Const, Double, Enum, Eventtype, Exception, Fixed, Float, Home, Integer, Interface, LongDouble, Native, NodeType, Object, Porttype, ScopedName, Sequence, String, Struct, TemplateModule, UndefinedType, Union, ValueBase, Valuebox, Valuetype, Void, WChar, WString
Constant Summary
collapse
- Octet =
Integer.newclass(0..0xFF, 8)
- UShort =
Integer.newclass(0..0xFFFF, 16)
- ULong =
Integer.newclass(0..0xFFFFFFFF, 32)
- ULongLong =
Integer.newclass(0..0xFFFFFFFFFFFFFFFF, 64)
- Short =
Integer.newclass(-0x8000...0x8000, 16)
- Long =
Integer.newclass(-0x80000000...0x80000000, 32)
- LongLong =
Integer.newclass(-0x8000000000000000...0x8000000000000000, 64)
Instance Method Summary
collapse
Instance Method Details
#instantiate(_context) ⇒ Object
46
47
48
|
# File 'lib/ridl/type.rb', line 46
def instantiate(_context)
self
end
|
#is_anonymous? ⇒ Boolean
33
34
35
|
# File 'lib/ridl/type.rb', line 33
def is_anonymous?
false
end
|
#is_complete? ⇒ Boolean
27
28
29
|
# File 'lib/ridl/type.rb', line 27
def is_complete?
true
end
|
#is_local?(recurstk = nil) ⇒ Boolean
30
31
32
|
# File 'lib/ridl/type.rb', line 30
def is_local?(recurstk = nil)
false
end
|
#is_node?(node_class) ⇒ Boolean
36
37
38
|
# File 'lib/ridl/type.rb', line 36
def is_node?(node_class)
false
end
|
#is_template? ⇒ Boolean
42
43
44
|
# File 'lib/ridl/type.rb', line 42
def is_template?
false
end
|
#narrow(obj) ⇒ Object
21
22
23
|
# File 'lib/ridl/type.rb', line 21
def narrow(obj)
obj
end
|
#resolved_node ⇒ Object
39
40
41
|
# File 'lib/ridl/type.rb', line 39
def resolved_node
nil
end
|
#resolved_type ⇒ Object
24
25
26
|
# File 'lib/ridl/type.rb', line 24
def resolved_type
self
end
|
#typeerror(val) ⇒ Object
18
19
20
|
# File 'lib/ridl/type.rb', line 18
def typeerror(val)
raise RuntimeError, "#{val.inspect} cannot narrow to #{self.typename}"
end
|
15
16
17
|
# File 'lib/ridl/type.rb', line 15
def typename
self.class.name
end
|