ALib C++ Framework
by
Library Version: 2605 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
strings_monomem.hpp
Go to the documentation of this file.
1//==================================================================================================
2/// \file
3/// This header-file is part of module \alib_monomem of the \aliblong.
4///
5/// Copyright 2013-2026 A-Worx GmbH, Germany.
6/// Published under #"mainpage_license".
7//==================================================================================================
8
9//==================================================================================================
10//==== AString versions using Mono- and PoolAllocator
11//==================================================================================================
12#if !DOXYGEN
13
14#define ALIB_STRINGS_TASTRING_INSTANTIATION
15
16// AStringMA
17#define ASTR_TALLOC_SPEC MonoAllocator
18#define ASTR_TCHAR_SPEC ALIB_CHAR_TYPE_ID_W
19#include "alib/strings/detail/tastring_ca_decl.hpp.inl"
20
21#define ASTR_TALLOC_SPEC MonoAllocator
22#define ASTR_TCHAR_SPEC ALIB_CHAR_TYPE_ID_N
23#include "alib/strings/detail/tastring_ca_decl.hpp.inl"
24
25// AStringMA
26#define ASTR_TALLOC_SPEC PoolAllocator
27#define ASTR_TCHAR_SPEC ALIB_CHAR_TYPE_ID_W
28#include "alib/strings/detail/tastring_ca_decl.hpp.inl"
29
30#define ASTR_TALLOC_SPEC PoolAllocator
31#define ASTR_TCHAR_SPEC ALIB_CHAR_TYPE_ID_N
32#include "alib/strings/detail/tastring_ca_decl.hpp.inl"
33
34#endif
35
36ALIB_EXPORT namespace alib {
37
38/// Type alias in namespace #"%alib".
40
41/// Type alias in namespace #"%alib".
43
44/// Type alias in namespace #"%alib".
46
47/// Type alias in namespace #"%alib".
49
50/// Type alias in namespace #"%alib".
52
53/// Type alias in namespace #"%alib".
55
56/// Type alias in namespace #"%alib".
58
59/// Type alias in namespace #"%alib".
61
62/// Type alias in namespace #"%alib".
64
65/// Type alias in namespace #"%alib".
67
68/// Type alias in namespace #"%alib".
70
71/// Type alias in namespace #"%alib".
73
74/// Type alias in namespace #"%alib".
75template<integer TCapacity>
77
78/// Type alias in namespace #"%alib".
79template<integer TCapacity>
80using NLocalStringMA = strings::TLocalString <nchar , TCapacity, MonoAllocator>;
81
82/// Type alias in namespace #"%alib".
83template<integer TCapacity>
84using WLocalStringMA = strings::TLocalString <wchar , TCapacity, MonoAllocator>;
85
86/// Type alias name for #"TLocalString;TLocalString<character,8,MonoAllocator>".
88
89/// Type alias name for #"TLocalString;TLocalString<character,16,MonoAllocator>".
91
92/// Type alias name for #"TLocalString;TLocalString<character,32,MonoAllocator>".
94
95/// Type alias name for #"TLocalString;TLocalString<character,64,MonoAllocator>".
97
98/// Type alias name for #"TLocalString;TLocalString<character,128,MonoAllocator>".
100
101/// Type alias name for #"TLocalString;TLocalString<character,256,MonoAllocator>".
103
104/// Type alias name for #"TLocalString;TLocalString<character,512,MonoAllocator>".
106
107/// Type alias name for #"TLocalString;TLocalString<character,1024,MonoAllocator>".
109
110/// Type alias name for #"TLocalString;TLocalString<character,2048,MonoAllocator>".
112
113/// Type alias name for #"TLocalString;TLocalString<character,4096,MonoAllocator>".
115
116/// Type alias in namespace #"%alib".
117template<integer TCapacity>
119
120/// Type alias in namespace #"%alib".
121template<integer TCapacity>
122using NLocalStringPA = strings::TLocalString <nchar , TCapacity, PoolAllocator>;
123
124/// Type alias in namespace #"%alib".
125template<integer TCapacity>
126using WLocalStringPA = strings::TLocalString <wchar , TCapacity, PoolAllocator>;
127
128/// Type alias name for #"TLocalString;TLocalString<character,8,PoolAllocator>".
130
131/// Type alias name for #"TLocalString;TLocalString<character,16,PoolAllocator>".
133
134/// Type alias name for #"TLocalString;TLocalString<character,32,PoolAllocator>".
136
137/// Type alias name for #"TLocalString;TLocalString<character,64,PoolAllocator>".
139
140/// Type alias name for #"TLocalString;TLocalString<character,128,PoolAllocator>".
142
143/// Type alias name for #"TLocalString;TLocalString<character,256,PoolAllocator>".
145
146/// Type alias name for #"TLocalString;TLocalString<character,512,PoolAllocator>".
148
149/// Type alias name for #"TLocalString;TLocalString<character,1024,PoolAllocator>".
151
152/// Type alias name for #"TLocalString;TLocalString<character,2048,PoolAllocator>".
154
155/// Type alias name for #"TLocalString;TLocalString<character,4096,PoolAllocator>".
157
158} // namespace [alib]
159
160//==================================================================================================
161//==== Debug-features in namespace alib::monomem
162//==================================================================================================
163#if ALIB_DEBUG
164ALIB_EXPORT namespace alib::monomem {
165//==================================================================================================
166/// Provides allocation statistics for manual performance optimization.
167///
168/// \par Availability
169/// This method is included only in debug-compilations and when module \alib_strings is
170/// included in the \alibbuild.<br>
171/// In case the configuration macro #"ALIB_DEBUG_MEMORY" is set, additional information
172/// retrieved with #"TMonoAllocator::DbgGetStatistics;*" is included in the
173/// generated string.
174///
175/// @param ma The allocator to get formatted statistics for.
176/// @return Some textual information on the allocation statistics.
177//==================================================================================================
178template<typename TAllocator>
180
181//################################ Template instantiation declaration ##############################
182#if !DOXYGEN
184#endif
185
186} // namespace [alib::monomem]
187#endif // ALIB_DEBUG
#define ALIB_DLL
#define ALIB_EXPORT
NAString DbgDumpStatistics(monomem::TMonoAllocator< TAllocator > &ma)
Definition alox.cpp:14
strings::TAString< character, MonoAllocator > AStringMA
Type alias in namespace #"%alib".
strings::TAString< wchar, MonoAllocator > WAStringMA
Type alias in namespace #"%alib".
strings::TLocalString< nchar, TCapacity, MonoAllocator > NLocalStringMA
Type alias in namespace #"%alib".
strings::TStringLengthResetter< nchar, MonoAllocator > NStringMALengthResetter
Type alias in namespace #"%alib".
strings::TAString< character, PoolAllocator > AStringPA
Type alias in namespace #"%alib".
strings::TLocalString< nchar, TCapacity, PoolAllocator > NLocalStringPA
Type alias in namespace #"%alib".
strings::TAString< wchar, PoolAllocator > WAStringPA
Type alias in namespace #"%alib".
LocalStringMA< 4096 > StringMA4K
Type alias name for #"TLocalString;TLocalString<character,4096,MonoAllocator>".
strings::TLocalString< character, TCapacity, MonoAllocator > LocalStringMA
Type alias in namespace #"%alib".
LocalStringPA< 64 > StringPA64
Type alias name for #"TLocalString;TLocalString<character,64,PoolAllocator>".
strings::TLocalString< character, TCapacity, PoolAllocator > LocalStringPA
Type alias in namespace #"%alib".
strings::TAString< nchar, lang::HeapAllocator > NAString
Type alias in namespace #"%alib".
LocalStringMA< 1024 > StringMA1K
Type alias name for #"TLocalString;TLocalString<character,1024,MonoAllocator>".
LocalStringMA< 64 > StringMA64
Type alias name for #"TLocalString;TLocalString<character,64,MonoAllocator>".
LocalStringMA< 16 > StringMA16
Type alias name for #"TLocalString;TLocalString<character,16,MonoAllocator>".
LocalStringPA< 16 > StringPA16
Type alias name for #"TLocalString;TLocalString<character,16,PoolAllocator>".
LocalStringPA< 1024 > StringPA1K
Type alias name for #"TLocalString;TLocalString<character,1024,PoolAllocator>".
strings::TStringLengthResetter< nchar, PoolAllocator > NStringPALengthResetter
Type alias in namespace #"%alib".
LocalStringMA< 256 > StringMA256
Type alias name for #"TLocalString;TLocalString<character,256,MonoAllocator>".
LocalStringMA< 128 > StringMA128
Type alias name for #"TLocalString;TLocalString<character,128,MonoAllocator>".
LocalStringPA< 32 > StringPA32
Type alias name for #"TLocalString;TLocalString<character,32,PoolAllocator>".
strings::TStringLengthResetter< wchar, MonoAllocator > WStringMALengthResetter
Type alias in namespace #"%alib".
strings::TAString< nchar, MonoAllocator > NAStringMA
Type alias in namespace #"%alib".
LocalStringPA< 256 > StringPA256
Type alias name for #"TLocalString;TLocalString<character,256,PoolAllocator>".
strings::TLocalString< wchar, TCapacity, PoolAllocator > WLocalStringPA
Type alias in namespace #"%alib".
LocalStringPA< 2048 > StringPA2K
Type alias name for #"TLocalString;TLocalString<character,2048,PoolAllocator>".
strings::TStringLengthResetter< wchar, PoolAllocator > WStringPALengthResetter
Type alias in namespace #"%alib".
LocalStringMA< 8 > StringMA8
Type alias name for #"TLocalString;TLocalString<character,8,MonoAllocator>".
LocalStringPA< 8 > StringPA8
Type alias name for #"TLocalString;TLocalString<character,8,PoolAllocator>".
LocalStringMA< 32 > StringMA32
Type alias name for #"TLocalString;TLocalString<character,32,MonoAllocator>".
strings::TStringLengthResetter< character, PoolAllocator > StringPALengthResetter
Type alias in namespace #"%alib".
strings::TAString< nchar, PoolAllocator > NAStringPA
Type alias in namespace #"%alib".
strings::TStringLengthResetter< character, MonoAllocator > StringMALengthResetter
Type alias in namespace #"%alib".
LocalStringPA< 512 > StringPA512
Type alias name for #"TLocalString;TLocalString<character,512,PoolAllocator>".
LocalStringPA< 128 > StringPA128
Type alias name for #"TLocalString;TLocalString<character,128,PoolAllocator>".
strings::TLocalString< wchar, TCapacity, MonoAllocator > WLocalStringMA
Type alias in namespace #"%alib".
LocalStringMA< 512 > StringMA512
Type alias name for #"TLocalString;TLocalString<character,512,MonoAllocator>".
LocalStringMA< 2048 > StringMA2K
Type alias name for #"TLocalString;TLocalString<character,2048,MonoAllocator>".
LocalStringPA< 4096 > StringPA4K
Type alias name for #"TLocalString;TLocalString<character,4096,PoolAllocator>".