lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
XtcData::Shape Class Reference

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.
 

Detailed Description

Fixed array of MaxRank uint32_t dimensions.

Constructor & Destructor Documentation

◆ Shape()

XtcData::Shape::Shape ( uint32_t  shape[MaxRank])
inline

Copy MaxRank entries from shape.

Member Function Documentation

◆ num_elements()

unsigned XtcData::Shape::num_elements ( unsigned  rank)
inline

Return the product of the first rank dimensions (1 when rank is 0).

◆ shape()

uint32_t * XtcData::Shape::shape ( )
inline

Return a pointer to the dimension array.

◆ size()

unsigned XtcData::Shape::size ( Name &  name)
inline

Return num_elements(name.rank()) * Name::get_element_size(name.type()), a size in bytes.


The documentation for this class was generated from the following file: