VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
stringIds.cpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: Apache-2.0
2
// Copyright 2025-2026 Arnis Lektauers
3
//
4
// Created by Arnis Lektauers on 11.11.2025.
5
//
6
#include "
stringIds.h
"
7
8
namespace
visutwin::canvas
9
{
10
int
StringIds::get
(
const
std::string& name) {
11
if
(
const
auto
it = _map.find(name); it != _map.end()) {
12
return
it->second;
13
}
14
15
const
int
value = _id++;
16
_map[name] = value;
17
return
value;
18
}
19
}
visutwin::canvas::StringIds::get
int get(const std::string &name)
Definition
stringIds.cpp:10
visutwin::canvas
Definition
eventHandler.cpp:9
stringIds.h
core
stringIds.cpp
Generated by
1.16.1