RVar Class Reference

#include <mathexpr.h>

List of all members.

Public Member Functions

 RVar ()
 RVar (const RVar &)
 RVar (const char *, float *)
 ~RVar ()

Public Attributes

char * name
float * pval

Friends

int operator== (const RVar &, const RVar &)


Detailed Description

Definition at line 54 of file mathexpr.h.


Constructor & Destructor Documentation

RVar::RVar (  )  [inline]

Definition at line 57 of file mathexpr.h.

References name, NULL, and pval.

00057 {name=NULL;pval=NULL;};

RVar::RVar ( const RVar rvarp  ) 

Definition at line 75 of file mathexpr.cpp.

References CopyStr(), name, and pval.

00076 {if(this==&rvarp)return;pval=rvarp.pval;name=CopyStr(rvarp.name);
00077 }

Here is the call graph for this function:

RVar::RVar ( const char *  namep,
float *  pvalp 
)

Definition at line 79 of file mathexpr.cpp.

References CopyStr(), name, and pval.

00080 {pval=pvalp;name=CopyStr(namep);}

Here is the call graph for this function:

RVar::~RVar (  ) 

Definition at line 82 of file mathexpr.cpp.

References name, and NULL.

00083 {if(name!=NULL)delete[] name;}


Friends And Related Function Documentation

int operator== ( const RVar var1,
const RVar var2 
) [friend]

Definition at line 681 of file mathexpr.cpp.

00682 {return(var1.pval==var2.pval&&EqStr(var1.name,var2.name));
00683 }


Member Data Documentation

char* RVar::name

Definition at line 56 of file mathexpr.h.

Referenced by ROperation::ContainVar(), ROperation::Expr(), operator==(), RVar(), and ~RVar().

float* RVar::pval

Definition at line 56 of file mathexpr.h.

Referenced by ROperation::ContainVar(), operator==(), ROperation::ROperation(), RVar(), and RFunction::Val().


The documentation for this class was generated from the following files:
Generated on Sat Mar 15 23:54:33 2008 for Armagetron Advanced by  doxygen 1.5.4