Lines Matching refs:allocator

35     explicit Slot0(AllocatorType* allocator) : m_Allocator(allocator) {}
40 AllocatorType* allocator = this->GetAllocator();
41 if (allocator)
44 allocator->Free(this);
49 void Destroy(AllocatorType* allocator)
51 NW_NULL_ASSERT(allocator);
53 allocator->Free(this);
89 FunctionSlot0(AllocatorType* allocator, FunctionType function)
90 : Slot0<TResult, TAllocator>(allocator), m_Function(function) {}
147 //! @param[in] allocator アロケータです。
149 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
151 void* memory = allocator->Alloc(sizeof(SelfType));
155 return new(memory) SelfType(NULL, 0, allocator);
157 return new(memory) SelfType(allocator);
169 //! @param[in] allocator アロケータです。
171 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
173 void* memory = allocator->Alloc(sizeof(SelfType));
177 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
180 return new(memory) SelfType(elements, maxSlots, allocator);
184 allocator->Free(memory);
189 return new(memory) SelfType(allocator);
199 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
201 void* memory = allocator->Alloc(sizeof(SelfType));
204 return new(memory) SelfType(allocator);
280 //! @param[in] allocator アロケータです。
285 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
288 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
423 Signal0(void* elements, size_t maxSlots, AllocatorType* allocator)
424 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
426 explicit Signal0(AllocatorType* allocator)
427 : m_Allocator(allocator), m_Slots(allocator) {}
432 explicit Signal0(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}
464 explicit Slot1(AllocatorType* allocator) : m_Allocator(allocator) {}
469 AllocatorType* allocator = this->GetAllocator();
470 if (allocator)
473 allocator->Free(this);
478 void Destroy(AllocatorType* allocator)
480 NW_NULL_ASSERT(allocator);
482 allocator->Free(this);
519 FunctionSlot1(AllocatorType* allocator, FunctionType function)
520 : Slot1<TResult, TArg0, TAllocator>(allocator), m_Function(function) {}
578 //! @param[in] allocator アロケータです。
580 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
582 void* memory = allocator->Alloc(sizeof(SelfType));
586 return new(memory) SelfType(NULL, 0, allocator);
588 return new(memory) SelfType(allocator);
600 //! @param[in] allocator アロケータです。
602 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
604 void* memory = allocator->Alloc(sizeof(SelfType));
608 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
611 return new(memory) SelfType(elements, maxSlots, allocator);
615 allocator->Free(memory);
620 return new(memory) SelfType(allocator);
630 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
632 void* memory = allocator->Alloc(sizeof(SelfType));
635 return new(memory) SelfType(allocator);
711 //! @param[in] allocator アロケータです。
716 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
719 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
854 Signal1(void* elements, size_t maxSlots, AllocatorType* allocator)
855 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
857 explicit Signal1(AllocatorType* allocator)
858 : m_Allocator(allocator), m_Slots(allocator) {}
863 explicit Signal1(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}
895 explicit Slot2(AllocatorType* allocator) : m_Allocator(allocator) {}
900 AllocatorType* allocator = this->GetAllocator();
901 if (allocator)
904 allocator->Free(this);
909 void Destroy(AllocatorType* allocator)
911 NW_NULL_ASSERT(allocator);
913 allocator->Free(this);
950 FunctionSlot2(AllocatorType* allocator, FunctionType function)
951 : Slot2<TResult, TArg0, TArg1, TAllocator>(allocator), m_Function(function) {}
1010 //! @param[in] allocator アロケータです。
1012 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
1014 void* memory = allocator->Alloc(sizeof(SelfType));
1018 return new(memory) SelfType(NULL, 0, allocator);
1020 return new(memory) SelfType(allocator);
1032 //! @param[in] allocator アロケータです。
1034 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
1036 void* memory = allocator->Alloc(sizeof(SelfType));
1040 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
1043 return new(memory) SelfType(elements, maxSlots, allocator);
1047 allocator->Free(memory);
1052 return new(memory) SelfType(allocator);
1062 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
1064 void* memory = allocator->Alloc(sizeof(SelfType));
1067 return new(memory) SelfType(allocator);
1143 //! @param[in] allocator アロケータです。
1148 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
1151 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
1286 Signal2(void* elements, size_t maxSlots, AllocatorType* allocator)
1287 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
1289 explicit Signal2(AllocatorType* allocator)
1290 : m_Allocator(allocator), m_Slots(allocator) {}
1295 explicit Signal2(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}
1327 explicit Slot3(AllocatorType* allocator) : m_Allocator(allocator) {}
1332 AllocatorType* allocator = this->GetAllocator();
1333 if (allocator)
1336 allocator->Free(this);
1341 void Destroy(AllocatorType* allocator)
1343 NW_NULL_ASSERT(allocator);
1345 allocator->Free(this);
1382 FunctionSlot3(AllocatorType* allocator, FunctionType function)
1383 : Slot3<TResult, TArg0, TArg1, TArg2, TAllocator>(allocator), m_Function(function) {}
1443 //! @param[in] allocator アロケータです。
1445 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
1447 void* memory = allocator->Alloc(sizeof(SelfType));
1451 return new(memory) SelfType(NULL, 0, allocator);
1453 return new(memory) SelfType(allocator);
1465 //! @param[in] allocator アロケータです。
1467 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
1469 void* memory = allocator->Alloc(sizeof(SelfType));
1473 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
1476 return new(memory) SelfType(elements, maxSlots, allocator);
1480 allocator->Free(memory);
1485 return new(memory) SelfType(allocator);
1495 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
1497 void* memory = allocator->Alloc(sizeof(SelfType));
1500 return new(memory) SelfType(allocator);
1576 //! @param[in] allocator アロケータです。
1581 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
1584 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
1719 Signal3(void* elements, size_t maxSlots, AllocatorType* allocator)
1720 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
1722 explicit Signal3(AllocatorType* allocator)
1723 : m_Allocator(allocator), m_Slots(allocator) {}
1728 explicit Signal3(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}
1760 explicit Slot4(AllocatorType* allocator) : m_Allocator(allocator) {}
1765 AllocatorType* allocator = this->GetAllocator();
1766 if (allocator)
1769 allocator->Free(this);
1774 void Destroy(AllocatorType* allocator)
1776 NW_NULL_ASSERT(allocator);
1778 allocator->Free(this);
1815 FunctionSlot4(AllocatorType* allocator, FunctionType function)
1816 : Slot4<TResult, TArg0, TArg1, TArg2, TArg3, TAllocator>(allocator), m_Function(function) {}
1877 //! @param[in] allocator アロケータです。
1879 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
1881 void* memory = allocator->Alloc(sizeof(SelfType));
1885 return new(memory) SelfType(NULL, 0, allocator);
1887 return new(memory) SelfType(allocator);
1899 //! @param[in] allocator アロケータです。
1901 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
1903 void* memory = allocator->Alloc(sizeof(SelfType));
1907 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
1910 return new(memory) SelfType(elements, maxSlots, allocator);
1914 allocator->Free(memory);
1919 return new(memory) SelfType(allocator);
1929 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
1931 void* memory = allocator->Alloc(sizeof(SelfType));
1934 return new(memory) SelfType(allocator);
2010 //! @param[in] allocator アロケータです。
2015 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
2018 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
2153 Signal4(void* elements, size_t maxSlots, AllocatorType* allocator)
2154 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
2156 explicit Signal4(AllocatorType* allocator)
2157 : m_Allocator(allocator), m_Slots(allocator) {}
2162 explicit Signal4(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}
2194 explicit Slot5(AllocatorType* allocator) : m_Allocator(allocator) {}
2199 AllocatorType* allocator = this->GetAllocator();
2200 if (allocator)
2203 allocator->Free(this);
2208 void Destroy(AllocatorType* allocator)
2210 NW_NULL_ASSERT(allocator);
2212 allocator->Free(this);
2249 FunctionSlot5(AllocatorType* allocator, FunctionType function)
2250 …: Slot5<TResult, TArg0, TArg1, TArg2, TArg3, TArg4, TAllocator>(allocator), m_Function(function) {}
2312 //! @param[in] allocator アロケータです。
2314 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
2316 void* memory = allocator->Alloc(sizeof(SelfType));
2320 return new(memory) SelfType(NULL, 0, allocator);
2322 return new(memory) SelfType(allocator);
2334 //! @param[in] allocator アロケータです。
2336 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
2338 void* memory = allocator->Alloc(sizeof(SelfType));
2342 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
2345 return new(memory) SelfType(elements, maxSlots, allocator);
2349 allocator->Free(memory);
2354 return new(memory) SelfType(allocator);
2364 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
2366 void* memory = allocator->Alloc(sizeof(SelfType));
2369 return new(memory) SelfType(allocator);
2445 //! @param[in] allocator アロケータです。
2450 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
2453 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
2588 Signal5(void* elements, size_t maxSlots, AllocatorType* allocator)
2589 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
2591 explicit Signal5(AllocatorType* allocator)
2592 : m_Allocator(allocator), m_Slots(allocator) {}
2597 explicit Signal5(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}
2629 explicit Slot6(AllocatorType* allocator) : m_Allocator(allocator) {}
2634 AllocatorType* allocator = this->GetAllocator();
2635 if (allocator)
2638 allocator->Free(this);
2643 void Destroy(AllocatorType* allocator)
2645 NW_NULL_ASSERT(allocator);
2647 allocator->Free(this);
2684 FunctionSlot6(AllocatorType* allocator, FunctionType function)
2685 …: Slot6<TResult, TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TAllocator>(allocator), m_Function(func…
2748 //! @param[in] allocator アロケータです。
2750 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
2752 void* memory = allocator->Alloc(sizeof(SelfType));
2756 return new(memory) SelfType(NULL, 0, allocator);
2758 return new(memory) SelfType(allocator);
2770 //! @param[in] allocator アロケータです。
2772 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
2774 void* memory = allocator->Alloc(sizeof(SelfType));
2778 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
2781 return new(memory) SelfType(elements, maxSlots, allocator);
2785 allocator->Free(memory);
2790 return new(memory) SelfType(allocator);
2800 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
2802 void* memory = allocator->Alloc(sizeof(SelfType));
2805 return new(memory) SelfType(allocator);
2881 //! @param[in] allocator アロケータです。
2886 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
2889 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
3024 Signal6(void* elements, size_t maxSlots, AllocatorType* allocator)
3025 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
3027 explicit Signal6(AllocatorType* allocator)
3028 : m_Allocator(allocator), m_Slots(allocator) {}
3033 explicit Signal6(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}
3065 explicit Slot7(AllocatorType* allocator) : m_Allocator(allocator) {}
3070 AllocatorType* allocator = this->GetAllocator();
3071 if (allocator)
3074 allocator->Free(this);
3079 void Destroy(AllocatorType* allocator)
3081 NW_NULL_ASSERT(allocator);
3083 allocator->Free(this);
3120 FunctionSlot7(AllocatorType* allocator, FunctionType function)
3121 …: Slot7<TResult, TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TAllocator>(allocator), m_Functi…
3185 //! @param[in] allocator アロケータです。
3187 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
3189 void* memory = allocator->Alloc(sizeof(SelfType));
3193 return new(memory) SelfType(NULL, 0, allocator);
3195 return new(memory) SelfType(allocator);
3207 //! @param[in] allocator アロケータです。
3209 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
3211 void* memory = allocator->Alloc(sizeof(SelfType));
3215 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
3218 return new(memory) SelfType(elements, maxSlots, allocator);
3222 allocator->Free(memory);
3227 return new(memory) SelfType(allocator);
3237 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
3239 void* memory = allocator->Alloc(sizeof(SelfType));
3242 return new(memory) SelfType(allocator);
3318 //! @param[in] allocator アロケータです。
3323 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
3326 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
3461 Signal7(void* elements, size_t maxSlots, AllocatorType* allocator)
3462 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
3464 explicit Signal7(AllocatorType* allocator)
3465 : m_Allocator(allocator), m_Slots(allocator) {}
3470 explicit Signal7(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}
3502 explicit Slot8(AllocatorType* allocator) : m_Allocator(allocator) {}
3507 AllocatorType* allocator = this->GetAllocator();
3508 if (allocator)
3511 allocator->Free(this);
3516 void Destroy(AllocatorType* allocator)
3518 NW_NULL_ASSERT(allocator);
3520 allocator->Free(this);
3557 FunctionSlot8(AllocatorType* allocator, FunctionType function)
3558 …: Slot8<TResult, TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TAllocator>(allocator), m…
3623 //! @param[in] allocator アロケータです。
3625 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
3627 void* memory = allocator->Alloc(sizeof(SelfType));
3631 return new(memory) SelfType(NULL, 0, allocator);
3633 return new(memory) SelfType(allocator);
3645 //! @param[in] allocator アロケータです。
3647 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
3649 void* memory = allocator->Alloc(sizeof(SelfType));
3653 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
3656 return new(memory) SelfType(elements, maxSlots, allocator);
3660 allocator->Free(memory);
3665 return new(memory) SelfType(allocator);
3675 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
3677 void* memory = allocator->Alloc(sizeof(SelfType));
3680 return new(memory) SelfType(allocator);
3756 //! @param[in] allocator アロケータです。
3761 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
3764 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
3899 Signal8(void* elements, size_t maxSlots, AllocatorType* allocator)
3900 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
3902 explicit Signal8(AllocatorType* allocator)
3903 : m_Allocator(allocator), m_Slots(allocator) {}
3908 explicit Signal8(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}
3940 explicit Slot9(AllocatorType* allocator) : m_Allocator(allocator) {}
3945 AllocatorType* allocator = this->GetAllocator();
3946 if (allocator)
3949 allocator->Free(this);
3954 void Destroy(AllocatorType* allocator)
3956 NW_NULL_ASSERT(allocator);
3958 allocator->Free(this);
3995 FunctionSlot9(AllocatorType* allocator, FunctionType function)
3996 …g0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TAllocator>(allocator), m_Function(fun…
4062 //! @param[in] allocator アロケータです。
4064 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
4066 void* memory = allocator->Alloc(sizeof(SelfType));
4070 return new(memory) SelfType(NULL, 0, allocator);
4072 return new(memory) SelfType(allocator);
4084 //! @param[in] allocator アロケータです。
4086 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
4088 void* memory = allocator->Alloc(sizeof(SelfType));
4092 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
4095 return new(memory) SelfType(elements, maxSlots, allocator);
4099 allocator->Free(memory);
4104 return new(memory) SelfType(allocator);
4114 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
4116 void* memory = allocator->Alloc(sizeof(SelfType));
4119 return new(memory) SelfType(allocator);
4195 //! @param[in] allocator アロケータです。
4200 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
4203 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
4338 Signal9(void* elements, size_t maxSlots, AllocatorType* allocator)
4339 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
4341 explicit Signal9(AllocatorType* allocator)
4342 : m_Allocator(allocator), m_Slots(allocator) {}
4347 explicit Signal9(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}
4379 explicit Slot10(AllocatorType* allocator) : m_Allocator(allocator) {}
4384 AllocatorType* allocator = this->GetAllocator();
4385 if (allocator)
4388 allocator->Free(this);
4393 void Destroy(AllocatorType* allocator)
4395 NW_NULL_ASSERT(allocator);
4397 allocator->Free(this);
4434 FunctionSlot10(AllocatorType* allocator, FunctionType function)
4435 …g1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TAllocator>(allocator), m_Function(fun…
4502 //! @param[in] allocator アロケータです。
4504 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
4506 void* memory = allocator->Alloc(sizeof(SelfType));
4510 return new(memory) SelfType(NULL, 0, allocator);
4512 return new(memory) SelfType(allocator);
4524 //! @param[in] allocator アロケータです。
4526 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
4528 void* memory = allocator->Alloc(sizeof(SelfType));
4532 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
4535 return new(memory) SelfType(elements, maxSlots, allocator);
4539 allocator->Free(memory);
4544 return new(memory) SelfType(allocator);
4554 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
4556 void* memory = allocator->Alloc(sizeof(SelfType));
4559 return new(memory) SelfType(allocator);
4635 //! @param[in] allocator アロケータです。
4640 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
4643 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
4778 Signal10(void* elements, size_t maxSlots, AllocatorType* allocator)
4779 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
4781 explicit Signal10(AllocatorType* allocator)
4782 : m_Allocator(allocator), m_Slots(allocator) {}
4787 explicit Signal10(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}