WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
WXP::HurStorms Class Reference

This class creates an array a hurricane storms. More...

#include "../include/HurStorms.h"

Public Member Functions

int init ()
int init (int size)
 HurStorms ()
 HurStorms (int size)
 ~HurStorms ()
 HurStorms (const HurStorms &data)
HurStorms operator= (const HurStorms &data)
int copy (const HurStorms &data)
int clear ()
int expand (int size)
int add (int location, const char *data)
int add (HurStorm &storm)
int update (HurStorm &storm)
int set (int ind, HurStorm &storm)
int get (int ind, HurStorm &storm)
HurStorm get (int ind)
int getNum ()
bool checkLocation (int locate)
int getInd (const char *name, int locate)
int getLocation (int ind)
int searchNew (HurData &data)
int update (HurData &data)
int sortDate ()
int print ()
int printAll ()

Detailed Description

This class creates an array a hurricane storms.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ HurStorms() [1/3]

HurStorms::HurStorms ( )

Constructor. Initializes the values.

References init().

Referenced by copy(), HurStorms(), and operator=().

◆ HurStorms() [2/3]

HurStorms::HurStorms ( int size)

Constructor. Size the arrays.

Parameters
sizeThe initial number of points

References init().

◆ ~HurStorms()

HurStorms::~HurStorms ( )

Destructor.

◆ HurStorms() [3/3]

HurStorms::HurStorms ( const HurStorms & data)

Copy constructor.

Parameters
dataStrings class to copy from

References copy(), and HurStorms().

Member Function Documentation

◆ add()

int HurStorms::add ( HurStorm & storm)

Adds a new point.

Parameters
stormHurStorms class with values

References expand().

◆ clear()

int WXP::HurStorms::clear ( )
inline

Clears the array

◆ copy()

int HurStorms::copy ( const HurStorms & data)

Copy data.

Parameters
dataStrings class to copy from

References HurStorms(), and init().

Referenced by HurStorms(), and operator=().

◆ expand()

int HurStorms::expand ( int size)

Expands the array

Parameters
sizeThe new size

Referenced by add().

◆ get() [1/2]

HurStorm HurStorms::get ( int ind)

Gets a specific point value from array.

Parameters
indIndex of value to get
Returns
Output HurStorm class with values

References get().

◆ get() [2/2]

int HurStorms::get ( int ind,
HurStorm & storm )

Gets a specific point value from array.

Parameters
indIndex of value to get
Return values
stormOutput HurStorm class with values

Referenced by get().

◆ init() [1/2]

int HurStorms::init ( )

Initializes the object

References init().

Referenced by copy(), HurStorms(), HurStorms(), and init().

◆ init() [2/2]

int HurStorms::init ( int size)

Initializes the object

Parameters
sizeThe initial number of points

◆ operator=()

HurStorms HurStorms::operator= ( const HurStorms & data)

Assignment operator. Used to overload copying

Parameters
dataString class to copy from

References copy(), and HurStorms().

◆ print()

int HurStorms::print ( )

Prints the values to standard output.

References print().

Referenced by print().

◆ printAll()

int HurStorms::printAll ( )

Prints the values to standard output.

References printAll().

Referenced by printAll().

◆ set()

int HurStorms::set ( int ind,
HurStorm & storm )

Sets a specific point value in array.

Parameters
indIndex of value to set
stormNew values

The documentation for this class was generated from the following files: