* Return the total number of elements allocated, equivalent to multiply all the components from getSize(). * E.g., for a Array of size = {2,5,3}, the volume or total number of elements is: 2x5x3 = 30. * @return The total volume of the allocated data. If no memory is allocated, it returns 0. */
| 270 | * @return The total volume of the allocated data. If no memory is allocated, it returns 0. |
| 271 | */ |
| 272 | inline size_t getVolume() const |
| 273 | { |
| 274 | return mVolume; |
| 275 | } |
| 276 | |
| 277 | /** |
| 278 | * Similar to getVolume(), but in this case it just returns the volume between the desired dimensions. |