tmm_elev_profile_destroy()

Note: Requires Terrain Modeling Module functionality

Abstract

Frees the TmmT_Elev_Profile data structure created by tmm_elev_profile_get().

Syntax

tmm_elev_profile_destroy (elev_profile_ptr)
Argument Type Description
elev_profile_ptr TmmT_Elev_Profile* pointer to the elevation profile to destroy

Return Value:

void

No return value.

tmm.h

Example

elevation_profile_ptr = tmm_elev_profile_get (
    tx_lat, tx_long, rx_lat, rx_long, TMMC_RESOLUTION_BEST);

if ((elevation_profile_ptr == OPC_NIL) ||
    (elevation_profile_ptr->data_status != TmmC_Elev_Data_All_Good))
    {
    /* No terrain */
    /* Use freespace */
    power_freespace (pkptr);
    }
else
    {
    calculate_loss (elevation_profile_ptr, tx_height, rx_height, tx_frequency);
    }

tmm_elev_profile_destroy (elevation_profile_ptr);

Details

None.

Purpose

This function must be called to free the data structure created by tmm_elev_profile_get(), when that structure is no longer needed.

Errors

  • Attempting to destroy an elevation profile that isn't valid.

Reference

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com