World Ocean Simulation System (WOSS) library
woss::ArrData Class Reference

class for storing data of any acoustic toolbox ARR file More...

#include <ac-toolbox-arr-asc-reader.h>

Collaboration diagram for woss::ArrData:
Collaboration graph

Public Member Functions

 ~ArrData ()
 
void initialize ()
 
int getTimeArrIndex (double tx_depth, double rx_depth, double rx_range) const
 
int getIndex (float value, float *array, int array_size) const
 

Public Attributes

float frequency
 
int32_t Nsd
 
float * tx_depths
 
int32_t Nrd
 
float * rx_depths
 
int32_t Nrr
 
float * rx_ranges
 
TimeArrarr_values
 

Detailed Description

class for storing data of any acoustic toolbox ARR file

class ArrData stores TimeArr values provided by any acoustic toolbox ARR file

Constructor & Destructor Documentation

◆ ~ArrData()

woss::ArrData::~ArrData ( )
inline

Destructor

References arr_values, rx_depths, rx_ranges, and tx_depths.

Member Function Documentation

◆ getIndex()

int ArrData::getIndex ( float  value,
float *  array,
int  array_size 
) const

Returns the index of given array associated to given value

Parameters
valuetest value
arrayvalid pointer to an array
array_sizesize of passed array
Returns
valid array index value

Referenced by getTimeArrIndex().

◆ getTimeArrIndex()

int ArrData::getTimeArrIndex ( double  tx_depth,
double  rx_depth,
double  rx_range 
) const

Returns the arr_values index associated to given parameters

Parameters
tx_depthtransmitter depth [m]
rx_depthreceiver depth [m]
rx_rangereceiver range [m]
Returns
valid arr_values index value

References getIndex(), Nrd, Nrr, Nsd, rx_depths, rx_ranges, and tx_depths.

Referenced by woss::ArrAscResReader::accessMap(), woss::ArrBinResReader::accessMap(), woss::ArrAscResReader::readMapAvgPressure(), and woss::ArrBinResReader::readMapAvgPressure().

Here is the call graph for this function:

◆ initialize()

void woss::ArrData::initialize ( )
inline

Initializes the struct

References arr_values, frequency, Nrd, Nrr, Nsd, rx_depths, rx_ranges, and tx_depths.

Member Data Documentation

◆ arr_values

◆ frequency

◆ Nrd

◆ Nrr

◆ Nsd

◆ rx_depths

◆ rx_ranges

◆ tx_depths


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