Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
xDataTOM_XYs.cc File Reference
#include <string.h>
#include "xDataTOM_private.h"

Go to the source code of this file.

Functions

int xDataTOM_XYs_free (xDataTOM_xDataInfo *xDI)
 
int xDataTOM_XYs_release (xDataTOM_XYs *XYs)
 
int xDataTOM_XYs_getData (xDataTOM_XYs *XYs, double **data)
 
int xDataTOM_XYs_getDataFromXDataInfo (xDataTOM_xDataInfo *xDI, double **data)
 

Variables

char const * xDataTOM_XYs_ID = "XYs"
 

Function Documentation

◆ xDataTOM_XYs_free()

int xDataTOM_XYs_free ( xDataTOM_xDataInfo * xDI)

Definition at line 19 of file xDataTOM_XYs.cc.

19 {
20
21 if( xDI == NULL ) return( 0 );
22 if( strcmp( xDataTOM_XYs_ID, xDI->ID ) != 0 ) return( 1 );
24 smr_freeMemory( (void **) &(xDI->data) );
25
26 return( 0 );
27}
void * smr_freeMemory(void **p)
const char * ID
Definition xDataTOM.h:151
char const * xDataTOM_XYs_ID
int xDataTOM_XYs_release(xDataTOM_XYs *XYs)

Referenced by xDataTOM_releaseElement().

◆ xDataTOM_XYs_getData()

int xDataTOM_XYs_getData ( xDataTOM_XYs * XYs,
double ** data )

Definition at line 42 of file xDataTOM_XYs.cc.

42 {
43
44 *data = XYs->data;
45 return( XYs->length );
46}
double * data
Definition xDataTOM.h:84

Referenced by MCGIDI_misc_dataFromXYs2ptwXYPointsInUnitsOf(), and xDataTOM_XYs_getDataFromXDataInfo().

◆ xDataTOM_XYs_getDataFromXDataInfo()

int xDataTOM_XYs_getDataFromXDataInfo ( xDataTOM_xDataInfo * xDI,
double ** data )

Definition at line 50 of file xDataTOM_XYs.cc.

50 {
51
52 return( xDataTOM_XYs_getData( (xDataTOM_XYs *) xDI->data, data ) );
53}
int xDataTOM_XYs_getData(xDataTOM_XYs *XYs, double **data)

Referenced by MCGIDI_misc_dataFromElement2ptwXYPointsInUnitsOf().

◆ xDataTOM_XYs_release()

int xDataTOM_XYs_release ( xDataTOM_XYs * XYs)

Definition at line 31 of file xDataTOM_XYs.cc.

31 {
32
34 XYs->length = 0;
35 smr_freeMemory( (void **) &(XYs->data) );
36
37 return( 0 );
38}
xDataTOM_subAxes subAxes
Definition xDataTOM.h:83
int xDataTOM_subAxes_release(xDataTOM_subAxes *subAxes)

Referenced by xDataTOM_regionsXYs_free(), xDataTOM_W_XYs_release(), and xDataTOM_XYs_free().

Variable Documentation

◆ xDataTOM_XYs_ID

char const* xDataTOM_XYs_ID = "XYs"

Definition at line 14 of file xDataTOM_XYs.cc.

Referenced by xDataTOM_releaseElement(), and xDataTOM_XYs_free().