MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
MathParser::PlugInVar Class Reference

#include <mathp.h>

Inheritance diagram for MathParser::PlugInVar:
Collaboration diagram for MathParser::PlugInVar:

Public Member Functions

 PlugInVar (const char *const s, MathParser::PlugIn *p)
 
 ~PlugInVar (void)
 
TypedValue::Type GetType (void) const
 
bool Const (void) const
 
bool MayChange (void) const
 
TypedValue GetVal (void) const
 
- Public Member Functions inherited from NamedValue
 NamedValue (const char *const s)
 
virtual ~NamedValue (void)
 
virtual bool IsVar (void) const
 
const char * GetName (void) const
 
virtual const char *const GetTypeName (void) const
 

Private Attributes

MathParser::PlugInpgin
 

Detailed Description

Definition at line 254 of file mathp.h.

Constructor & Destructor Documentation

MathParser::PlugInVar::PlugInVar ( const char *const  s,
MathParser::PlugIn p 
)

Definition at line 1884 of file mathp.cc.

References NO_OP.

1885 : NamedValue(s), pgin(p)
1886 {
1887  NO_OP;
1888 }
#define NO_OP
Definition: myassert.h:74
MathParser::PlugIn * pgin
Definition: mathp.h:256
NamedValue(const char *const s)
Definition: mathp.cc:1725
MathParser::PlugInVar::~PlugInVar ( void  )

Definition at line 1890 of file mathp.cc.

References SAFEDELETE.

1891 {
1892  if (pgin) {
1893  SAFEDELETE(pgin);
1894  }
1895 }
MathParser::PlugIn * pgin
Definition: mathp.h:256
#define SAFEDELETE(pnt)
Definition: mynewmem.h:710

Member Function Documentation

bool MathParser::PlugInVar::Const ( void  ) const
virtual

Implements NamedValue.

Definition at line 1904 of file mathp.cc.

1905 {
1906  return true;
1907 }
TypedValue::Type MathParser::PlugInVar::GetType ( void  ) const
virtual

Implements NamedValue.

Definition at line 1898 of file mathp.cc.

1899 {
1900  return pgin->GetType();
1901 }
MathParser::PlugIn * pgin
Definition: mathp.h:256
virtual TypedValue::Type GetType(void) const =0
TypedValue MathParser::PlugInVar::GetVal ( void  ) const
virtual

Implements NamedValue.

Definition at line 1916 of file mathp.cc.

1917 {
1918  return pgin->GetVal();
1919 }
MathParser::PlugIn * pgin
Definition: mathp.h:256
virtual TypedValue GetVal(void) const =0
bool MathParser::PlugInVar::MayChange ( void  ) const
virtual

Implements NamedValue.

Definition at line 1910 of file mathp.cc.

1911 {
1912  return true;
1913 }

Member Data Documentation

MathParser::PlugIn* MathParser::PlugInVar::pgin
private

Definition at line 256 of file mathp.h.


The documentation for this class was generated from the following files: