class DataRefCount : public DataDescriptor Object for storing referenced plotting data
| | fRefCount Reference count |
| | fNN Number of rows |
| | fM Number of columns |
This data descriptor stores a data matrix---either m x n or (m + 1) x n (x-axis incluced). In general it is accessed through a DataRef descriptor. The supplied data matrix is adopted by the descriptor. It also keeps a reference count. Other data descriptors can refere to the data of this descriptor by increasing the ref count and They have to decrease the ref count when they no longer use the data. When the refernce count reaches zero, the object will automatically delete itslef. Since this object destructs itself it MUST NEVER be defined as a static object.
int fNN
int fM
DataRefCount()
DataRefCount(float* dat, int n, int m = 1, bool cmplx = false)
n - Reference to array length
m - Number of Y arrays
cmplx - true if data is complex
DataRefCount(float x0, float dx, float* dat, int n, int m = 1, bool cmplx = false)
dx - X array spacing
y - Pointer to Y array
n - Reference to array length
cmplx - true if data is complex
virtual ~DataRefCount()
virtual int GetM() const
virtual void AddRef()
virtual void RemoveRef()
virtual float* GetY() const
virtual float* GetY(int i) const
alphabetic index hierarchy of classes
Please send questions and comments to zweizig_j@ligo.caltech.edu
generated by doc++