# miheel/corbox architecture

> Architecture diagram of the GitHub repository miheel/corbox, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/miheel/corbox
- Repository: https://github.com/miheel/corbox

## Overview

CorBox is a header-oriented C++ toolbox, included directly by applications rather than run as a standalone service. The main user workflow is to include a container or utility and use it in C++ code; its broader capabilities include algorithms, math, memory management, smart pointers, and timing. The graph emphasizes those product subsystems and selected implementation dependencies. Unsampled relationships are omitted unless the README or SOURCE INDEX supports them; the index records references, not necessarily runtime calls.

Main entry points: [`include/math/math.hpp`](https://github.com/miheel/corbox/blob/master/include/math/math.hpp) (Math functions), [`include/container/array.hpp`](https://github.com/miheel/corbox/blob/master/include/container/array.hpp) (Dynamic array), [`include/memory/memory.hpp`](https://github.com/miheel/corbox/blob/master/include/memory/memory.hpp) (Memory operations), [`include/container/hash_table.hpp`](https://github.com/miheel/corbox/blob/master/include/container/hash_table.hpp) (Hash table)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_containers["Containers and strings"]
  node_array["Dynamic array<br/>[array.hpp]"]
  node_buffer["Array buffer<br/>[buffer.hpp]"]
  node_linked_list["Linked list<br/>[linked_list.hpp]"]
  node_string["String<br/>[string.hpp]"]
  node_hash_table["Hash table<br/>[hash_table.hpp]"]
end

subgraph group_algorithms["Algorithms and utilities"]
  node_sort["Sorting algorithms<br/>[sort.hpp]"]
  node_util_algorithms["Utility algorithms<br/>[algorithms.hpp]"]
  node_hash["Hash utilities<br/>[hash.hpp]"]
  node_utility["General utilities<br/>[utility.hpp]"]
end

subgraph group_math["Math"]
  node_matrix["Matrix operations<br/>[matrix.hpp]"]
  node_linear_algebra["Linear algebra<br/>[linalgebra.hpp]"]
  node_math_functions["Math functions<br/>[math.hpp]"]
end

subgraph group_memory["Memory and ownership"]
  node_memory["Memory operations<br/>[memory.hpp]"]
  node_allocator["Allocator<br/>[allocator.hpp]"]
  node_unique_ptr["Unique pointer<br/>[uniquePtr.hpp]"]
  node_shared_ptr["Shared pointer<br/>[sharedPtr.hpp]"]
end

node_developer(("C++ application developer"))
node_timer["Timer<br/>[timer.hpp]"]

node_developer -->|"includes and uses"| node_array
node_array -->|"uses buffer"| node_buffer
node_hash_table -->|"uses array"| node_array
node_hash_table -->|"uses hashing"| node_hash
node_sort -->|"uses utilities"| node_utility
node_sort -->|"uses iterators"| node_util_algorithms
node_linear_algebra -->|"uses matrices"| node_matrix
node_math_functions -->|"uses arrays"| node_array
node_math_functions -->|"uses strings"| node_string
node_math_functions -->|"uses algorithms"| node_util_algorithms
node_matrix -->|"references math functions"| node_math_functions
node_unique_ptr -->|"allocates and frees"| node_memory
node_unique_ptr -->|"uses deleter"| node_allocator
node_allocator -->|"allocates storage"| node_memory
node_shared_ptr -->|"uses memory operations"| node_memory

click node_array "https://github.com/miheel/corbox/blob/master/include/container/array.hpp"
click node_buffer "https://github.com/miheel/corbox/blob/master/include/container/buffer.hpp"
click node_linked_list "https://github.com/miheel/corbox/blob/master/include/container/linked_list.hpp"
click node_string "https://github.com/miheel/corbox/blob/master/include/container/string.hpp"
click node_hash_table "https://github.com/miheel/corbox/blob/master/include/container/hash_table.hpp"
click node_sort "https://github.com/miheel/corbox/blob/master/include/algorithms/sort.hpp"
click node_util_algorithms "https://github.com/miheel/corbox/blob/master/include/Util/algorithms.hpp"
click node_hash "https://github.com/miheel/corbox/blob/master/include/Util/hash.hpp"
click node_utility "https://github.com/miheel/corbox/blob/master/include/Util/utility.hpp"
click node_matrix "https://github.com/miheel/corbox/blob/master/include/math/matrix.hpp"
click node_linear_algebra "https://github.com/miheel/corbox/blob/master/include/math/linalgebra.hpp"
click node_math_functions "https://github.com/miheel/corbox/blob/master/include/math/math.hpp"
click node_memory "https://github.com/miheel/corbox/blob/master/include/memory/memory.hpp"
click node_allocator "https://github.com/miheel/corbox/blob/master/include/memory/allocator.hpp"
click node_unique_ptr "https://github.com/miheel/corbox/blob/master/include/smart_ptr/uniquePtr.hpp"
click node_shared_ptr "https://github.com/miheel/corbox/blob/master/include/smart_ptr/sharedPtr.hpp"
click node_timer "https://github.com/miheel/corbox/blob/master/include/time/timer.hpp"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_array,node_buffer,node_linked_list,node_string,node_hash_table toneBlue
class node_sort,node_util_algorithms,node_hash,node_utility toneAmber
class node_matrix,node_linear_algebra,node_math_functions toneMint
class node_memory,node_allocator,node_unique_ptr,node_shared_ptr toneRose
class node_developer toneIndigo
class node_timer toneTeal
```

## Components

### Containers and strings

- [Dynamic array](https://github.com/miheel/corbox/blob/master/include/container/array.hpp): `include/container/array.hpp`
- [Array buffer](https://github.com/miheel/corbox/blob/master/include/container/buffer.hpp): `include/container/buffer.hpp`
- [Linked list](https://github.com/miheel/corbox/blob/master/include/container/linked_list.hpp): `include/container/linked_list.hpp`
- [String](https://github.com/miheel/corbox/blob/master/include/container/string.hpp): `include/container/string.hpp`
- [Hash table](https://github.com/miheel/corbox/blob/master/include/container/hash_table.hpp): `include/container/hash_table.hpp`

### Algorithms and utilities

- [Sorting algorithms](https://github.com/miheel/corbox/blob/master/include/algorithms/sort.hpp): `include/algorithms/sort.hpp`
- [Utility algorithms](https://github.com/miheel/corbox/blob/master/include/Util/algorithms.hpp): `include/Util/algorithms.hpp`
- [Hash utilities](https://github.com/miheel/corbox/blob/master/include/Util/hash.hpp): `include/Util/hash.hpp`
- [General utilities](https://github.com/miheel/corbox/blob/master/include/Util/utility.hpp): `include/Util/utility.hpp`

### Math

- [Matrix operations](https://github.com/miheel/corbox/blob/master/include/math/matrix.hpp): `include/math/matrix.hpp`
- [Linear algebra](https://github.com/miheel/corbox/blob/master/include/math/linalgebra.hpp): `include/math/linalgebra.hpp`
- [Math functions](https://github.com/miheel/corbox/blob/master/include/math/math.hpp): `include/math/math.hpp`

### Memory and ownership

- [Memory operations](https://github.com/miheel/corbox/blob/master/include/memory/memory.hpp): `include/memory/memory.hpp`
- [Allocator](https://github.com/miheel/corbox/blob/master/include/memory/allocator.hpp): `include/memory/allocator.hpp`
- [Unique pointer](https://github.com/miheel/corbox/blob/master/include/smart_ptr/uniquePtr.hpp): `include/smart_ptr/uniquePtr.hpp`
- [Shared pointer](https://github.com/miheel/corbox/blob/master/include/smart_ptr/sharedPtr.hpp): `include/smart_ptr/sharedPtr.hpp`

### Other components

- **C++ application developer**
- [Timer](https://github.com/miheel/corbox/blob/master/include/time/timer.hpp): `include/time/timer.hpp`

## Connections

- C++ application developer → Dynamic array: includes and uses (evidence: `README.md`)
- Dynamic array → Array buffer: uses buffer (evidence: `include/container/array.hpp`)
- Hash table → Dynamic array: uses array (evidence: `include/container/hash_table.hpp`)
- Hash table → Hash utilities: uses hashing (evidence: `include/container/hash_table.hpp`)
- Sorting algorithms → General utilities: uses utilities (evidence: `include/algorithms/sort.hpp`)
- Sorting algorithms → Utility algorithms: uses iterators (evidence: `include/algorithms/sort.hpp`)
- Linear algebra → Matrix operations: uses matrices (evidence: `include/math/linalgebra.hpp`)
- Math functions → Dynamic array: uses arrays (evidence: `include/math/math.hpp`)
- Math functions → String: uses strings (evidence: `include/math/math.hpp`)
- Math functions → Utility algorithms: uses algorithms (evidence: `include/math/math.hpp`)
- Matrix operations → Math functions: references math functions (evidence: `include/math/matrix.hpp`)
- Unique pointer → Memory operations: allocates and frees (evidence: `include/smart_ptr/uniquePtr.hpp`)
- Unique pointer → Allocator: uses deleter (evidence: `include/smart_ptr/uniquePtr.hpp`)
- Allocator → Memory operations: allocates storage (evidence: `include/memory/allocator.hpp`)
- Shared pointer → Memory operations: uses memory operations (evidence: `include/smart_ptr/sharedPtr.hpp`)
