Class: AutoC::STD::Complex

Inherits:
Primitive show all
Defined in:
lib/autoc/std.rb

Constant Summary

Constants included from Entity

Entity::ReferenceSet

Instance Attribute Summary

Attributes inherited from Primitive

#matcher

Attributes inherited from Type

#signature

Instance Method Summary collapse

Methods inherited from Primitive

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

Methods included from Entity

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

Methods inherited from Primitive

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

Methods inherited from Type

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

Constructor Details

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

Instance Method Details

#hash_codeObject

TODO use tgmath



124
# File 'lib/autoc/std.rb', line 124

def hash_code = @hash_code ||= -> (target) { "((size_t)(crealf(#{target}))^(size_t)(cimagf(#{target})))" } # TODO use tgmath