In file PlotSet/DataDesc.hh:

class DataCopy : public DataDescriptor

Object for storing plotting data

Inheritance:


Public Methods

DataCopy ()
Default constructor.
DataCopy (const BasicDataDescriptor& dat, int n1 = 0, int len = -1, int bin = 1)
Copy Constructor.
DataCopy (float* x, float* y, int& n, bool cmplx = false)
Constructor.
DataCopy (float x0, float dx, float* y, int& n, bool cmplx = false)
Constructor.
virtual ~DataCopy ()
Destructor.
virtual bool SetData (float* x, float* y, int& n, bool cmplx = false)
Set data method.
virtual bool SetData (float x0, float dx, float* y, int& n, bool cmplx = false)
Set data method.
virtual bool UnsetXY ()
Unset XY method.

Inherited from DataDescriptor:

Public Methods

virtual bool IsXY() const
virtual float GetDX() const
virtual int GetN() const
virtual int& GetNRef() const
virtual float* GetX() const
virtual float* GetY() const

Protected Fields

bool fXYData
float fdX
float fX0
float* fX
float* fY
int* fN

Inherited from BasicDataDescriptor:

Public Methods

virtual bool IsComplex() const
virtual void SetComplex(bool cmplx)
virtual bool IsDirty() const
virtual void SetDirty(bool set = true) const
virtual bool IsPersistent() const
virtual void SetPersistent(bool set = true)
virtual bool IsCalculated() const
virtual void SetCalculated(bool set = true)
virtual bool IsMarked() const
virtual void SetMarked(bool set = true) const
virtual float* GetEX() const
virtual float* GetEXhigh() const
virtual float* GetEY() const
virtual float* GetEYhigh() const
virtual bool EraseData()
virtual double* GetXBinEdges() const
virtual double* GetBinContents() const
virtual double* GetBinErrors() const
virtual const char* GetXLabel() const
virtual const char* GetNLabel() const
virtual int GetNEntries() const
virtual double* GetStats() const

Protected Fields

bool fComplexData
mutable bool fDirty
bool fPersistent
bool fCalculated
mutable bool fMarked

Documentation

This data descriptor implements access to data by making a copy of the data arrays specified in the constructor. The original data can be reused. A user can supply either an X and Y array, or a start X, a delta X and a Y array.

DataCopy()
Constructs a data descriptor without data.
Returns:
void

DataCopy(const BasicDataDescriptor& dat, int n1 = 0, int len = -1, int bin = 1)
Constructs a data descriptor from an other one. Optionally selects a subrange and bins the data
Returns:
void
Parameters:
dat - Basic data descriptor
n1 - Subrange start index
n2 - Subrange length (-1 for all)
bin - binning

DataCopy(float* x, float* y, int& n, bool cmplx = false)
Constructs a data descriptor by providing pointer to an x array, a y array and the array length. The data is copied into local arrays.
Returns:
void
Parameters:
x - Pointer to X array
y - Pointer to Y array
n - Reference to array length
cmplx - true if data is complex

DataCopy(float x0, float dx, float* y, int& n, bool cmplx = false)
Constructs a data descriptor by providing a start and delta for the x data, a pointer to a y array and the array length. The data is copied into local arrays.
Returns:
void
Parameters:
x0 - First X value
dx - X array spacing
y - Pointer to Y array
n - Reference to array length
cmplx - true if data is complex

virtual ~DataCopy()
Destructs the data descriptor.
Returns:
void

virtual bool SetData(float* x, float* y, int& n, bool cmplx = false)
Sets a new data for descriptor by providing pointer to an x array, a y array and the array length. The old data is freed and the new data is copied into local arrays.
Returns:
void
Parameters:
x - Pointer to X array
y - Pointer to Y array
n - Reference to array length
cmplx - true if data is complex

virtual bool SetData(float x0, float dx, float* y, int& n, bool cmplx = false)
Sets a new data for descriptor by providing a start and delta for the x data, a pointer to a y array and the array length. The old data is freed and the new data is copied into local arrays.
Returns:
void
Parameters:
x0 - First X value
dx - X array spacing
y - Pointer to Y array
n - Reference to array length
cmplx - true if data is complex

virtual bool UnsetXY()
Checks if a XY data copy can be represented as (x0,dx,Y).
Returns:
true if changed


This class has no child classes.
Author:
Written November 1999 by Daniel Sigg
Version:
1.0

alphabetic index hierarchy of classes


Please send questions and comments to zweizig_j@ligo.caltech.edu


generated by doc++