Area

A class that stores the data for a particular area.

[ verification_docs | Source | Implementation | Keywords | Summary | Ancestors | All Members | Descendants ]

Quick Index

DESCRIPTION
AUTHOR

Class Summary

class Area

{

public:
Area(const string& s, const Date& d, const vector< vector<float> >& v, const vector<string>& sn);
Area(const Area& g);
~Area();
void showArea();
void addPoint(const int& i, const float & f) ;
string getAreaName() const ;
string getSubAreaName(const int& i) const ;
int getSubAreaSize(const int& i) const ;
int getSubAreaCount() const ;
void getAreaPoints( vector<float>& v ) const;
const Date getAreaDate() const ;
const vector<float>& getSubAreaPoints(const int& subArea) const ;
float getPoint(const int& subArea, const int& point) const ;
int getAreaSize() const;
float getAreaAvg() const;
float getSubAreaAvg(const int& i) const;
Area & operator=(const Area& rhs);
protected:
private:
string _areaName;
Date _areaDate;
vector< vector<float> > _thisArea;
vector<string> _subAreaNames;
}; // Area


DESCRIPTION

A class that stores the data for a particular area. The motivation for this class is to attach a name and date to a vector of data points. This is important for later identification and comparison.


AUTHOR

Mike Smoot


string _areaName;

The name of the Area.

		string _areaName;

Date _areaDate;

The date assigned to the Area.

		Date _areaDate;

vector< vector<float> > _thisArea;

Holds all of the points in the Area.

		vector< vector<float> > _thisArea; 

vector<string> _subAreaNames;

The name of the Area.

		vector<string> _subAreaNames;

Area(const string& s, const Date& d, const vector< vector<float> >& v, const vector<string>& sn);

Constructor.

		Area(const string& s, 
             const Date& d, 
             const vector< vector<float> >& v,
			 const vector<string>& sn);

Area(const Area& g);

Copy constructor.

		Area(const Area& g);

~Area();

Destructor.

		~Area();

void showArea();

Dumps all data in Area. For debugging purposes.

		void showArea(); // const

void addPoint(const int& i, const float & f) ;

Adds point to vector of points in Area.

		void addPoint(const int& i, const float & f) 
			                              ;

Function is currently defined inline.


string getAreaName() const ;

Returns Area name string.

		string getAreaName() const                      ;

Function is currently defined inline.


string getSubAreaName(const int& i) const ;

Returns Area name string. ???????? add boundary check here....

		string getSubAreaName(const int& i) const                             ;

Function is currently defined inline.


int getSubAreaSize(const int& i) const ;

Returns number of points in area.

		int getSubAreaSize(const int& i) const                                ;

Function is currently defined inline.


int getSubAreaCount() const ;

Returns number of sub-Areas

		int getSubAreaCount() const                             ;

Function is currently defined inline.


void getAreaPoints( vector<float>& v ) const;

Returns all points in all vectors in area.

		void getAreaPoints( vector<float>& v ) const;

const Date getAreaDate() const ;

Returns Area Date.

		const Date getAreaDate() const { return _areaDate; };

const vector<float>& getSubAreaPoints(const int& subArea) const ;

Returns a point in the area.

		const vector<float>& getSubAreaPoints(const int& subArea) const 
			{ return _thisArea[subArea]; };

float getPoint(const int& subArea, const int& point) const ;

Returns a point in the area.

		float getPoint(const int& subArea, const int& point) const 
			                                     ;

Function is currently defined inline.


int getAreaSize() const;

Returns the number of points in entire area.

		int getAreaSize() const;

float getAreaAvg() const;

Returns the average of all the points in the area.

		float getAreaAvg() const;

float getSubAreaAvg(const int& i) const;

Returns the average of all the points in the sub area.

		float getSubAreaAvg(const int& i) const;

Area & operator=(const Area& rhs);

Operator =

		Area & operator=(const Area& rhs);

All Members

public:
void showArea();
void addPoint(const int& i, const float & f) ;
string getAreaName() const ;
string getSubAreaName(const int& i) const ;
int getSubAreaSize(const int& i) const ;
int getSubAreaCount() const ;
void getAreaPoints( vector<float>& v ) const;
const Date getAreaDate() const ;
const vector<float>& getSubAreaPoints(const int& subArea) const ;
float getPoint(const int& subArea, const int& point) const ;
int getAreaSize() const;
float getAreaAvg() const;
float getSubAreaAvg(const int& i) const;
Area & operator=(const Area& rhs);
protected:

Ancestors

Class does not inherit from any other class.


Descendants

Class is not inherited by any others.


Generated from source by the Cocoon utilities on Wed Aug 30 12:53:28 2000 .

Report problems to jkotula@stratasys.com