Class: AutoC::Set

Inherits:
Collection show all
Defined in:
lib/autoc/set.rb

Direct Known Subclasses

HashSet

Constant Summary

Constants inherited from Composite

Composite::DEFINITIONS, Composite::PRIVATE

Constants included from Entity

Entity::ReferenceSet

Constants included from STD

AutoC::STD::ASSERT_H, AutoC::STD::BOOL, AutoC::STD::CHAR, AutoC::STD::COMPLEX, AutoC::STD::COMPLEX_H, AutoC::STD::DOUBLE, AutoC::STD::DOUBLE_COMPLEX, AutoC::STD::DOUBLE_T, AutoC::STD::FLOAT, AutoC::STD::FLOAT_COMPLEX, AutoC::STD::FLOAT_T, AutoC::STD::INT, AutoC::STD::INTMAX_T, AutoC::STD::INTPTR_T, AutoC::STD::INTTYPES_H, AutoC::STD::LONG, AutoC::STD::LONG_DOUBLE, AutoC::STD::LONG_DOUBLE_COMPLEX, AutoC::STD::LONG_LONG, AutoC::STD::MALLOC_H, AutoC::STD::MATH_H, AutoC::STD::PTRDIFF_T, AutoC::STD::SHORT, AutoC::STD::SIGNED_CHAR, AutoC::STD::SIZE_T, AutoC::STD::STDBOOL_H, AutoC::STD::STDDEF_H, AutoC::STD::STDLIB_H, AutoC::STD::STRING_H, AutoC::STD::UINTMAX_T, AutoC::STD::UINTPTR_T, AutoC::STD::UNSIGNED, AutoC::STD::UNSIGNED_CHAR, AutoC::STD::UNSIGNED_LONG, AutoC::STD::UNSIGNED_LONG_LONG, AutoC::STD::UNSIGNED_SHORT, AutoC::STD::WCHAR_T

Instance Attribute Summary

Attributes inherited from Collection

#element, #range

Attributes inherited from Composite

#_master, #visibility

Attributes inherited from Type

#signature

Instance Method Summary collapse

Methods inherited from Collection

#comparable?, #copyable?, #destructible?, #hashable?, new, #type_tag

Methods inherited from Composite

allocator, allocator=, #const_lvalue, #const_rvalue, decorator, decorator=, #defgroup, #hasher, hasher, hasher=, #identifier, #ingroup, #inspect, #internal?, #lvalue, #memory, new, #prefix, #private?, #public?, #respond_to_missing?, #rvalue, #to_value, #type_tag

Methods included from Entity

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

Methods inherited from Type

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

Constructor Details

#initialize(*args, set_operations: true, **kws) ⇒ Set

Returns a new instance of Set.



14
15
16
17
# File 'lib/autoc/set.rb', line 14

def initialize(*args, set_operations: true, **kws)
  super(*args, **kws)
  @set_operations = set_operations # Instruct to emit standard set operations (conjunction, disjunction etc.)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class AutoC::Composite

Instance Method Details

#orderable?Boolean

No idea how to compute the ordering of this container

Returns:

  • (Boolean)


12
# File 'lib/autoc/set.rb', line 12

def orderable? = false # No idea how to compute the ordering of this container