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

Go to the source code of this file.

Functions

int xDataTOM_LegendreSeries_initialize (statusMessageReporting *smr, xDataTOM_LegendreSeries *LegendreSeries, int index, int length, double value)
 
int xDataTOM_LegendreSeries_release (xDataTOM_LegendreSeries *LegendreSeries)
 

Function Documentation

int xDataTOM_LegendreSeries_initialize ( statusMessageReporting smr,
xDataTOM_LegendreSeries LegendreSeries,
int  index,
int  length,
double  value 
)

Definition at line 17 of file xDataTOM_LegendreSeries.cc.

17  {
18 
19  LegendreSeries->LegendreSeries = NULL;
20  LegendreSeries->index = index;
21  LegendreSeries->length = length;
22  LegendreSeries->value = value;
23  if( ( LegendreSeries->LegendreSeries = (double *) smr_malloc2( smr, length * sizeof( double ), 0, "LegendreSeries->LegendreSeries" ) ) == NULL ) return( 1 );
24 
25  return( 0 );
26 }
const XML_Char int const XML_Char * value
Definition: expat.h:331
#define smr_malloc2(smr, size, zero, forItem)

Here is the caller graph for this function:

int xDataTOM_LegendreSeries_release ( xDataTOM_LegendreSeries LegendreSeries)

Definition at line 30 of file xDataTOM_LegendreSeries.cc.

30  {
31 
32  if( LegendreSeries == NULL ) return( 0 );
33  smr_freeMemory( (void **) &(LegendreSeries->LegendreSeries) );
34  return( 0 );
35 }
void * smr_freeMemory(void **p)

Here is the call graph for this function:

Here is the caller graph for this function: