Variable Class Reference

#include <Variable.hpp>

Inheritance diagram for Variable:

Inheritance graph
[legend]

List of all members.

Public Types

enum  Type {
  domain, function, ifstream, mesh,
  ofstream, real, scene, testFuncion,
  unknown, unknownList, vector3
}

Public Member Functions

const Variable::Typetype () const
const std::string & name () const
 Variable (const std::string &name, const Variable::Type &type)
 Variable (const Variable &v)
virtual ~Variable ()

Private Attributes

const Variable::Type __type
 The type of the variable.
const std::string __name
 the name of the variable


Detailed Description

This class is the interface for all variables in the language.

Author:
Stephane Del Pino

Definition at line 33 of file Variable.hpp.


Member Enumeration Documentation

Enumerator:
domain 
function 
ifstream 
mesh 
ofstream 
real 
scene 
testFuncion 
unknown 
unknownList 
vector3 

Definition at line 36 of file Variable.hpp.

00036             {
00037     domain,
00038     function,
00039     ifstream,
00040     mesh,
00041     ofstream,
00042     real,
00043     scene,
00044     testFuncion,
00045     unknown,
00046     unknownList,
00047     vector3
00048   };


Constructor & Destructor Documentation

Variable::Variable ( const std::string &  name,
const Variable::Type type 
) [inline]

Definition at line 68 of file Variable.hpp.

00070     : __type(type),
00071       __name(name)
00072   {
00073     ;
00074   }

Variable::Variable ( const Variable v  )  [inline]

Definition at line 76 of file Variable.hpp.

00077     : __type(v.__type),
00078       __name(v.__name)
00079   {
00080     ;
00081   }

virtual Variable::~Variable (  )  [inline, virtual]

Definition at line 83 of file Variable.hpp.

00084   {
00085     ;
00086   }


Member Function Documentation

const Variable::Type& Variable::type (  )  const [inline]

Definition at line 58 of file Variable.hpp.

References __type.

Referenced by VariableRepository::findVariable().

00059   {
00060     return __type;
00061   }

const std::string& Variable::name (  )  const [inline]


Member Data Documentation

The type of the variable.

Definition at line 52 of file Variable.hpp.

Referenced by type().

const std::string Variable::__name [private]

the name of the variable

Definition at line 55 of file Variable.hpp.

Referenced by name().


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

Generated on Wed Nov 19 00:16:46 2008 for FreeFEM3D (aka ff3d) by  doxygen 1.5.6