Functions for Allocating Structs

Function List

WinProp_AllocateResult
This function allocates memory to the WinProp_Result structure.
WinProp_AllocateResultPlane
This function allocates memory to the WinProp_ResultPlane structure.
WinProp_Structure_Alloc_Trajectory
This function frees memory allocated to WinProp_Trajectory.
WinProp_Structure_Alloc_Additional_Freq_Loss
This function frees memory allocated to WinProp_Additional_Freq_Loss.
WinProp_Structure_Alloc_Polygon
This function frees memory allocated to WinProp_Polygon.
WinProp_Structure_Alloc_Dynamic_Sets
This function frees memory allocated to WinProp_Dynamic_Sets.

Function Details

int WinProp_AllocateResult(WinProp_Result * Result, int Columns, int Lines, int Heights, const double * HeightsArray, const double * TimeStepsArray)

Description

This function allocates memory to the WinProp_Result structure.

Parameters

WinProp_Result * Result
Result structure.
int Columns
Number of columns in result matrix.
int Lines
Number of rows in result matrix.
int Heights
Number of prediction heights.
const double * HeightsArray
Array of prediction heights.
const double * TimeStepsArray
Array of time steps.

Returns An integer: 0 = success, failure otherwise.

int WinProp_AllocateResultPlane(WinProp_ResultPlane * Result, int Columns, int Lines)

Description

This function allocates memory to the WinProp_ResultPlane structure.

Parameters

WinProp_ResultPlane * Result
Result structure.
int Columns
Number of columns.
int Lines
Number of lines.

Returns An integer: 0 = success, failure otherwise.

int WinProp_Structure_Alloc_Trajectory(WinProp_Trajectory * ToAlloc, int nrPoints)

Description

This function frees memory allocated to WinProp_Trajectory.

Parameters

WinProp_Trajectory * ToAlloc
struct to allocate.
int nrPoints
The number of points to allocate.

Returns An integer: 0.

int WinProp_Structure_Alloc_Additional_Freq_Loss(WinProp_Additional_Freq_Loss * ToAlloc, int nrEle)

Description

This function frees memory allocated to WinProp_Additional_Freq_Loss.

Parameters

WinProp_Additional_Freq_Loss * ToAlloc
struct to allocate.
int nrEle
The number of elements to allocate.

Returns An integer: 0.

int WinProp_Structure_Alloc_Polygon(WinProp_Polygon * ToAlloc, int nrCorner, int nrIDs)

Description

This function frees memory allocated to WinProp_Polygon.

Parameters

WinProp_Polygon * ToAlloc
struct to allocate.
int nrCorner
The number of corners to allocate.
int nrIDs
The number of IDs to allocate.

Returns An integer: 0.

int WinProp_Structure_Alloc_Dynamic_Sets(WinProp_Dynamic_Sets * ToAlloc, int nrSets)

Description

This function frees memory allocated to WinProp_Dynamic_Sets.

Parameters

WinProp_Dynamic_Sets * ToAlloc
struct to allocate.
int nrSets
The number of sets to allocate.

Returns An integer: 0.

The documentation was generated from the following file:
  • source/Interface/Alloc.h