Class: CompositeValue

Inherits:
AutoC::STD::Primitive show all
Defined in:
lib/autoc/scaffold/composite_value.rb

Constant Summary

Constants included from AutoC::Entity

AutoC::Entity::ReferenceSet

Instance Attribute Summary

Attributes inherited from AutoC::STD::Primitive

#matcher

Attributes inherited from AutoC::Type

#signature

Instance Method Summary collapse

Methods inherited from AutoC::STD::Primitive

adopt, #const_lvalue, #const_rvalue, #initialize, #lvalue, #rvalue, #to_value

Methods included from AutoC::Entity

#<=>, #complexity, #dependencies, #forward_declarations, #implementation, #interface, #position, #references, #total_dependencies, #total_references

Methods inherited from AutoC::Primitive

#compare, #copy, #custom_create, #default_create, #equal, #hash_code

Methods inherited from AutoC::Type

abstract, #comparable?, #constructible?, #copy, #copyable?, #custom_constructible?, #custom_create, #default_constructible?, #default_create, #destroy, #destructible?, #hashable?, #initialize, #inspect, #to_s, #to_type

Constructor Details

This class inherits a constructor from AutoC::STD::Primitive

Instance Method Details

#orderable?Boolean

Returns:

  • (Boolean)


11
# File 'lib/autoc/scaffold/composite_value.rb', line 11

def orderable? = false

#render_interface(stream) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/autoc/scaffold/composite_value.rb', line 13

def render_interface(stream)
  stream << %{
    typedef struct {
      int a;
      char b;
    } #{self};
  }
end