CppCommon
1.0.4.1
C++ Common Library
|
C++ Common project definitions. More...
Classes | |
class | TokenBucket |
Token bucket rate limit algorithm. More... | |
class | FileCache |
File cache. More... | |
class | MemCache |
Memory cache. More... | |
struct | IsEnumFlags |
Enum-based flags false checker. More... | |
class | Flags |
Enum-based flags. More... | |
class | Function |
Allocation free function stub. More... | |
class | Function< R(Args...), Capacity > |
Allocation free function. More... | |
class | Reader |
Reader interface. More... | |
class | uint128_t |
Unsigned 128-bit integer type. More... | |
class | uint256_t |
Unsigned 256-bit integer type. More... | |
class | Writer |
Writer interface. More... | |
class | BinTreeIterator |
Intrusive binary tree iterator. More... | |
class | BinTreeConstIterator |
Intrusive binary tree constant iterator. More... | |
class | BinTreeReverseIterator |
Intrusive binary tree reverse iterator. More... | |
class | BinTreeConstReverseIterator |
Intrusive binary tree constant reverse iterator. More... | |
class | BinTree |
Intrusive non balanced binary tree container. More... | |
class | BinTreeAA |
Intrusive balanced A.Andersson binary tree container. More... | |
class | BinTreeAVL |
Intrusive balanced AVL binary tree container. More... | |
class | BinTreeRB |
Intrusive balanced Red-Black binary tree container. More... | |
class | BinTreeSplay |
Intrusive balanced Splay binary tree container. More... | |
class | FlatMap |
Flat map container. More... | |
class | HashMapIterator |
Hash map iterator. More... | |
class | HashMapConstIterator |
Hash map constant iterator. More... | |
class | HashMapReverseIterator |
Hash map reverse iterator. More... | |
class | HashMapConstReverseIterator |
Hash map constant reverse iterator. More... | |
class | HashMap |
Hash map container. More... | |
class | ListIterator |
Intrusive list iterator. More... | |
class | ListConstIterator |
Intrusive list constant iterator. More... | |
class | ListReverseIterator |
Intrusive list reverse iterator. More... | |
class | ListConstReverseIterator |
Intrusive list constant reverse iterator. More... | |
class | List |
Intrusive list container. More... | |
class | QueueIterator |
Intrusive queue iterator. More... | |
class | QueueConstIterator |
Intrusive queue constant iterator. More... | |
class | Queue |
Intrusive queue container. More... | |
class | StackIterator |
Intrusive stack iterator. More... | |
class | StackConstIterator |
Intrusive stack constant iterator. More... | |
class | Stack |
Intrusive stack container. More... | |
class | Exception |
Exception. More... | |
class | ArgumentException |
Argument exception. More... | |
class | DomainException |
Domain exception. More... | |
class | RuntimeException |
Runtime exception. More... | |
class | SecurityException |
Security exception. More... | |
class | SystemException |
System exception. More... | |
class | ExceptionsHandler |
Exceptions handler. More... | |
class | SystemError |
System error. More... | |
class | Directory |
Filesystem directory. More... | |
class | DirectoryIterator |
Filesystem directory iterator. More... | |
class | FileSystemException |
File system exception. More... | |
class | File |
Filesystem file. More... | |
struct | SpaceInfo |
Filesystem space information. More... | |
class | Path |
Filesystem path. More... | |
class | Symlink |
Filesystem symlink. More... | |
class | Math |
Math static class. More... | |
class | Allocator |
Memory allocator class. More... | |
class | Allocator< void, TMemoryManager, nothrow > |
Memory allocator class (void specialization) More... | |
class | DefaultMemoryManager |
Default memory manager class. More... | |
class | ArenaMemoryManager |
Arena memory manager class. More... | |
class | HeapMemoryManager |
Heap memory manager class. More... | |
class | NullMemoryManager |
Null memory manager class. More... | |
class | PoolMemoryManager |
Memory pool manager class. More... | |
class | StackMemoryManager |
Stack memory manager class. More... | |
class | Memory |
Memory management static class. More... | |
class | Encoding |
Encoding utilities. More... | |
class | StringUtils |
String utilities. More... | |
class | Console |
Console management static class. More... | |
class | CPU |
CPU management static class. More... | |
class | DLL |
Dynamic link library. More... | |
class | Environment |
Environment management static class. More... | |
class | DLLException |
Dynamic link library exception. More... | |
class | Pipe |
Pipe. More... | |
class | Process |
Process abstraction. More... | |
class | SharedMemory |
Shared memory manager. More... | |
class | SharedType |
Shared memory type. More... | |
class | SourceLocation |
Source location. More... | |
class | StackTrace |
Stack trace snapshot provider. More... | |
class | StackTraceManager |
Stack trace manager. More... | |
class | StdInput |
Standard input stream. More... | |
class | StdOutput |
Standard output stream. More... | |
class | StdError |
Standard error stream. More... | |
class | UUID |
Universally unique identifier (UUID) More... | |
class | Barrier |
Barrier synchronization primitive. More... | |
class | ConditionVariable |
Condition variable synchronization primitive. More... | |
class | CriticalSection |
Critical section synchronization primitive. More... | |
class | EventAutoReset |
Auto-reset event synchronization primitive. More... | |
class | EventManualReset |
Manual-reset event synchronization primitive. More... | |
class | FileLock |
File-lock synchronization primitive. More... | |
class | Latch |
Latch synchronization primitive. More... | |
class | Locker |
Locker synchronization primitive. More... | |
class | ReadLocker |
Read locker synchronization primitive. More... | |
class | WriteLocker |
Write locker synchronization primitive. More... | |
class | MPMCRingQueue |
Multiple producers / multiple consumers wait-free ring queue. More... | |
class | MPSCLinkedBatcher |
Multiple producers / single consumer wait-free linked batcher. More... | |
class | MPSCLinkedQueue |
Multiple producers / single consumer wait-free linked queue. More... | |
class | MPSCRingBuffer |
Multiple producers / single consumer wait-free ring buffer. More... | |
class | MPSCRingQueue |
Multiple producers / single consumer wait-free ring queue. More... | |
class | Mutex |
Mutex synchronization primitive. More... | |
class | NamedConditionVariable |
Named condition variable synchronization primitive. More... | |
class | NamedCriticalSection |
Named critical section synchronization primitive. More... | |
class | NamedEventAutoReset |
Named auto-reset event synchronization primitive. More... | |
class | NamedEventManualReset |
Named manual-reset event synchronization primitive. More... | |
class | NamedMutex |
Named mutex synchronization primitive. More... | |
class | NamedRWLock |
Named read/write lock synchronization primitive. More... | |
class | NamedSemaphore |
Named semaphore synchronization primitive. More... | |
class | RWLock |
Read/Write lock synchronization primitive. More... | |
class | Semaphore |
Semaphore synchronization primitive. More... | |
class | SeqLock |
Sequential lock synchronization primitive. More... | |
class | SpinBarrier |
Spin barrier synchronization primitive. More... | |
class | SpinLock |
Spin-lock synchronization primitive. More... | |
class | SPSCRingBuffer |
Single producer / single consumer wait-free ring buffer. More... | |
class | SPSCRingQueue |
Single producer / single consumer wait-free ring queue. More... | |
class | Thread |
Thread abstraction. More... | |
class | WaitBatcher |
Multiple producers / multiple consumers wait batcher. More... | |
class | WaitQueue |
Multiple producers / multiple consumers wait queue. More... | |
class | WaitRing |
Multiple producers / multiple consumers wait ring. More... | |
class | Time |
Time. More... | |
class | UtcTime |
UTC time. More... | |
class | LocalTime |
Local time. More... | |
class | Timespan |
Timespan. More... | |
class | Timestamp |
Timestamp. More... | |
class | EpochTimestamp |
Epoch timestamp. More... | |
class | UtcTimestamp |
UTC timestamp. More... | |
class | LocalTimestamp |
Local timestamp. More... | |
class | NanoTimestamp |
High resolution timestamp. More... | |
class | RdtsTimestamp |
RDTS timestamp. More... | |
class | Timezone |
Timezone. More... | |
class | Endian |
Big/Little-endian utilities. More... | |
class | WriteChar |
Write character stream manipulator. More... | |
class | WriteWChar |
Write wide character stream manipulator. More... | |
class | WriteString |
Write string stream manipulator. More... | |
class | WriteWString |
Write wide string stream manipulator. More... | |
class | Singleton |
Singleton template base class. More... | |
class | StaticConstructor |
Static constructor pattern. More... | |
class | ValidateAlignedStorage |
Aligned storage validator. More... | |
Typedefs | |
template<typename T , bool nothrow = false> | |
using | DefaultAllocator = Allocator< T, DefaultMemoryManager, nothrow > |
Default memory allocator class. More... | |
template<typename T , class TAuxMemoryManager = DefaultMemoryManager, bool nothrow = false> | |
using | ArenaAllocator = Allocator< T, ArenaMemoryManager< TAuxMemoryManager >, nothrow > |
Arena memory allocator class. More... | |
template<typename T , bool nothrow = false> | |
using | HeapAllocator = Allocator< T, HeapMemoryManager, nothrow > |
Heap memory allocator class. More... | |
template<typename T , bool nothrow = false> | |
using | NullAllocator = Allocator< T, NullMemoryManager, nothrow > |
Null memory allocator class. More... | |
template<typename T , class TAuxMemoryManager = DefaultMemoryManager, bool nothrow = false> | |
using | PoolAllocator = Allocator< T, PoolMemoryManager< TAuxMemoryManager >, nothrow > |
Pool memory allocator class. More... | |
template<typename T , size_t N, bool nothrow = false> | |
using | StackAllocator = Allocator< T, StackMemoryManager< N >, nothrow > |
Stack memory allocator class. More... | |
Enumerations | |
enum class | FileType { NONE , REGULAR , DIRECTORY , SYMLINK , BLOCK , CHARACTER , FIFO , SOCKET , UNKNOWN } |
File types. More... | |
enum class | FileAttributes { NONE = 0x00 , NORMAL = 0x01 , ARCHIVED = 0x02 , HIDDEN = 0x04 , INDEXED = 0x08 , OFFLINE = 0x10 , READONLY = 0x20 , SYSTEM = 0x40 , TEMPORARY = 0x80 } |
File attributes (Windows specific) More... | |
enum class | FilePermissions { NONE = 00000 , IRUSR = 00400 , IWUSR = 00200 , IXUSR = 00100 , IRWXU = 00700 , IRGRP = 00040 , IWGRP = 00020 , IXGRP = 00010 , IRWXG = 00070 , IROTH = 00004 , IWOTH = 00002 , IXOTH = 00001 , IRWXO = 00007 , ISUID = 04000 , ISGID = 02000 , ISVTX = 01000 } |
File permissions (Unix specific) More... | |
enum class | Color { BLACK , BLUE , GREEN , CYAN , RED , MAGENTA , BROWN , GREY , DARKGREY , LIGHTBLUE , LIGHTGREEN , LIGHTCYAN , LIGHTRED , LIGHTMAGENTA , YELLOW , WHITE } |
Supported console colors. More... | |
enum class | ThreadPriority : uint8_t { IDLE = 0x00 , LOWEST = 0x1F , LOW = 0x3F , NORMAL = 0x7F , HIGH = 0x9F , HIGHEST = 0xBF , REALTIME = 0xFF } |
Thread priorities. More... | |
enum class | Weekday { Sunday , Monday , Tuesday , Wednesday , Thursday , Friday , Saturday } |
Weekday. More... | |
Functions | |
void | swap (FileCache &cache1, FileCache &cache2) noexcept |
template<typename TKey , typename TValue > | |
void | swap (MemCache< TKey, TValue > &cache1, MemCache< TKey, TValue > &cache2) noexcept |
template<typename TEnum > | |
void | swap (Flags< TEnum > &flags1, Flags< TEnum > &flags2) noexcept |
template<typename TEnum > | |
constexpr auto | operator& (TEnum value1, TEnum value2) noexcept -> typename std::enable_if< IsEnumFlags< TEnum >::value, Flags< TEnum >>::type |
template<typename TEnum > | |
constexpr auto | operator| (TEnum value1, TEnum value2) noexcept -> typename std::enable_if< IsEnumFlags< TEnum >::value, Flags< TEnum >>::type |
template<typename TEnum > | |
constexpr auto | operator^ (TEnum value1, TEnum value2) noexcept -> typename std::enable_if< IsEnumFlags< TEnum >::value, Flags< TEnum >>::type |
template<class R , class... Args, size_t Capacity> | |
void | swap (Function< R(Args...), Capacity > &function1, Function< R(Args...), Capacity > &function2) noexcept |
uint128_t | operator+ (const uint128_t &value1, const uint128_t &value2) noexcept |
uint128_t | operator- (const uint128_t &value1, const uint128_t &value2) noexcept |
uint128_t | operator/ (const uint128_t &value1, const uint128_t &value2) |
uint128_t | operator% (const uint128_t &value1, const uint128_t &value2) |
uint128_t | operator& (const uint128_t &value1, const uint128_t &value2) noexcept |
uint128_t | operator| (const uint128_t &value1, const uint128_t &value2) noexcept |
uint128_t | operator^ (const uint128_t &value1, const uint128_t &value2) noexcept |
bool | operator== (const uint128_t &value1, const uint128_t &value2) noexcept |
bool | operator!= (const uint128_t &value1, const uint128_t &value2) noexcept |
bool | operator< (const uint128_t &value1, const uint128_t &value2) noexcept |
bool | operator> (const uint128_t &value1, const uint128_t &value2) noexcept |
bool | operator<= (const uint128_t &value1, const uint128_t &value2) noexcept |
bool | operator>= (const uint128_t &value1, const uint128_t &value2) noexcept |
bool | operator&& (const uint128_t &value1, const uint128_t &value2) noexcept |
bool | operator|| (const uint128_t &value1, const uint128_t &value2) noexcept |
std::ostream & | operator<< (std::ostream &os, const uint128_t &value) |
std::wostream & | operator<< (std::wostream &os, const uint128_t &value) |
void | swap (uint128_t &value1, uint128_t &value2) noexcept |
uint256_t | operator+ (const uint256_t &value1, const uint256_t &value2) noexcept |
uint256_t | operator- (const uint256_t &value1, const uint256_t &value2) noexcept |
uint256_t | operator/ (const uint256_t &value1, const uint256_t &value2) |
uint256_t | operator% (const uint256_t &value1, const uint256_t &value2) |
uint256_t | operator& (const uint256_t &value1, const uint256_t &value2) noexcept |
uint256_t | operator| (const uint256_t &value1, const uint256_t &value2) noexcept |
uint256_t | operator^ (const uint256_t &value1, const uint256_t &value2) noexcept |
bool | operator== (const uint256_t &value1, const uint256_t &value2) noexcept |
bool | operator!= (const uint256_t &value1, const uint256_t &value2) noexcept |
bool | operator< (const uint256_t &value1, const uint256_t &value2) noexcept |
bool | operator> (const uint256_t &value1, const uint256_t &value2) noexcept |
bool | operator<= (const uint256_t &value1, const uint256_t &value2) noexcept |
bool | operator>= (const uint256_t &value1, const uint256_t &value2) noexcept |
bool | operator&& (const uint256_t &value1, const uint256_t &value2) noexcept |
bool | operator|| (const uint256_t &value1, const uint256_t &value2) noexcept |
std::ostream & | operator<< (std::ostream &os, const uint256_t &value) |
std::wostream & | operator<< (std::wostream &os, const uint256_t &value) |
void | swap (uint256_t &value1, uint256_t &value2) noexcept |
template<typename T , typename TCompare > | |
void | swap (BinTree< T, TCompare > &bintree1, BinTree< T, TCompare > &bintree2) noexcept |
template<class TContainer , typename T > | |
void | swap (BinTreeIterator< TContainer, T > &it1, BinTreeIterator< TContainer, T > &it2) noexcept |
template<class TContainer , typename T > | |
void | swap (BinTreeConstIterator< TContainer, T > &it1, BinTreeConstIterator< TContainer, T > &it2) noexcept |
template<class TContainer , typename T > | |
void | swap (BinTreeReverseIterator< TContainer, T > &it1, BinTreeReverseIterator< TContainer, T > &it2) noexcept |
template<class TContainer , typename T > | |
void | swap (BinTreeConstReverseIterator< TContainer, T > &it1, BinTreeConstReverseIterator< TContainer, T > &it2) noexcept |
template<typename T , typename TCompare > | |
void | swap (BinTreeAA< T, TCompare > &bintree1, BinTreeAA< T, TCompare > &bintree2) noexcept |
template<typename T , typename TCompare > | |
void | swap (BinTreeAVL< T, TCompare > &bintree1, BinTreeAVL< T, TCompare > &bintree2) noexcept |
template<typename T , typename TCompare > | |
void | swap (BinTreeRB< T, TCompare > &bintree1, BinTreeRB< T, TCompare > &bintree2) noexcept |
template<typename T , typename TCompare > | |
void | swap (BinTreeSplay< T, TCompare > &bintree1, BinTreeSplay< T, TCompare > &bintree2) noexcept |
template<typename TKey , typename TValue , typename TCompare , typename TAllocator > | |
void | swap (FlatMap< TKey, TValue, TCompare, TAllocator > &flatmap1, FlatMap< TKey, TValue, TCompare, TAllocator > &flatmap2) noexcept |
template<typename TKey , typename TValue , typename THash , typename TEqual , typename TAllocator > | |
void | swap (HashMap< TKey, TValue, THash, TEqual, TAllocator > &hashmap1, HashMap< TKey, TValue, THash, TEqual, TAllocator > &hashmap2) noexcept |
template<class TContainer , typename TKey , typename TValue > | |
void | swap (HashMapIterator< TContainer, TKey, TValue > &it1, HashMapIterator< TContainer, TKey, TValue > &it2) noexcept |
template<class TContainer , typename TKey , typename TValue > | |
void | swap (HashMapConstIterator< TContainer, TKey, TValue > &it1, HashMapConstIterator< TContainer, TKey, TValue > &it2) noexcept |
template<class TContainer , typename TKey , typename TValue > | |
void | swap (HashMapReverseIterator< TContainer, TKey, TValue > &it1, HashMapReverseIterator< TContainer, TKey, TValue > &it2) noexcept |
template<class TContainer , typename TKey , typename TValue > | |
void | swap (HashMapConstReverseIterator< TContainer, TKey, TValue > &it1, HashMapConstReverseIterator< TContainer, TKey, TValue > &it2) noexcept |
template<typename T > | |
void | swap (List< T > &list1, List< T > &list2) noexcept |
template<typename T > | |
void | swap (ListIterator< T > &it1, ListIterator< T > &it2) noexcept |
template<typename T > | |
void | swap (ListConstIterator< T > &it1, ListConstIterator< T > &it2) noexcept |
template<typename T > | |
void | swap (ListReverseIterator< T > &it1, ListReverseIterator< T > &it2) noexcept |
template<typename T > | |
void | swap (ListConstReverseIterator< T > &it1, ListConstReverseIterator< T > &it2) noexcept |
template<typename T > | |
void | swap (Queue< T > &queue1, Queue< T > &queue2) noexcept |
template<typename T > | |
void | swap (QueueIterator< T > &it1, QueueIterator< T > &it2) noexcept |
template<typename T > | |
void | swap (QueueConstIterator< T > &it1, QueueConstIterator< T > &it2) noexcept |
template<typename T > | |
void | swap (Stack< T > &stack1, Stack< T > &stack2) noexcept |
template<typename T > | |
void | swap (StackIterator< T > &it1, StackIterator< T > &it2) noexcept |
template<typename T > | |
void | swap (StackConstIterator< T > &it1, StackConstIterator< T > &it2) noexcept |
void | fatal (const SourceLocation &location, const StackTrace &trace, const std::string &message, int error=SystemError::GetLast()) noexcept |
Fatal abort execution. More... | |
void | fatal (const SourceLocation &location, const StackTrace &trace, const std::exception &fatal) noexcept |
Fatal abort execution. More... | |
void | swap (Directory &directory1, Directory &directory2) noexcept |
bool | operator== (const DirectoryIterator &it1, const DirectoryIterator &it2) noexcept |
bool | operator!= (const DirectoryIterator &it1, const DirectoryIterator &it2) noexcept |
void | swap (DirectoryIterator &it1, DirectoryIterator &it2) noexcept |
void | swap (File &file1, File &file2) noexcept |
void | swap (Path &path1, Path &path2) noexcept |
void | swap (Symlink &symlink1, Symlink &symlink2) noexcept |
template<typename T > | |
T | GCD (T a, T b) |
template<typename T , typename U , class TMemoryManager , bool nothrow> | |
bool | operator== (const Allocator< T, TMemoryManager, nothrow > &alloc1, const Allocator< U, TMemoryManager, nothrow > &alloc2) noexcept |
template<typename T , typename U , class TMemoryManager , bool nothrow> | |
bool | operator!= (const Allocator< T, TMemoryManager, nothrow > &alloc1, const Allocator< U, TMemoryManager, nothrow > &alloc2) noexcept |
template<typename... T> | |
std::string | format (fmt::format_string< T... > pattern, T &&... args) |
Format string. More... | |
template<typename... T> | |
std::wstring | format (fmt::wformat_string< T... > pattern, T &&... args) |
Format wide string. More... | |
template<typename... T> | |
void | print (fmt::format_string< T... > pattern, T &&... args) |
Format string and print it into the std::cout. More... | |
template<typename... T> | |
void | print (fmt::wformat_string< T... > pattern, T &&... args) |
Format wide string and print it into the std::cout. More... | |
template<typename TOutputStream , typename... T> | |
void | print (TOutputStream &stream, fmt::format_string< T... > pattern, T &&... args) |
Format string and print it into the given std::ostream. More... | |
template<typename TOutputStream , typename... T> | |
void | print (TOutputStream &stream, fmt::wformat_string< T... > pattern, T &&... args) |
Format wide string and print it into the given std::ostream. More... | |
template<class TOutputStream > | |
TOutputStream & | operator<< (TOutputStream &stream, Color color) |
Stream manipulator: change console text color. More... | |
template<class TOutputStream > | |
TOutputStream & | operator<< (TOutputStream &stream, std::pair< Color, Color > colors) |
Stream manipulator: change console text and background colors. More... | |
void | swap (DLL &dll1, DLL &dll2) noexcept |
void | swap (Pipe &pipe1, Pipe &pipe2) noexcept |
void | swap (Process &process1, Process &process2) noexcept |
std::ostream & | operator<< (std::ostream &os, const SourceLocation &source_location) |
void | swap (StdInput &stream1, StdInput &stream2) noexcept |
void | swap (StdOutput &stream1, StdOutput &stream2) noexcept |
void | swap (StdError &stream1, StdError &stream2) noexcept |
void | swap (UUID &uuid1, UUID &uuid2) noexcept |
template<class TOutputStream > | |
TOutputStream & | operator<< (TOutputStream &stream, ThreadPriority priority) |
Stream output: Thread priorities. More... | |
template<class TOutputStream > | |
TOutputStream & | operator<< (TOutputStream &stream, Weekday weekday) |
Stream output: Weekday. More... | |
bool | operator== (const Time &time1, const Time &time2) noexcept |
bool | operator!= (const Time &time1, const Time &time2) noexcept |
bool | operator> (const Time &time1, const Time &time2) noexcept |
bool | operator< (const Time &time1, const Time &time2) noexcept |
bool | operator>= (const Time &time1, const Time &time2) noexcept |
bool | operator<= (const Time &time1, const Time &time2) noexcept |
void | swap (Time &time1, Time &time2) noexcept |
void | swap (Timespan ×pan1, Timespan ×pan2) noexcept |
void | swap (Timestamp ×tamp1, Timestamp ×tamp2) noexcept |
void | swap (Timezone &timezone1, Timezone &timezone2) noexcept |
template<typename T , size_t N> | |
constexpr size_t | countof (const T(&)[N]) noexcept |
Count of elements in static array. More... | |
template<typename T > | |
size_t | countof (const T &container) noexcept |
Count of elements in any other STL container. More... | |
template<typename T , typename TCleaner > | |
auto | resource (T handle, TCleaner cleaner) |
Resource smart cleaner pattern. More... | |
template<typename TCleaner > | |
auto | resource (void *handle, TCleaner cleaner) |
Resource smart cleaner pattern (void* specialization) More... | |
template<typename TCleaner > | |
auto | resource (TCleaner cleaner) |
Resource smart cleaner pattern for empty resource handle. More... | |
uint128_t | operator* (const uint128_t &value1, const uint128_t &value2) noexcept |
uint128_t | operator<< (const uint128_t &value1, const uint128_t &value2) noexcept |
uint128_t | operator>> (const uint128_t &value1, const uint128_t &value2) noexcept |
uint256_t | operator* (const uint256_t &value1, const uint256_t &value2) noexcept |
uint256_t | operator<< (const uint256_t &value1, const uint256_t &value2) noexcept |
uint256_t | operator>> (const uint256_t &value1, const uint256_t &value2) noexcept |
std::ostream & | operator<< (std::ostream &os, const StackTrace::Frame &frame) |
std::ostream & | operator<< (std::ostream &os, const StackTrace &stack_trace) |
Variables | |
const char | version [] = "1.0.4.1" |
Project version. More... | |
C++ Common project definitions.
using CppCommon::ArenaAllocator = typedef Allocator<T, ArenaMemoryManager<TAuxMemoryManager>, nothrow> |
Arena memory allocator class.
Definition at line 143 of file allocator_arena.h.
using CppCommon::DefaultAllocator = typedef Allocator<T, DefaultMemoryManager, nothrow> |
Default memory allocator class.
Definition at line 230 of file allocator.h.
using CppCommon::HeapAllocator = typedef Allocator<T, HeapMemoryManager, nothrow> |
Heap memory allocator class.
Definition at line 78 of file allocator_heap.h.
using CppCommon::NullAllocator = typedef Allocator<T, NullMemoryManager, nothrow> |
Null memory allocator class.
Definition at line 67 of file allocator_null.h.
using CppCommon::PoolAllocator = typedef Allocator<T, PoolMemoryManager<TAuxMemoryManager>, nothrow> |
Pool memory allocator class.
Definition at line 162 of file allocator_pool.h.
using CppCommon::StackAllocator = typedef Allocator<T, StackMemoryManager<N>, nothrow> |
Stack memory allocator class.
Definition at line 87 of file allocator_stack.h.
|
strong |
Supported console colors.
|
strong |
|
strong |
File permissions (Unix specific)
|
strong |
|
strong |
|
strong |
|
noexcept |
|
constexprnoexcept |
Count of elements in static array.
|
noexcept |
Fatal abort execution.
Fatal aborts execution. It will print fatal exception into the std::cerr stream, get and print the last system error code and message, stack trace if available. Finally abort() function will be called!
Thread-safe.
location | - Source location |
trace | - Stack trace |
fatal | - Fatal exception |
|
noexcept |
Fatal abort execution.
Fatal aborts execution. It will print fatal message into the std::cerr stream, get and print the last system error code and message, stack trace if available. Finally abort() function will be called!
Thread-safe.
location | - Source location |
trace | - Stack trace |
message | - Fatal message |
error | - System error code |
|
inline |
Format string.
Format string with the help of {fmt} library (http://fmtlib.net)
Thread-safe.
pattern | - Format string pattern |
args | - Format arguments |
Definition at line 12 of file format.inl.
|
inline |
Format wide string.
Format wide string with the help of {fmt} library (http://fmtlib.net)
Thread-safe.
pattern | - Format wide string pattern |
args | - Format arguments |
Definition at line 18 of file format.inl.
|
inlinenoexcept |
Definition at line 23 of file allocator.inl.
|
inlinenoexcept |
Definition at line 16 of file directory_iterator.inl.
Definition at line 120 of file uint128.inl.
Definition at line 132 of file uint256.inl.
Definition at line 95 of file uint128.inl.
Definition at line 107 of file uint256.inl.
|
inlinenoexcept |
Definition at line 100 of file uint128.inl.
|
inlinenoexcept |
Definition at line 112 of file uint256.inl.
|
constexprnoexcept |
Definition at line 145 of file uint128.inl.
Definition at line 157 of file uint256.inl.
Definition at line 13 of file uint128.cpp.
Definition at line 13 of file uint256.cpp.
|
inlinenoexcept |
Definition at line 80 of file uint128.inl.
|
inlinenoexcept |
Definition at line 92 of file uint256.inl.
|
inlinenoexcept |
Definition at line 85 of file uint128.inl.
|
inlinenoexcept |
Definition at line 97 of file uint256.inl.
Definition at line 90 of file uint128.inl.
Definition at line 102 of file uint256.inl.
Definition at line 125 of file uint128.inl.
Definition at line 137 of file uint256.inl.
Definition at line 58 of file uint128.cpp.
Definition at line 47 of file uint256.cpp.
|
inline |
Definition at line 11 of file source_location.inl.
std::ostream& CppCommon::operator<< | ( | std::ostream & | os, |
const StackTrace & | stack_trace | ||
) |
Definition at line 262 of file stack_trace.cpp.
std::ostream& CppCommon::operator<< | ( | std::ostream & | os, |
const StackTrace::Frame & | frame | ||
) |
Definition at line 48 of file stack_trace.cpp.
|
inline |
Definition at line 155 of file uint128.inl.
|
inline |
Definition at line 167 of file uint256.inl.
|
inline |
Definition at line 166 of file uint128.inl.
|
inline |
Definition at line 178 of file uint256.inl.
|
inline |
Stream manipulator: change console text color.
stream | - Output stream |
color | - Console text color |
Definition at line 12 of file console.inl.
|
inline |
Stream manipulator: change console text and background colors.
stream | - Output stream |
colors | - Console text and background colors |
Definition at line 19 of file console.inl.
|
inline |
Stream output: Thread priorities.
stream | - Output stream |
priority | - Thread priority |
Definition at line 12 of file thread.inl.
|
inline |
Definition at line 135 of file uint128.inl.
Definition at line 147 of file uint256.inl.
|
inlinenoexcept |
Definition at line 17 of file allocator.inl.
|
inlinenoexcept |
Definition at line 11 of file directory_iterator.inl.
Definition at line 115 of file uint128.inl.
Definition at line 127 of file uint256.inl.
Definition at line 130 of file uint128.inl.
Definition at line 142 of file uint256.inl.
Definition at line 140 of file uint128.inl.
Definition at line 152 of file uint256.inl.
Definition at line 76 of file uint128.cpp.
Definition at line 65 of file uint256.cpp.
|
inlinenoexcept |
Definition at line 110 of file uint128.inl.
|
inlinenoexcept |
Definition at line 122 of file uint256.inl.
|
constexprnoexcept |
|
inlinenoexcept |
Definition at line 105 of file uint128.inl.
|
inlinenoexcept |
Definition at line 117 of file uint256.inl.
|
constexprnoexcept |
Definition at line 150 of file uint128.inl.
Definition at line 162 of file uint256.inl.
|
inline |
Format string and print it into the std::cout.
Format string with the help of {fmt} library (http://fmtlib.net)
Thread-safe.
pattern | - Format string pattern |
args | - Format arguments |
Definition at line 24 of file format.inl.
|
inline |
Format wide string and print it into the std::cout.
Format wide string with the help of {fmt} library (http://fmtlib.net)
Thread-safe.
pattern | - Format wide string pattern |
args | - Format arguments |
Definition at line 30 of file format.inl.
|
inline |
Format string and print it into the given std::ostream.
Format string with the help of {fmt} library (http://fmtlib.net)
Thread-safe.
stream | - Output stream |
pattern | - Format string pattern |
args | - Format arguments |
Definition at line 36 of file format.inl.
|
inline |
Format wide string and print it into the given std::ostream.
Format wide string with the help of {fmt} library (http://fmtlib.net)
Thread-safe.
stream | - Output stream |
pattern | - Format wide string pattern |
args | - Format arguments |
Definition at line 42 of file format.inl.
auto CppCommon::resource | ( | T | handle, |
TCleaner | cleaner | ||
) |
Resource smart cleaner pattern.
Resource smart cleaner pattern allows to create unique smart pointer with a given resource and cleaner delegate which is used to automatic resource clean when it goes out of scope.
Thread-safe.
Example:
handle | - Resource handle |
cleaner | - Cleaner function |
Definition at line 43 of file resource.h.
auto CppCommon::resource | ( | TCleaner | cleaner | ) |
Resource smart cleaner pattern for empty resource handle.
cleaner | - Cleaner function |
Definition at line 64 of file resource.h.
auto CppCommon::resource | ( | void * | handle, |
TCleaner | cleaner | ||
) |
Resource smart cleaner pattern (void* specialization)
handle | - Resource handle |
cleaner | - Cleaner function |
Definition at line 54 of file resource.h.
|
inlinenoexcept |
Definition at line 415 of file bintree.inl.
|
inlinenoexcept |
Definition at line 510 of file bintree_aa.inl.
|
inlinenoexcept |
Definition at line 810 of file bintree_avl.inl.
|
noexcept |
Definition at line 529 of file bintree.inl.
|
noexcept |
Definition at line 643 of file bintree.inl.
|
noexcept |
Definition at line 472 of file bintree.inl.
|
inlinenoexcept |
Definition at line 664 of file bintree_rb.inl.
|
noexcept |
Definition at line 586 of file bintree.inl.
|
inlinenoexcept |
Definition at line 583 of file bintree_splay.inl.
Definition at line 17 of file directory.inl.
|
inlinenoexcept |
Definition at line 37 of file directory_iterator.inl.
Definition at line 23 of file filecache.inl.
|
inlinenoexcept |
Definition at line 232 of file flatmap.inl.
|
noexcept |
Definition at line 153 of file function.inl.
|
inlinenoexcept |
Definition at line 325 of file hashmap.inl.
|
noexcept |
Definition at line 497 of file hashmap.inl.
|
noexcept |
Definition at line 669 of file hashmap.inl.
|
noexcept |
Definition at line 411 of file hashmap.inl.
|
noexcept |
Definition at line 583 of file hashmap.inl.
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
inlinenoexcept |
Definition at line 184 of file memcache.inl.
Definition at line 21 of file process.inl.
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
Definition at line 21 of file stream.inl.
Definition at line 11 of file stream.inl.
Definition at line 16 of file stream.inl.
Definition at line 17 of file symlink.inl.
Definition at line 17 of file timespan.inl.
Definition at line 17 of file timestamp.inl.
Definition at line 19 of file timezone.inl.
Definition at line 184 of file uint128.inl.
Definition at line 196 of file uint256.inl.