![]()  | 
  
    BornAgain
    1.19.79
    
   Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering 
   | 
 
Holds one or two axes.
Public Member Functions | |
| Frame (const std::vector< IAxis * > &axes) | |
| Constructor that takes ownership of supplied axes.  More... | |
| virtual | ~Frame () | 
| std::vector< int > | allIndices (size_t i_flat) const | 
| Returns vector of axes indices for given global index.  More... | |
| const IAxis & | axis (size_t k_axis) const | 
| Returns axis with given serial number.  More... | |
| std::vector< IAxis * > | cloned_axes () const | 
| Returns cloned axes.  More... | |
| bool | hasSameSizes (const Frame &) const | 
| Returns true if both Frames have same rank, and all axes have same sizes.  More... | |
| bool | operator== (const Frame &) const | 
| Returns true if both Frames have same rank, and all axes are equal.  More... | |
| double | projectedCoord (size_t i_flat, size_t k_axis) const | 
| Returns the value of selected axis for given i_flat.  More... | |
| size_t | projectedIndex (size_t i_flat, size_t k_axis) const | 
| Returns axis bin index for given global index.  More... | |
| size_t | projectedSize (size_t k_axis) const | 
| Returns number of bins along axis.  More... | |
| size_t | rank () const | 
| Returns number of dimensions.  More... | |
| size_t | size () const | 
| Returns total number of bins.  More... | |
| size_t | toGlobalIndex (const std::vector< unsigned > &axes_indices) const | 
| Returns global index for specified indices of axes.  More... | |
| const IAxis & | xAxis () const | 
| const IAxis & | yAxis () const | 
Protected Attributes | |
| OwningVector< IAxis > | m_axes | 
| Frame::Frame | ( | const std::vector< IAxis * > & | axes | ) | 
Constructor that takes ownership of supplied axes.
      
  | 
  virtual | 
| std::vector<int> Frame::allIndices | ( | size_t | i_flat | ) | const | 
Returns vector of axes indices for given global index.
| i_flat | The global index of this data structure. | 
| const IAxis& Frame::axis | ( | size_t | k_axis | ) | const | 
Returns axis with given serial number.
| std::vector<IAxis*> Frame::cloned_axes | ( | ) | const | 
Returns cloned axes.
| bool Frame::hasSameSizes | ( | const Frame & | ) | const | 
Returns true if both Frames have same rank, and all axes have same sizes.
| bool Frame::operator== | ( | const Frame & | ) | const | 
Returns true if both Frames have same rank, and all axes are equal.
| double Frame::projectedCoord | ( | size_t | i_flat, | 
| size_t | k_axis | ||
| ) | const | 
Returns the value of selected axis for given i_flat.
| i_flat | The global index of this data structure. | 
| k_axis | Serial number of selected axis. | 
| size_t Frame::projectedIndex | ( | size_t | i_flat, | 
| size_t | k_axis | ||
| ) | const | 
Returns axis bin index for given global index.
| i_flat | The global index of this data structure. | 
| k_axis | Serial number of selected axis. | 
| size_t Frame::projectedSize | ( | size_t | k_axis | ) | const | 
Returns number of bins along axis.
| size_t Frame::rank | ( | ) | const | 
Returns number of dimensions.
| size_t Frame::size | ( | ) | const | 
Returns total number of bins.
| size_t Frame::toGlobalIndex | ( | const std::vector< unsigned > & | axes_indices | ) | const | 
Returns global index for specified indices of axes.
| axes_indices | Vector of axes indices for all specified axes in this dataset | 
| const IAxis& Frame::xAxis | ( | ) | const | 
| const IAxis& Frame::yAxis | ( | ) | const | 
      
  | 
  protected |