ReactOS 0.4.16-dev-297-gc569aee
|
#include "nc_alloc.h"
#include <string>
#include <new>
#include <cassert>
#include <cstdlib>
#include <iostream>
Go to the source code of this file.
Classes | |
struct | hash_void |
class | FastAllocator |
struct | FastAllocator::Block |
Typedefs | |
typedef EH_STD::hash_set< void *, ::hash_void, EH_STD::equal_to< void * > > | allocation_set |
Functions | |
static allocation_set & | alloc_set () |
char * | AllocateBlock (size_t s) |
static void * | OperatorNew (size_t s) |
void *_STLP_CALL | operator new (size_t s) |
void *_STLP_CALL | operator new[] (size_t size) throw (EH_STD::bad_alloc) |
void _STLP_CALL | operator delete[] (void *ptr) throw () |
void _STLP_CALL | operator delete (void *s) |
void _STLP_CALL | operator delete (void *s, uintptr_t) |
Variables | |
long | alloc_count = 0 |
long | object_count = 0 |
TestController | gTestController |
static bool | using_alloc_set = false |
static FastAllocator | gFastAllocator |
typedef EH_STD::hash_set<void*, ::hash_void, EH_STD::equal_to<void*> > allocation_set |
Definition at line 95 of file nc_alloc.cpp.
|
static |
Definition at line 98 of file nc_alloc.cpp.
Referenced by TestController::ClearAllocationSet(), operator delete(), OperatorNew(), and TestController::ReportLeaked().
Definition at line 173 of file nc_alloc.cpp.
Referenced by OperatorNew().
|
noexcept |
Definition at line 245 of file nc_alloc.cpp.
Definition at line 270 of file nc_alloc.cpp.
|
noexcept |
Definition at line 238 of file nc_alloc.cpp.
void *_STLP_CALL operator new | ( | size_t | s | ) |
Definition at line 205 of file nc_alloc.cpp.
void *_STLP_CALL operator new[] | ( | size_t | size | ) | |
throw | ( | EH_STD::bad_alloc | |||
) |
Definition at line 223 of file nc_alloc.cpp.
Definition at line 183 of file nc_alloc.cpp.
Referenced by operator new(), and operator new[]().
long alloc_count = 0 |
Definition at line 36 of file nc_alloc.cpp.
Referenced by TestController::BeginLeakDetection(), operator delete(), OperatorNew(), and TestController::ReportLeaked().
|
static |
Definition at line 170 of file nc_alloc.cpp.
Referenced by AllocateBlock(), and operator delete().
TestController gTestController |
Definition at line 46 of file nc_alloc.cpp.
Referenced by assert_sorted_version(), ConstCheck(), main(), operator delete(), test_insert_one< C >::operator()(), test_insert_n< C >::operator()(), test_insert_value< C >::operator()(), test_insert_noresize< C >::operator()(), test_insert_range< C, Iter >::operator()(), test_push_back< C >::operator()(), test_copy_construct< T >::operator()(), test_construct_pointer_range< T >::operator()(), test_construct_iter_range< T >::operator()(), test_construct_iter_range_n< T >::operator()(), test_stable_partition::operator()(), test_assign_op< T >::operator()(), test_list_sort::operator()(), OperatorNew(), simulate_constructor(), simulate_possible_failure(), StrongCheck(), test_assign_op< T >::test_assign_op(), test_BitVector_reserve::test_BitVector_reserve(), test_construct_iter_range< T >::test_construct_iter_range(), test_construct_iter_range_n< T >::test_construct_iter_range_n(), test_construct_n< T >::test_construct_n(), test_construct_n_instance< T >::test_construct_n_instance(), test_construct_pointer_range< T >::test_construct_pointer_range(), test_copy_construct< T >::test_copy_construct(), test_default_construct< T >::test_default_construct(), test_hash_resize< T >::test_hash_resize(), test_inplace_merge_1::test_inplace_merge_1(), test_inplace_merge_2::test_inplace_merge_2(), test_insert_n< C >::test_insert_n(), test_insert_noresize< C >::test_insert_noresize(), test_insert_one< C >::test_insert_one(), test_insert_range< C, Iter >::test_insert_range(), test_insert_value< C >::test_insert_value(), test_list_sort::test_list_sort(), test_push_back< C >::test_push_back(), test_push_front< C >::test_push_front(), test_reserve::test_reserve(), test_slist_sort::test_slist_sort(), test_stable_partition::test_stable_partition(), test_stable_sort_1::test_stable_sort_1(), test_stable_sort_2::test_stable_sort_2(), test_uninitialized_copy::test_uninitialized_copy(), test_uninitialized_fill::test_uninitialized_fill(), test_uninitialized_fill_n::test_uninitialized_fill_n(), and WeakCheck().
long object_count = 0 |
Definition at line 37 of file nc_alloc.cpp.
Referenced by TestController::BeginLeakDetection(), ME_GetSelectionType(), TestController::ReportLeaked(), simulate_constructor(), and simulate_destructor().
Definition at line 104 of file nc_alloc.cpp.
Referenced by TestController::ClearAllocationSet(), operator delete(), OperatorNew(), and TestController::ReportLeaked().