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);
255 //! @param[in] allocator アロケータです。
260 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
263 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
398 Signal0(void* elements, size_t maxSlots, AllocatorType* allocator)
399 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
401 explicit Signal0(AllocatorType* allocator)
402 : m_Allocator(allocator), m_Slots(allocator) {}
407 explicit Signal0(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}
439 explicit Slot1(AllocatorType* allocator) : m_Allocator(allocator) {}
444 AllocatorType* allocator = this->GetAllocator();
445 if (allocator)
448 allocator->Free(this);
453 void Destroy(AllocatorType* allocator)
455 NW_NULL_ASSERT(allocator);
457 allocator->Free(this);
494 FunctionSlot1(AllocatorType* allocator, FunctionType function)
495 : Slot1<TResult, TArg0, TAllocator>(allocator), m_Function(function) {}
553 //! @param[in] allocator アロケータです。
555 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
557 void* memory = allocator->Alloc(sizeof(SelfType));
561 return new(memory) SelfType(NULL, 0, allocator);
563 return new(memory) SelfType(allocator);
575 //! @param[in] allocator アロケータです。
577 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
579 void* memory = allocator->Alloc(sizeof(SelfType));
583 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
586 return new(memory) SelfType(elements, maxSlots, allocator);
590 allocator->Free(memory);
595 return new(memory) SelfType(allocator);
605 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
607 void* memory = allocator->Alloc(sizeof(SelfType));
610 return new(memory) SelfType(allocator);
663 //! @param[in] allocator アロケータです。
668 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
671 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
806 Signal1(void* elements, size_t maxSlots, AllocatorType* allocator)
807 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
809 explicit Signal1(AllocatorType* allocator)
810 : m_Allocator(allocator), m_Slots(allocator) {}
815 explicit Signal1(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}
847 explicit Slot2(AllocatorType* allocator) : m_Allocator(allocator) {}
852 AllocatorType* allocator = this->GetAllocator();
853 if (allocator)
856 allocator->Free(this);
861 void Destroy(AllocatorType* allocator)
863 NW_NULL_ASSERT(allocator);
865 allocator->Free(this);
902 FunctionSlot2(AllocatorType* allocator, FunctionType function)
903 : Slot2<TResult, TArg0, TArg1, TAllocator>(allocator), m_Function(function) {}
962 //! @param[in] allocator アロケータです。
964 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
966 void* memory = allocator->Alloc(sizeof(SelfType));
970 return new(memory) SelfType(NULL, 0, allocator);
972 return new(memory) SelfType(allocator);
984 //! @param[in] allocator アロケータです。
986 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
988 void* memory = allocator->Alloc(sizeof(SelfType));
992 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
995 return new(memory) SelfType(elements, maxSlots, allocator);
999 allocator->Free(memory);
1004 return new(memory) SelfType(allocator);
1014 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
1016 void* memory = allocator->Alloc(sizeof(SelfType));
1019 return new(memory) SelfType(allocator);
1072 //! @param[in] allocator アロケータです。
1077 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
1080 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
1215 Signal2(void* elements, size_t maxSlots, AllocatorType* allocator)
1216 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
1218 explicit Signal2(AllocatorType* allocator)
1219 : m_Allocator(allocator), m_Slots(allocator) {}
1224 explicit Signal2(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}
1256 explicit Slot3(AllocatorType* allocator) : m_Allocator(allocator) {}
1261 AllocatorType* allocator = this->GetAllocator();
1262 if (allocator)
1265 allocator->Free(this);
1270 void Destroy(AllocatorType* allocator)
1272 NW_NULL_ASSERT(allocator);
1274 allocator->Free(this);
1311 FunctionSlot3(AllocatorType* allocator, FunctionType function)
1312 : Slot3<TResult, TArg0, TArg1, TArg2, TAllocator>(allocator), m_Function(function) {}
1372 //! @param[in] allocator アロケータです。
1374 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
1376 void* memory = allocator->Alloc(sizeof(SelfType));
1380 return new(memory) SelfType(NULL, 0, allocator);
1382 return new(memory) SelfType(allocator);
1394 //! @param[in] allocator アロケータです。
1396 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
1398 void* memory = allocator->Alloc(sizeof(SelfType));
1402 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
1405 return new(memory) SelfType(elements, maxSlots, allocator);
1409 allocator->Free(memory);
1414 return new(memory) SelfType(allocator);
1424 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
1426 void* memory = allocator->Alloc(sizeof(SelfType));
1429 return new(memory) SelfType(allocator);
1482 //! @param[in] allocator アロケータです。
1487 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
1490 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
1625 Signal3(void* elements, size_t maxSlots, AllocatorType* allocator)
1626 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
1628 explicit Signal3(AllocatorType* allocator)
1629 : m_Allocator(allocator), m_Slots(allocator) {}
1634 explicit Signal3(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}
1666 explicit Slot4(AllocatorType* allocator) : m_Allocator(allocator) {}
1671 AllocatorType* allocator = this->GetAllocator();
1672 if (allocator)
1675 allocator->Free(this);
1680 void Destroy(AllocatorType* allocator)
1682 NW_NULL_ASSERT(allocator);
1684 allocator->Free(this);
1721 FunctionSlot4(AllocatorType* allocator, FunctionType function)
1722 : Slot4<TResult, TArg0, TArg1, TArg2, TArg3, TAllocator>(allocator), m_Function(function) {}
1783 //! @param[in] allocator アロケータです。
1785 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
1787 void* memory = allocator->Alloc(sizeof(SelfType));
1791 return new(memory) SelfType(NULL, 0, allocator);
1793 return new(memory) SelfType(allocator);
1805 //! @param[in] allocator アロケータです。
1807 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
1809 void* memory = allocator->Alloc(sizeof(SelfType));
1813 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
1816 return new(memory) SelfType(elements, maxSlots, allocator);
1820 allocator->Free(memory);
1825 return new(memory) SelfType(allocator);
1835 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
1837 void* memory = allocator->Alloc(sizeof(SelfType));
1840 return new(memory) SelfType(allocator);
1893 //! @param[in] allocator アロケータです。
1898 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
1901 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
2036 Signal4(void* elements, size_t maxSlots, AllocatorType* allocator)
2037 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
2039 explicit Signal4(AllocatorType* allocator)
2040 : m_Allocator(allocator), m_Slots(allocator) {}
2045 explicit Signal4(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}
2077 explicit Slot5(AllocatorType* allocator) : m_Allocator(allocator) {}
2082 AllocatorType* allocator = this->GetAllocator();
2083 if (allocator)
2086 allocator->Free(this);
2091 void Destroy(AllocatorType* allocator)
2093 NW_NULL_ASSERT(allocator);
2095 allocator->Free(this);
2132 FunctionSlot5(AllocatorType* allocator, FunctionType function)
2133 …: Slot5<TResult, TArg0, TArg1, TArg2, TArg3, TArg4, TAllocator>(allocator), m_Function(function) {}
2195 //! @param[in] allocator アロケータです。
2197 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
2199 void* memory = allocator->Alloc(sizeof(SelfType));
2203 return new(memory) SelfType(NULL, 0, allocator);
2205 return new(memory) SelfType(allocator);
2217 //! @param[in] allocator アロケータです。
2219 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
2221 void* memory = allocator->Alloc(sizeof(SelfType));
2225 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
2228 return new(memory) SelfType(elements, maxSlots, allocator);
2232 allocator->Free(memory);
2237 return new(memory) SelfType(allocator);
2247 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
2249 void* memory = allocator->Alloc(sizeof(SelfType));
2252 return new(memory) SelfType(allocator);
2305 //! @param[in] allocator アロケータです。
2310 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
2313 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
2448 Signal5(void* elements, size_t maxSlots, AllocatorType* allocator)
2449 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
2451 explicit Signal5(AllocatorType* allocator)
2452 : m_Allocator(allocator), m_Slots(allocator) {}
2457 explicit Signal5(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}
2489 explicit Slot6(AllocatorType* allocator) : m_Allocator(allocator) {}
2494 AllocatorType* allocator = this->GetAllocator();
2495 if (allocator)
2498 allocator->Free(this);
2503 void Destroy(AllocatorType* allocator)
2505 NW_NULL_ASSERT(allocator);
2507 allocator->Free(this);
2544 FunctionSlot6(AllocatorType* allocator, FunctionType function)
2545 …: Slot6<TResult, TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TAllocator>(allocator), m_Function(func…
2608 //! @param[in] allocator アロケータです。
2610 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
2612 void* memory = allocator->Alloc(sizeof(SelfType));
2616 return new(memory) SelfType(NULL, 0, allocator);
2618 return new(memory) SelfType(allocator);
2630 //! @param[in] allocator アロケータです。
2632 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
2634 void* memory = allocator->Alloc(sizeof(SelfType));
2638 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
2641 return new(memory) SelfType(elements, maxSlots, allocator);
2645 allocator->Free(memory);
2650 return new(memory) SelfType(allocator);
2660 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
2662 void* memory = allocator->Alloc(sizeof(SelfType));
2665 return new(memory) SelfType(allocator);
2718 //! @param[in] allocator アロケータです。
2723 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
2726 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
2861 Signal6(void* elements, size_t maxSlots, AllocatorType* allocator)
2862 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
2864 explicit Signal6(AllocatorType* allocator)
2865 : m_Allocator(allocator), m_Slots(allocator) {}
2870 explicit Signal6(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}
2902 explicit Slot7(AllocatorType* allocator) : m_Allocator(allocator) {}
2907 AllocatorType* allocator = this->GetAllocator();
2908 if (allocator)
2911 allocator->Free(this);
2916 void Destroy(AllocatorType* allocator)
2918 NW_NULL_ASSERT(allocator);
2920 allocator->Free(this);
2957 FunctionSlot7(AllocatorType* allocator, FunctionType function)
2958 …: Slot7<TResult, TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TAllocator>(allocator), m_Functi…
3022 //! @param[in] allocator アロケータです。
3024 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
3026 void* memory = allocator->Alloc(sizeof(SelfType));
3030 return new(memory) SelfType(NULL, 0, allocator);
3032 return new(memory) SelfType(allocator);
3044 //! @param[in] allocator アロケータです。
3046 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
3048 void* memory = allocator->Alloc(sizeof(SelfType));
3052 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
3055 return new(memory) SelfType(elements, maxSlots, allocator);
3059 allocator->Free(memory);
3064 return new(memory) SelfType(allocator);
3074 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
3076 void* memory = allocator->Alloc(sizeof(SelfType));
3079 return new(memory) SelfType(allocator);
3132 //! @param[in] allocator アロケータです。
3137 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
3140 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
3275 Signal7(void* elements, size_t maxSlots, AllocatorType* allocator)
3276 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
3278 explicit Signal7(AllocatorType* allocator)
3279 : m_Allocator(allocator), m_Slots(allocator) {}
3284 explicit Signal7(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}
3316 explicit Slot8(AllocatorType* allocator) : m_Allocator(allocator) {}
3321 AllocatorType* allocator = this->GetAllocator();
3322 if (allocator)
3325 allocator->Free(this);
3330 void Destroy(AllocatorType* allocator)
3332 NW_NULL_ASSERT(allocator);
3334 allocator->Free(this);
3371 FunctionSlot8(AllocatorType* allocator, FunctionType function)
3372 …: Slot8<TResult, TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TAllocator>(allocator), m…
3437 //! @param[in] allocator アロケータです。
3439 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
3441 void* memory = allocator->Alloc(sizeof(SelfType));
3445 return new(memory) SelfType(NULL, 0, allocator);
3447 return new(memory) SelfType(allocator);
3459 //! @param[in] allocator アロケータです。
3461 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
3463 void* memory = allocator->Alloc(sizeof(SelfType));
3467 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
3470 return new(memory) SelfType(elements, maxSlots, allocator);
3474 allocator->Free(memory);
3479 return new(memory) SelfType(allocator);
3489 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
3491 void* memory = allocator->Alloc(sizeof(SelfType));
3494 return new(memory) SelfType(allocator);
3547 //! @param[in] allocator アロケータです。
3552 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
3555 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
3690 Signal8(void* elements, size_t maxSlots, AllocatorType* allocator)
3691 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
3693 explicit Signal8(AllocatorType* allocator)
3694 : m_Allocator(allocator), m_Slots(allocator) {}
3699 explicit Signal8(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}
3731 explicit Slot9(AllocatorType* allocator) : m_Allocator(allocator) {}
3736 AllocatorType* allocator = this->GetAllocator();
3737 if (allocator)
3740 allocator->Free(this);
3745 void Destroy(AllocatorType* allocator)
3747 NW_NULL_ASSERT(allocator);
3749 allocator->Free(this);
3786 FunctionSlot9(AllocatorType* allocator, FunctionType function)
3787 …g0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TAllocator>(allocator), m_Function(fun…
3853 //! @param[in] allocator アロケータです。
3855 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
3857 void* memory = allocator->Alloc(sizeof(SelfType));
3861 return new(memory) SelfType(NULL, 0, allocator);
3863 return new(memory) SelfType(allocator);
3875 //! @param[in] allocator アロケータです。
3877 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
3879 void* memory = allocator->Alloc(sizeof(SelfType));
3883 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
3886 return new(memory) SelfType(elements, maxSlots, allocator);
3890 allocator->Free(memory);
3895 return new(memory) SelfType(allocator);
3905 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
3907 void* memory = allocator->Alloc(sizeof(SelfType));
3910 return new(memory) SelfType(allocator);
3963 //! @param[in] allocator アロケータです。
3968 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
3971 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
4106 Signal9(void* elements, size_t maxSlots, AllocatorType* allocator)
4107 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
4109 explicit Signal9(AllocatorType* allocator)
4110 : m_Allocator(allocator), m_Slots(allocator) {}
4115 explicit Signal9(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}
4147 explicit Slot10(AllocatorType* allocator) : m_Allocator(allocator) {}
4152 AllocatorType* allocator = this->GetAllocator();
4153 if (allocator)
4156 allocator->Free(this);
4161 void Destroy(AllocatorType* allocator)
4163 NW_NULL_ASSERT(allocator);
4165 allocator->Free(this);
4202 FunctionSlot10(AllocatorType* allocator, FunctionType function)
4203 …g1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TAllocator>(allocator), m_Function(fun…
4270 //! @param[in] allocator アロケータです。
4272 static SelfType* CreateInvalidateSignal(AllocatorType* allocator)
4274 void* memory = allocator->Alloc(sizeof(SelfType));
4278 return new(memory) SelfType(NULL, 0, allocator);
4280 return new(memory) SelfType(allocator);
4292 //! @param[in] allocator アロケータです。
4294 static SelfType* CreateFixedSizedSignal(size_t maxSlots, AllocatorType* allocator)
4296 void* memory = allocator->Alloc(sizeof(SelfType));
4300 void* elements = allocator->Alloc(sizeof(SlotType*) * maxSlots);
4303 return new(memory) SelfType(elements, maxSlots, allocator);
4307 allocator->Free(memory);
4312 return new(memory) SelfType(allocator);
4322 static SelfType* CreateVariableSizeSignal(AllocatorType* allocator)
4324 void* memory = allocator->Alloc(sizeof(SelfType));
4327 return new(memory) SelfType(allocator);
4380 //! @param[in] allocator アロケータです。
4385 SlotType* CreateAndConnect(TFunction function, AllocatorType* allocator)
4388 FunctionSlotType* slot = CreateSlot<FunctionSlotType>(allocator, function);
4523 Signal10(void* elements, size_t maxSlots, AllocatorType* allocator)
4524 : m_Allocator(allocator), m_Slots(elements, maxSlots, allocator) {}
4526 explicit Signal10(AllocatorType* allocator)
4527 : m_Allocator(allocator), m_Slots(allocator) {}
4532 explicit Signal10(AllocatorType* allocator) : m_Allocator(allocator), m_Slot(NULL) {}