Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Public Member Functions | Data Fields
Company Struct Reference

#include <stocks.h>

Public Member Functions

 Company (const std::string &s, double p)
 
void updateStock ()
 
int stockChange ()
 
int changeIndex (bool increment=false)
 

Data Fields

std::string companyName
 
double offerPrice
 
double stockPrice
 

Detailed Description

Definition at line 95 of file stocks.h.

Constructor & Destructor Documentation

◆ Company()

Company::Company ( const std::string &  s,
double  p 
)
inline

Definition at line 97 of file stocks.h.

Member Function Documentation

◆ changeIndex()

int Company::changeIndex ( bool  increment = false)
inline

Definition at line 113 of file stocks.h.

◆ stockChange()

int Company::stockChange ( )
inline

Definition at line 109 of file stocks.h.

◆ updateStock()

void Company::updateStock ( )
inline

Definition at line 103 of file stocks.h.

Field Documentation

◆ companyName

std::string Company::companyName

Definition at line 122 of file stocks.h.

◆ offerPrice

double Company::offerPrice

Definition at line 123 of file stocks.h.

◆ stockPrice

double Company::stockPrice

Definition at line 124 of file stocks.h.


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