|
IRC_SERVER
By @hyunjunk (hyunjun2372@gmail.com)
|
Namespaces | |
| namespace | detail |
Classes | |
| class | FixedMemoryPool |
| Memory pool that can allocate fixed amount of data. More... | |
| class | FlexibleFixedMemoryPool |
| A memory pool that can allocate flexible number of data. More... | |
| class | FlexibleMemoryPoolingBase |
| Base class for memory pooling with new/delete operator overloading. More... | |
| class | SharedPtr |
| Shared pointer custom implementation for C++98 standard. More... | |
| class | WeakPtr |
| Weak pointer custom implementation for C++98 standard. More... | |
Enumerations | |
| enum | GLOBAL_CONSTANTS { CACHE_LINE_SIZE = 64 , PAGE_SIZE = 4096 , QUAD_PAGE_SIZE = PAGE_SIZE * 4 } |
Functions | |||||
| void | CoreLog (const std::string &msg) | ||||
| void | CoreMemoryLog (const std::string &msg) | ||||
| void | CoreMemoryLeakLog (const std::string &msg) | ||||
| template<typename T > | |||||
| std::string | ValToString (const T value) | ||||
| template<typename T > | |||||
| std::string | ValToStringByHex (const T value) | ||||
MakeSharedGroup | |||||
Function to create a shared pointer with a new object.
Support only up to 4 arguments because variadic template is not available in c++98. Example usage: SharedPtr<int> A = MakeShared<int>(5);
| |||||
| template<typename T > | |||||
| SharedPtr< T > | MakeShared () | ||||
| template<typename T , typename A1 > | |||||
| SharedPtr< T > | MakeShared (A1 a1) | ||||
| template<typename T , typename A1 , typename A2 > | |||||
| SharedPtr< T > | MakeShared (A1 a1, A2 a2) | ||||
| template<typename T , typename A1 , typename A2 , typename A3 > | |||||
| SharedPtr< T > | MakeShared (A1 a1, A2 a2, A3 a3) | ||||
| template<typename T , typename A1 , typename A2 , typename A3 , typename A4 > | |||||
| SharedPtr< T > | MakeShared (A1 a1, A2 a2, A3 a3, A4 a4) | ||||
| void IRCCore::CoreLog | ( | const std::string & | msg | ) |
| void IRCCore::CoreMemoryLog | ( | const std::string & | msg | ) |
| void IRCCore::CoreMemoryLeakLog | ( | const std::string & | msg | ) |
| std::string IRCCore::ValToString | ( | const T | value | ) |
| std::string IRCCore::ValToStringByHex | ( | const T | value | ) |
| SharedPtr< T > IRCCore::MakeShared | ( | ) |
| SharedPtr< T > IRCCore::MakeShared | ( | A1 | a1 | ) |
| SharedPtr< T > IRCCore::MakeShared | ( | A1 | a1, |
| A2 | a2 ) |
| SharedPtr< T > IRCCore::MakeShared | ( | A1 | a1, |
| A2 | a2, | ||
| A3 | a3 ) |
| SharedPtr< T > IRCCore::MakeShared | ( | A1 | a1, |
| A2 | a2, | ||
| A3 | a3, | ||
| A4 | a4 ) |