Lines Matching refs:allocator

33     explicit Slot0(AllocatorType* allocator) : m_Allocator(allocator) {}
38 AllocatorType* allocator = this->GetAllocator();
39 if (allocator)
42 allocator->Free(this);
47 void Destroy(AllocatorType* allocator)
49 NW_NULL_ASSERT(allocator);
51 allocator->Free(this);
87 FunctionSlot0(AllocatorType* allocator, FunctionType function)
88 : Slot0<TResult, TAllocator>(allocator), m_Function(function) {}
145 //! @param[in] allocator アロケータです。
147 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
149 void* memory = allocator->Alloc(sizeof(SelfType));
153 return new(memory) SelfType(NULL, 0, allocator);
155 return new(memory) SelfType(allocator);
167 //! @param[in] allocator アロケータです。
169 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
171 void* memory = allocator->Alloc(sizeof(SelfType));
175 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
178 return new(memory) SelfType(elements, maxSlots, allocator);
182 allocator->Free(memory);
187 return new(memory) SelfType(allocator);
197 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
199 void* memory = allocator->Alloc(sizeof(SelfType));
202 return new(memory) SelfType(allocator);
278 //! @param[in] allocator アロケータです。
283 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
286 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
421 Signal0(void* elements, size_t maxSlots, AllocatorType* allocator)
422 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
424 explicit Signal0(AllocatorType* allocator)
425 : m_Allocator(allocator), m_Slots(allocator) {}
430 explicit Signal0(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}
462 explicit Slot1(AllocatorType* allocator) : m_Allocator(allocator) {}
467 AllocatorType* allocator = this->GetAllocator();
468 if (allocator)
471 allocator->Free(this);
476 void Destroy(AllocatorType* allocator)
478 NW_NULL_ASSERT(allocator);
480 allocator->Free(this);
517 FunctionSlot1(AllocatorType* allocator, FunctionType function)
518 : Slot1<TResult, TArg0, TAllocator>(allocator), m_Function(function) {}
576 //! @param[in] allocator アロケータです。
578 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
580 void* memory = allocator->Alloc(sizeof(SelfType));
584 return new(memory) SelfType(NULL, 0, allocator);
586 return new(memory) SelfType(allocator);
598 //! @param[in] allocator アロケータです。
600 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
602 void* memory = allocator->Alloc(sizeof(SelfType));
606 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
609 return new(memory) SelfType(elements, maxSlots, allocator);
613 allocator->Free(memory);
618 return new(memory) SelfType(allocator);
628 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
630 void* memory = allocator->Alloc(sizeof(SelfType));
633 return new(memory) SelfType(allocator);
709 //! @param[in] allocator アロケータです。
714 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
717 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
852 Signal1(void* elements, size_t maxSlots, AllocatorType* allocator)
853 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
855 explicit Signal1(AllocatorType* allocator)
856 : m_Allocator(allocator), m_Slots(allocator) {}
861 explicit Signal1(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}
893 explicit Slot2(AllocatorType* allocator) : m_Allocator(allocator) {}
898 AllocatorType* allocator = this->GetAllocator();
899 if (allocator)
902 allocator->Free(this);
907 void Destroy(AllocatorType* allocator)
909 NW_NULL_ASSERT(allocator);
911 allocator->Free(this);
948 FunctionSlot2(AllocatorType* allocator, FunctionType function)
949 : Slot2<TResult, TArg0, TArg1, TAllocator>(allocator), m_Function(function) {}
1008 //! @param[in] allocator アロケータです。
1010 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
1012 void* memory = allocator->Alloc(sizeof(SelfType));
1016 return new(memory) SelfType(NULL, 0, allocator);
1018 return new(memory) SelfType(allocator);
1030 //! @param[in] allocator アロケータです。
1032 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
1034 void* memory = allocator->Alloc(sizeof(SelfType));
1038 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
1041 return new(memory) SelfType(elements, maxSlots, allocator);
1045 allocator->Free(memory);
1050 return new(memory) SelfType(allocator);
1060 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
1062 void* memory = allocator->Alloc(sizeof(SelfType));
1065 return new(memory) SelfType(allocator);
1141 //! @param[in] allocator アロケータです。
1146 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
1149 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
1284 Signal2(void* elements, size_t maxSlots, AllocatorType* allocator)
1285 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
1287 explicit Signal2(AllocatorType* allocator)
1288 : m_Allocator(allocator), m_Slots(allocator) {}
1293 explicit Signal2(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}
1325 explicit Slot3(AllocatorType* allocator) : m_Allocator(allocator) {}
1330 AllocatorType* allocator = this->GetAllocator();
1331 if (allocator)
1334 allocator->Free(this);
1339 void Destroy(AllocatorType* allocator)
1341 NW_NULL_ASSERT(allocator);
1343 allocator->Free(this);
1380 FunctionSlot3(AllocatorType* allocator, FunctionType function)
1381 : Slot3<TResult, TArg0, TArg1, TArg2, TAllocator>(allocator), m_Function(function) {}
1441 //! @param[in] allocator アロケータです。
1443 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
1445 void* memory = allocator->Alloc(sizeof(SelfType));
1449 return new(memory) SelfType(NULL, 0, allocator);
1451 return new(memory) SelfType(allocator);
1463 //! @param[in] allocator アロケータです。
1465 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
1467 void* memory = allocator->Alloc(sizeof(SelfType));
1471 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
1474 return new(memory) SelfType(elements, maxSlots, allocator);
1478 allocator->Free(memory);
1483 return new(memory) SelfType(allocator);
1493 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
1495 void* memory = allocator->Alloc(sizeof(SelfType));
1498 return new(memory) SelfType(allocator);
1574 //! @param[in] allocator アロケータです。
1579 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
1582 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
1717 Signal3(void* elements, size_t maxSlots, AllocatorType* allocator)
1718 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
1720 explicit Signal3(AllocatorType* allocator)
1721 : m_Allocator(allocator), m_Slots(allocator) {}
1726 explicit Signal3(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}
1758 explicit Slot4(AllocatorType* allocator) : m_Allocator(allocator) {}
1763 AllocatorType* allocator = this->GetAllocator();
1764 if (allocator)
1767 allocator->Free(this);
1772 void Destroy(AllocatorType* allocator)
1774 NW_NULL_ASSERT(allocator);
1776 allocator->Free(this);
1813 FunctionSlot4(AllocatorType* allocator, FunctionType function)
1814 : Slot4<TResult, TArg0, TArg1, TArg2, TArg3, TAllocator>(allocator), m_Function(function) {}
1875 //! @param[in] allocator アロケータです。
1877 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
1879 void* memory = allocator->Alloc(sizeof(SelfType));
1883 return new(memory) SelfType(NULL, 0, allocator);
1885 return new(memory) SelfType(allocator);
1897 //! @param[in] allocator アロケータです。
1899 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
1901 void* memory = allocator->Alloc(sizeof(SelfType));
1905 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
1908 return new(memory) SelfType(elements, maxSlots, allocator);
1912 allocator->Free(memory);
1917 return new(memory) SelfType(allocator);
1927 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
1929 void* memory = allocator->Alloc(sizeof(SelfType));
1932 return new(memory) SelfType(allocator);
2008 //! @param[in] allocator アロケータです。
2013 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
2016 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
2151 Signal4(void* elements, size_t maxSlots, AllocatorType* allocator)
2152 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
2154 explicit Signal4(AllocatorType* allocator)
2155 : m_Allocator(allocator), m_Slots(allocator) {}
2160 explicit Signal4(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}
2192 explicit Slot5(AllocatorType* allocator) : m_Allocator(allocator) {}
2197 AllocatorType* allocator = this->GetAllocator();
2198 if (allocator)
2201 allocator->Free(this);
2206 void Destroy(AllocatorType* allocator)
2208 NW_NULL_ASSERT(allocator);
2210 allocator->Free(this);
2247 FunctionSlot5(AllocatorType* allocator, FunctionType function)
2248 …: Slot5<TResult, TArg0, TArg1, TArg2, TArg3, TArg4, TAllocator>(allocator), m_Function(function) {}
2310 //! @param[in] allocator アロケータです。
2312 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
2314 void* memory = allocator->Alloc(sizeof(SelfType));
2318 return new(memory) SelfType(NULL, 0, allocator);
2320 return new(memory) SelfType(allocator);
2332 //! @param[in] allocator アロケータです。
2334 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
2336 void* memory = allocator->Alloc(sizeof(SelfType));
2340 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
2343 return new(memory) SelfType(elements, maxSlots, allocator);
2347 allocator->Free(memory);
2352 return new(memory) SelfType(allocator);
2362 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
2364 void* memory = allocator->Alloc(sizeof(SelfType));
2367 return new(memory) SelfType(allocator);
2443 //! @param[in] allocator アロケータです。
2448 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
2451 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
2586 Signal5(void* elements, size_t maxSlots, AllocatorType* allocator)
2587 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
2589 explicit Signal5(AllocatorType* allocator)
2590 : m_Allocator(allocator), m_Slots(allocator) {}
2595 explicit Signal5(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}
2627 explicit Slot6(AllocatorType* allocator) : m_Allocator(allocator) {}
2632 AllocatorType* allocator = this->GetAllocator();
2633 if (allocator)
2636 allocator->Free(this);
2641 void Destroy(AllocatorType* allocator)
2643 NW_NULL_ASSERT(allocator);
2645 allocator->Free(this);
2682 FunctionSlot6(AllocatorType* allocator, FunctionType function)
2683 …: Slot6<TResult, TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TAllocator>(allocator), m_Function(func…
2746 //! @param[in] allocator アロケータです。
2748 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
2750 void* memory = allocator->Alloc(sizeof(SelfType));
2754 return new(memory) SelfType(NULL, 0, allocator);
2756 return new(memory) SelfType(allocator);
2768 //! @param[in] allocator アロケータです。
2770 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
2772 void* memory = allocator->Alloc(sizeof(SelfType));
2776 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
2779 return new(memory) SelfType(elements, maxSlots, allocator);
2783 allocator->Free(memory);
2788 return new(memory) SelfType(allocator);
2798 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
2800 void* memory = allocator->Alloc(sizeof(SelfType));
2803 return new(memory) SelfType(allocator);
2879 //! @param[in] allocator アロケータです。
2884 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
2887 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
3022 Signal6(void* elements, size_t maxSlots, AllocatorType* allocator)
3023 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
3025 explicit Signal6(AllocatorType* allocator)
3026 : m_Allocator(allocator), m_Slots(allocator) {}
3031 explicit Signal6(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}
3063 explicit Slot7(AllocatorType* allocator) : m_Allocator(allocator) {}
3068 AllocatorType* allocator = this->GetAllocator();
3069 if (allocator)
3072 allocator->Free(this);
3077 void Destroy(AllocatorType* allocator)
3079 NW_NULL_ASSERT(allocator);
3081 allocator->Free(this);
3118 FunctionSlot7(AllocatorType* allocator, FunctionType function)
3119 …: Slot7<TResult, TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TAllocator>(allocator), m_Functi…
3183 //! @param[in] allocator アロケータです。
3185 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
3187 void* memory = allocator->Alloc(sizeof(SelfType));
3191 return new(memory) SelfType(NULL, 0, allocator);
3193 return new(memory) SelfType(allocator);
3205 //! @param[in] allocator アロケータです。
3207 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
3209 void* memory = allocator->Alloc(sizeof(SelfType));
3213 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
3216 return new(memory) SelfType(elements, maxSlots, allocator);
3220 allocator->Free(memory);
3225 return new(memory) SelfType(allocator);
3235 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
3237 void* memory = allocator->Alloc(sizeof(SelfType));
3240 return new(memory) SelfType(allocator);
3316 //! @param[in] allocator アロケータです。
3321 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
3324 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
3459 Signal7(void* elements, size_t maxSlots, AllocatorType* allocator)
3460 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
3462 explicit Signal7(AllocatorType* allocator)
3463 : m_Allocator(allocator), m_Slots(allocator) {}
3468 explicit Signal7(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}
3500 explicit Slot8(AllocatorType* allocator) : m_Allocator(allocator) {}
3505 AllocatorType* allocator = this->GetAllocator();
3506 if (allocator)
3509 allocator->Free(this);
3514 void Destroy(AllocatorType* allocator)
3516 NW_NULL_ASSERT(allocator);
3518 allocator->Free(this);
3555 FunctionSlot8(AllocatorType* allocator, FunctionType function)
3556 …: Slot8<TResult, TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TAllocator>(allocator), m…
3621 //! @param[in] allocator アロケータです。
3623 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
3625 void* memory = allocator->Alloc(sizeof(SelfType));
3629 return new(memory) SelfType(NULL, 0, allocator);
3631 return new(memory) SelfType(allocator);
3643 //! @param[in] allocator アロケータです。
3645 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
3647 void* memory = allocator->Alloc(sizeof(SelfType));
3651 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
3654 return new(memory) SelfType(elements, maxSlots, allocator);
3658 allocator->Free(memory);
3663 return new(memory) SelfType(allocator);
3673 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
3675 void* memory = allocator->Alloc(sizeof(SelfType));
3678 return new(memory) SelfType(allocator);
3754 //! @param[in] allocator アロケータです。
3759 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
3762 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
3897 Signal8(void* elements, size_t maxSlots, AllocatorType* allocator)
3898 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
3900 explicit Signal8(AllocatorType* allocator)
3901 : m_Allocator(allocator), m_Slots(allocator) {}
3906 explicit Signal8(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}
3938 explicit Slot9(AllocatorType* allocator) : m_Allocator(allocator) {}
3943 AllocatorType* allocator = this->GetAllocator();
3944 if (allocator)
3947 allocator->Free(this);
3952 void Destroy(AllocatorType* allocator)
3954 NW_NULL_ASSERT(allocator);
3956 allocator->Free(this);
3993 FunctionSlot9(AllocatorType* allocator, FunctionType function)
3994 …g0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TAllocator>(allocator), m_Function(fun…
4060 //! @param[in] allocator アロケータです。
4062 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
4064 void* memory = allocator->Alloc(sizeof(SelfType));
4068 return new(memory) SelfType(NULL, 0, allocator);
4070 return new(memory) SelfType(allocator);
4082 //! @param[in] allocator アロケータです。
4084 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
4086 void* memory = allocator->Alloc(sizeof(SelfType));
4090 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
4093 return new(memory) SelfType(elements, maxSlots, allocator);
4097 allocator->Free(memory);
4102 return new(memory) SelfType(allocator);
4112 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
4114 void* memory = allocator->Alloc(sizeof(SelfType));
4117 return new(memory) SelfType(allocator);
4193 //! @param[in] allocator アロケータです。
4198 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
4201 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
4336 Signal9(void* elements, size_t maxSlots, AllocatorType* allocator)
4337 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
4339 explicit Signal9(AllocatorType* allocator)
4340 : m_Allocator(allocator), m_Slots(allocator) {}
4345 explicit Signal9(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}
4377 explicit Slot10(AllocatorType* allocator) : m_Allocator(allocator) {}
4382 AllocatorType* allocator = this->GetAllocator();
4383 if (allocator)
4386 allocator->Free(this);
4391 void Destroy(AllocatorType* allocator)
4393 NW_NULL_ASSERT(allocator);
4395 allocator->Free(this);
4432 FunctionSlot10(AllocatorType* allocator, FunctionType function)
4433 …g1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TAllocator>(allocator), m_Function(fun…
4500 //! @param[in] allocator アロケータです。
4502 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
4504 void* memory = allocator->Alloc(sizeof(SelfType));
4508 return new(memory) SelfType(NULL, 0, allocator);
4510 return new(memory) SelfType(allocator);
4522 //! @param[in] allocator アロケータです。
4524 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
4526 void* memory = allocator->Alloc(sizeof(SelfType));
4530 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
4533 return new(memory) SelfType(elements, maxSlots, allocator);
4537 allocator->Free(memory);
4542 return new(memory) SelfType(allocator);
4552 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
4554 void* memory = allocator->Alloc(sizeof(SelfType));
4557 return new(memory) SelfType(allocator);
4633 //! @param[in] allocator アロケータです。
4638 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
4641 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
4776 Signal10(void* elements, size_t maxSlots, AllocatorType* allocator)
4777 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
4779 explicit Signal10(AllocatorType* allocator)
4780 : m_Allocator(allocator), m_Slots(allocator) {}
4785 explicit Signal10(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}