Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
xDataTOM_XYs.cc File Reference
#include <string.h>
#include "xDataTOM_private.h"
Include dependency graph for xDataTOM_XYs.cc:

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

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 }
int xDataTOM_XYs_release(xDataTOM_XYs *XYs)
Definition: xDataTOM_XYs.cc:31
char const * xDataTOM_XYs_ID
Definition: xDataTOM_XYs.cc:14
const char * ID
Definition: xDataTOM.h:151
void * smr_freeMemory(void **p)

Here is the call graph for this function:

Here is the caller graph for this function:

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 }
const XML_Char const XML_Char * data
Definition: expat.h:268
double * data
Definition: xDataTOM.h:84

Here is the caller graph for this function:

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 }
const XML_Char const XML_Char * data
Definition: expat.h:268
int xDataTOM_XYs_getData(xDataTOM_XYs *XYs, double **data)
Definition: xDataTOM_XYs.cc:42

Here is the call graph for this function:

Here is the caller graph for this function:

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)
double * data
Definition: xDataTOM.h:84
void * smr_freeMemory(void **p)

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

char const* xDataTOM_XYs_ID = "XYs"

Definition at line 14 of file xDataTOM_XYs.cc.