SpinParser  1.0
Public Member Functions | Public Attributes | List of all members
XYZVertexSingleParticle Struct Reference

Single-particle vertex implementation for models with diagonal interactions. More...

#include <XYZVertexSingleParticle.hpp>

Public Member Functions

 XYZVertexSingleParticle ()
 Construct a new XYZVertexSingleParticle object and initialize all values to zero.
 
 ~XYZVertexSingleParticle ()
 Destroy the XYZVertexSingleParticle object.
 
void expandIterator (const int iterator, float &w) const
 Expand a linear iterator in the range [0,TriVertexSingleParticle::size). More...
 
float & getValueRef (const int iterator) const
 Directly access a vertex value by reference via a linear iterator in the range [0,XYZVertexSingleParticle::size). More...
 
float getValue (float w) const
 Access vertex value at arbitrary frequency value by performing a linear interpolation on the FrequencyDiscretization. More...
 
float & _directAccess (const int wOffset) const
 Access vertex value at given frequency mesh point. More...
 

Public Attributes

int size
 Total number of vertex elements.
 
float * _data
 Vertex data.
 

Detailed Description

Single-particle vertex implementation for models with diagonal interactions.

Member Function Documentation

◆ _directAccess()

float& XYZVertexSingleParticle::_directAccess ( const int  wOffset) const
inline

Access vertex value at given frequency mesh point.

Parameters
wOffsetLinear offset on the frequency mesh.
Returns
float& Vertex value.

◆ expandIterator()

void XYZVertexSingleParticle::expandIterator ( const int  iterator,
float &  w 
) const
inline

Expand a linear iterator in the range [0,TriVertexSingleParticle::size).

Parameters
[in]iteratorIterator to expand.
[out]wFrequency argument described by the iterator.

◆ getValue()

float XYZVertexSingleParticle::getValue ( float  w) const
inline

Access vertex value at arbitrary frequency value by performing a linear interpolation on the FrequencyDiscretization.

Parameters
wFrequency argument.
Returns
float Vertex value.

◆ getValueRef()

float& XYZVertexSingleParticle::getValueRef ( const int  iterator) const
inline

Directly access a vertex value by reference via a linear iterator in the range [0,XYZVertexSingleParticle::size).

Parameters
iteratorLinear iterator.
Returns
float& Vertex value.

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