Module: Carbon::Core::Pointer Private

Extended by:
Access, Cast, Math, Memory, Type
Defined in:
lib/carbon/core/pointer.rb,
lib/carbon/core/pointer/cast.rb,
lib/carbon/core/pointer/math.rb,
lib/carbon/core/pointer/type.rb,
lib/carbon/core/pointer/access.rb,
lib/carbon/core/pointer/memory.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Defines the pointer type and functions for the Carbon Core library.

Defined Under Namespace

Modules: Access, Cast, Math, Memory, Type

Constant Summary collapse

PTYPE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

The pointer type name. This is kept here to provide a shortcut to the pointer type.

Returns:

Carbon::Type("Carbon::Pointer<T>")
PTYPEGEN =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

The pointer generic type name. This is kept here to provide a shortcut.

Returns:

PTYPE.generics[0].name

Constants included from Math

Math::COMP_OPERATIONS, Math::MATH_OPERATIONS

Class Method Summary collapse

Methods included from Access

define_access_functions, define_array_get_function, define_array_set_function, define_value_get_function, define_value_set_function

Methods included from Cast

define_cast_function, define_cast_functions

Methods included from Math

define_comp_function, define_comp_pointer_function, define_math_function, define_math_functions, define_null_function, define_space_function, define_space_pointer_function

Methods included from Memory

define_alloc_function, define_free_function, define_memory_functions

Methods included from Type

define_pointer_type

Class Method Details

.define_pointerself

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Defines the pointer type and all of the pointer functions.



39
40
41
42
43
# File 'lib/carbon/core/pointer.rb', line 39

def self.define_pointer
  define_pointer_type
  define_pointer_functions
  self
end

.define_pointer_functionsObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Defines all of the pointer



46
47
48
49
50
51
# File 'lib/carbon/core/pointer.rb', line 46

def self.define_pointer_functions
  define_math_functions
  define_cast_functions
  define_memory_functions
  define_access_functions
end