|
lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
|
Fixed array of MaxRank uint32_t dimensions. More...
#include <ShapesData.hh>
Public Member Functions | |
| Shape (uint32_t shape[MaxRank]) | |
| Copy MaxRank entries from shape. | |
| unsigned | num_elements (unsigned rank) |
| Return the product of the first rank dimensions (1 when rank is 0). | |
| unsigned | size (Name &name) |
| Return num_elements(name.rank()) * Name::get_element_size(name.type()), a size in bytes. | |
| uint32_t * | shape () |
| Return a pointer to the dimension array. | |
Fixed array of MaxRank uint32_t dimensions.
|
inline |
Copy MaxRank entries from shape.
Return the product of the first rank dimensions (1 when rank is 0).
|
inline |
Return a pointer to the dimension array.
Return num_elements(name.rank()) * Name::get_element_size(name.type()), a size in bytes.