diff --git a/base/builtin/index.html b/base/builtin/index.html index 91d4fd9060..d261c6bdf5 100644 --- a/base/builtin/index.html +++ b/base/builtin/index.html @@ -233,17 +233,28 @@
raw_soa_footer_slice :: proc(array: ^$T/#soa[]$T) -> (footer: ^Raw_SOA_Footer_Slice) {…}+
raw_soa_footer_dynamic_array :: proc(array: ^$T/#soa[dynamic]$T) -> (footer: ^Raw_SOA_Footer_Dynamic_Array) {…}+
make_soa_aligned :: proc($T: typeid/#soa[]T, length: int, alignment: int, allocator := context.allocator, loc := #caller_location) -> (array: T, err: Allocator_Error) #optional_ok {…}+
make_soa_slice :: proc($T: typeid/#soa[]T, length: int, allocator := context.allocator, loc := #caller_location) -> (array: T, err: Allocator_Error) #optional_ok {…}+
make_soa_dynamic_array :: proc($T: typeid/#soa[dynamic]T, allocator := context.allocator, loc := #caller_location) -> (array: T, err: Allocator_Error) #optional_ok {…}+
init_global_temporary_allocator :: proc(size: int, backup_allocator := context.allocator) {…}@@ -1468,6 +1498,12 @@
make_soa_dynamic_array_len :: proc($T: typeid/#soa[dynamic]T, #any_int length: int, allocator := context.allocator, loc := #caller_location) -> (array: T, err: Allocator_Error) #optional_ok {…}+
copy_from_string :: proc "contextless" (dst: $T/[]$E/u8, src: $S/string) -> int {…}@@ -1481,6 +1517,12 @@
make_soa_dynamic_array_len_cap :: proc($T: typeid/#soa[dynamic]T, #any_int length, #any_int capacity: int, allocator := context.allocator, loc := #caller_location) -> (array: T, err: Allocator_Error) #optional_ok {…}+
unordered_remove :: proc(array: ^$T/[dynamic]$T, index: int, loc := #caller_location) {…}@@ -1495,6 +1537,12 @@
resize_soa :: proc(array: ^$T/#soa[dynamic]$T, length: int, loc := #caller_location) -> Allocator_Error {…}+
ordered_remove :: proc(array: ^$T/[dynamic]$T, index: int, loc := #caller_location) {…}@@ -1542,6 +1590,12 @@
reserve_soa :: proc(array: ^$T/#soa[dynamic]$T, capacity: int, loc := #caller_location) -> Allocator_Error {…}+
pop_front :: proc(array: ^$T/[dynamic]$T, loc := #caller_location) -> (res: $T) {…}@@ -1553,6 +1607,12 @@
append_soa_elem :: proc(array: ^$T/#soa[dynamic]$T, arg: $T, loc := #caller_location) -> (n: int, err: Allocator_Error) #optional_ok {…}+
pop_front_safe :: proc "contextless" (array: ^$T/[dynamic]$T) -> (res: $T, ok: bool) {…}@@ -1564,6 +1624,12 @@
append_soa_elems :: proc(array: ^$T/#soa[dynamic]$T, .. args: ..$T, loc := #caller_location) -> (n: int, err: Allocator_Error) #optional_ok {…}+
delete_string :: proc(str: string, allocator := context.allocator, loc := #caller_location) -> Allocator_Error {…}@@ -1636,6 +1702,20 @@
unordered_remove_soa :: proc(array: ^$T/#soa[dynamic]$T, index: int, loc := #caller_location) {…}+
unordered_remove_soa
removed the element at the specified index
. It does so by replacing the current end value
+with the old value, and reducing the length of the dynamic array by 1.
Note: This is an O(1) operation.
+Note: If you the elements to remain in their order, use ordered_remove_soa
.
+Note: If the index is out of bounds, this procedure will panic.
make_slice :: proc($T: typeid/[]T, #any_int len: int, allocator := context.allocator, loc := #caller_location) -> (T, Allocator_Error) #optional_ok {…}@@ -1648,6 +1728,19 @@
ordered_remove_soa :: proc(array: ^$T/#soa[dynamic]$T, index: int, loc := #caller_location) {…}+
ordered_remove_soa
removed the element at the specified index
whilst keeping the order of the other elements.
Note: This is an O(N) operation.
+Note: If you the elements do not have to remain in their order, prefer unordered_remove_soa
.
+Note: If the index is out of bounds, this procedure will panic.
make_dynamic_array :: proc($T: typeid/[dynamic]T, allocator := context.allocator, loc := #caller_location) -> (T, Allocator_Error) #optional_ok {…}@@ -1864,72 +1957,24 @@
raw_soa_footer_slice :: proc(array: ^$T/#soa[]$T) -> (footer: ^Raw_SOA_Footer_Slice) {…}-
raw_soa_footer_dynamic_array :: proc(array: ^$T/#soa[dynamic]$T) -> (footer: ^Raw_SOA_Footer_Dynamic_Array) {…}-
resize_dynamic_array :: proc(array: ^$T/[dynamic]$T, length: int, loc := #caller_location) -> Allocator_Error {…}
make_soa_aligned :: proc($T: typeid/#soa[]T, length: int, alignment: int, allocator := context.allocator, loc := #caller_location) -> (array: T, err: Allocator_Error) #optional_ok {…}-
non_zero_resize_dynamic_array :: proc(array: ^$T/[dynamic]$T, length: int, loc := #caller_location) -> Allocator_Error {…}
make_soa_slice :: proc($T: typeid/#soa[]T, length: int, allocator := context.allocator, loc := #caller_location) -> (array: T, err: Allocator_Error) #optional_ok {…}-
make_soa_dynamic_array :: proc($T: typeid/#soa[dynamic]T, allocator := context.allocator, loc := #caller_location) -> (array: T, err: Allocator_Error) #optional_ok {…}-
make_soa_dynamic_array_len :: proc($T: typeid/#soa[dynamic]T, #any_int length: int, allocator := context.allocator, loc := #caller_location) -> (array: T, err: Allocator_Error) #optional_ok {…}-
map_insert :: proc(m: ^$T/map[$T]$T, key: $T, value: $T, loc := #caller_location) -> (ptr: ^$T) {…}
make_soa_dynamic_array_len_cap :: proc($T: typeid/#soa[dynamic]T, #any_int length, #any_int capacity: int, allocator := context.allocator, loc := #caller_location) -> (array: T, err: Allocator_Error) #optional_ok {…}-
resize_soa :: proc(array: ^$T/#soa[dynamic]$T, length: int, loc := #caller_location) -> Allocator_Error {…}-
map_upsert :: proc(m: ^$T/map[$T]$T, key: $T, value: $T, loc := #caller_location) -> (prev_key: $T, value_ptr: ^$T, found_previous: bool) {…}@@ -1943,24 +1988,6 @@
reserve_soa :: proc(array: ^$T/#soa[dynamic]$T, capacity: int, loc := #caller_location) -> Allocator_Error {…}-
append_soa_elem :: proc(array: ^$T/#soa[dynamic]$T, arg: $T, loc := #caller_location) -> (n: int, err: Allocator_Error) #optional_ok {…}-
append_soa_elems :: proc(array: ^$T/#soa[dynamic]$T, .. args: ..$T, loc := #caller_location) -> (n: int, err: Allocator_Error) #optional_ok {…}-
card :: proc "contextless" (s: $S/bit_set[$T]) -> int {…}@@ -1979,39 +2006,24 @@
unordered_remove_soa :: proc(array: ^$T/#soa[dynamic]$T, index: int, loc := #caller_location) {…}-
unordered_remove_soa
removed the element at the specified index
. It does so by replacing the current end value
-with the old value, and reducing the length of the dynamic array by 1.
Note: This is an O(1) operation.
-Note: If you the elements to remain in their order, use ordered_remove_soa
.
-Note: If the index is out of bounds, this procedure will panic.
unimplemented :: proc(message: string, loc := #caller_location) -> ! {…}
ordered_remove_soa :: proc(array: ^$T/#soa[dynamic]$T, index: int, loc := #caller_location) {…}+
make_soa :: proc{ + make_soa_slice, + make_soa_dynamic_array, + make_soa_dynamic_array_len, + make_soa_dynamic_array_len_cap, +} +
ordered_remove_soa
removed the element at the specified index
whilst keeping the order of the other elements.
Note: This is an O(N) operation.
-Note: If you the elements do not have to remain in their order, prefer unordered_remove_soa
.
-Note: If the index is out of bounds, this procedure will panic.
append_soa :: proc{ + append_soa_elem, + append_soa_elems, +} ++
The append_soa built-in procedure appends elements to the end of an #soa dynamic array
+reserve :: proc{ @@ -2148,6 +2174,25 @@delete +
delete_soa ¶
+++delete_soa :: proc{ + delete_soa_slice, + delete_soa_dynamic_array, +} ++
clear_soa :: proc{ + clear_soa_dynamic_array, +} ++
make_soa :: proc{ - make_soa_slice, - make_soa_dynamic_array, - make_soa_dynamic_array_len, - make_soa_dynamic_array_len_cap, -} --
append_soa :: proc{ - append_soa_elem, - append_soa_elems, -} --
The append_soa built-in procedure appends elements to the end of an #soa dynamic array
-delete_soa :: proc{ - delete_soa_slice, - delete_soa_dynamic_array, -} --
clear_soa :: proc{ - clear_soa_dynamic_array, -} --