summaryrefslogtreecommitdiff
path: root/asl/handle_pool/BUILD.bazel
blob: cb3c44dfcc3e798882c3bb1b5f17543d00ab028e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Copyright 2025 Steven Le Rouzic
#
# SPDX-License-Identifier: BSD-3-Clause

package(
    default_applicable_licenses = ["//:license"],
)

cc_library(
    name = "index_pool",
    hdrs = [
        "index_pool.hpp",
    ],
    deps = [
        "//asl/memory",
        "//asl/memory:allocator",
        "//asl/base",
        "//asl/containers:chunked_buffer",
        "//asl/types:option",
    ],
    visibility = ["//visibility:public"],
)

cc_library(
    name = "dense_handle_pool",
    hdrs = [
        "dense_handle_pool.hpp",
    ],
    deps = [
        ":index_pool",
    ],
    visibility = ["//visibility:public"],
)

cc_library(
    name = "sparse_handle_pool",
    hdrs = [
        "sparse_handle_pool.hpp",
    ],
    deps = [
        ":index_pool",
    ],
    visibility = ["//visibility:public"],
)

cc_test(
    name = "index_pool_tests",
    srcs = [
        "index_pool_tests.cpp",
    ],
    deps = [
        ":index_pool",
        "//asl/hashing",
        "//asl/tests:utils",
        "//asl/testing",
    ],
)

cc_test(
    name = "dense_handle_pool_tests",
    srcs = [
        "dense_handle_pool_tests.cpp",
    ],
    deps = [
        ":dense_handle_pool",
        "//asl/tests:utils",
        "//asl/testing",
    ],
)

cc_test(
    name = "sparse_handle_pool_tests",
    srcs = [
        "sparse_handle_pool_tests.cpp",
    ],
    deps = [
        ":sparse_handle_pool",
        "//asl/tests:utils",
        "//asl/testing",
    ],
)