polar-objc 5.44
An Objective-C runtime library
Loading...
Searching...
No Matches
polar-hash-table-node-intptr-key.c
1/* Internal API: basic hash table node with integer-derived sort key for polar-objc.
2 Copyright (C) 2022-2025 Michael Malicoat <[email protected]>
3
4 This file is part of polar-objc.
5
6 polar-objc is free software; you can redistribute it and/or modify it under the terms of the GNU General Public
7 License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
8
9 polar-objc is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
10 warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
11 details.
12
13 You should have received a copy of the GNU General Public License along with this program; see the file LICENSE. If
14 not, see <http://www.gnu.org/licenses/>.
15*/
16
17// polar_hash_table_node_intptr_key ************************************************************************************
18// Private =============================================================================================================
19
20// This variable is initialized in polar_hash_table_node_intptr_key_get_type()
21static polar_hash_table_node_intptr_key_class class_polar_hash_table_node_intptr_key;
22
23// This variable is initialized in _polar_hash_table_node_intptr_key_class_init()
24//static polar_runtime_object_class *superclass_polar_hash_table_node_intptr_key = NULL;
25
26// ---------------------------------------------------------------------------------------------------------------------
27
28/*POLAR_FUNCTION_INTERNAL void
29_polar_hash_table_node_intptr_key_class_init( polar_hash_table_node_intptr_key_class *self )
30{
31 // Acquire our superclass
32 //superclass_polar_hash_table_node_intptr_key = POLAR_RUNTIME_OBJECT_CLASS(self)->class_superclass;
33
34 // Establish our virtual methods
35}*/
36
37static struct polar_internal_type_info pti_polar_hash_table_node_intptr_key =
38{
39 .name_type = "polar_hash_table_node_intptr_key",
40 .size_type_instance = sizeof(polar_hash_table_node_intptr_key),
41 .size_type_class = sizeof(polar_hash_table_node_intptr_key_class),
42 .type_class_init = NULL //(polar_func_runtime_object_class_lifecycle)_polar_hash_table_node_intptr_key_class_init
43};
44
45// Public ==============================================================================================================
46
47POLAR_FUNCTION_INTERNAL OBJC_FUNCTION_CONSTANT polar_internal_type
48polar_hash_table_node_intptr_key_get_type( void )
49{
50 static polar_internal_type pt_polar_hash_table_node_intptr_key = POLAR_INTERNAL_TYPE_INVALID;
51
52 if( pt_polar_hash_table_node_intptr_key != POLAR_INTERNAL_TYPE_INVALID )
53 return pt_polar_hash_table_node_intptr_key;
54
55 pt_polar_hash_table_node_intptr_key = polar_internal_type_init( POLAR_TYPE_HASH_TABLE_NODE,
56 &class_polar_hash_table_node_intptr_key,
57 &pti_polar_hash_table_node_intptr_key );
58
59 return pt_polar_hash_table_node_intptr_key;
60}
61
Definition polar-hash-table-node-intptr-key.h:30
Definition polar-hash-table-node-intptr-key.h:25
Definition polar-internal-type.h:34