| 31 | } |
| 32 | |
| 33 | inline void allocate (const Allocator& inAllocator, |
| 34 | uint32_t inDimension) |
| 35 | { |
| 36 | mStorage = inAllocator.allocateArray<double, |
| 37 | dbal::AggregateContext, |
| 38 | dbal::DoZero, |
| 39 | dbal::ThrowBadAlloc>( |
| 40 | arraySize(inDimension)); |
| 41 | dimension.rebind(&mStorage[0]); |
| 42 | dimension = inDimension; |
| 43 | rebind(); |
| 44 | } |
| 45 | |
| 46 | template <class OtherHandle> |
| 47 | ScalesState& operator= (const ScalesState<OtherHandle>& inOtherState) |