3 #ifndef INCLUDE_NN_NLIB_HEAP_CACHEDHEAP_H_
4 #define INCLUDE_NN_NLIB_HEAP_CACHEDHEAP_H_
7 #include "nn/nlib/Swap.h"
9 #if defined(_MSC_VER) && defined(nx_heap_EXPORTS)
10 #undef NLIB_VIS_PUBLIC
11 #define NLIB_VIS_PUBLIC NLIB_WINEXPORT
26 swap(m_Body, rhs.m_Body);
40 void ReleaseAllCache() NLIB_NOEXCEPT;
41 void Finalize() NLIB_NOEXCEPT;
42 bool CheckCache() NLIB_NOEXCEPT;
58 NLIB_DEFINE_STD_SWAP(::
nlib_ns::heap::CachedHeap)
60 #if defined(_MSC_VER) && defined(nx_heap_EXPORTS)
61 #undef NLIB_VIS_PUBLIC
62 #define NLIB_VIS_PUBLIC NLIB_WINIMPORT
65 #endif // INCLUDE_NN_NLIB_HEAP_CACHEDHEAP_H_
#define NLIB_NOEXCEPT
Defines noexcept geared to the environment, or the equivalent.
#define NLIB_FINAL
Defines final if it is available for use. If not, holds an empty string.
#define NLIB_DISALLOW_COPY_AND_ASSIGN(TypeName)
Prohibits use of the copy constructor and assignment operator for the class specified by TypeName...
#define NLIB_SAFE_BOOL(class_name, exp)
Defines a safe operator bool function in the class. Uses the C++11 explicit bool if it is available f...
~CachedHeap() noexcept
Destructor. Calls Finalize.
void swap(CachedHeap &rhs) noexcept
Swaps the contents of an object.
CachedHeap() noexcept
Instantiates the object with default parameters (default constructor).
Implements common features and features that are highly platform-dependent. Also refer to nlib Platfo...
A file that contains the configuration information for each development environment.
Thread-specific cache class whose use is paired with CentralHeap.