Class: Typelib::NumericType

Inherits:
Object
  • Object
show all
Defined in:
lib/orogen/gen/typekit.rb,
lib/orogen/typenames.rb

Class Method Summary collapse

Class Method Details

.contains_int64?Boolean

Returns:

  • (Boolean)


125
126
127
# File 'lib/orogen/gen/typekit.rb', line 125

def self.contains_int64?
    integer? && size == 8
end

.cxx_nameObject



92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# File 'lib/orogen/typenames.rb', line 92

def self.cxx_name
    if integer?
        if name == "/bool"
            "bool"
        elsif name == "/char"
            "char"
        elsif name == "/unsigned char"
            "unsigned char"
        else
            "boost::#{'u' if unsigned?}int#{size * 8}_t"
        end
    else
        basename
    end
end

.inlines_code?Boolean

Returns:

  • (Boolean)


129
# File 'lib/orogen/gen/typekit.rb', line 129

def self.inlines_code?; superclass.eql?(NumericType) end