BoxedFunction Struct Reference

#include <AstContainer.h>


Detailed Description

BoxedFunction modelize a function as a series of input and output:

output : the function is actually returning as output something (transformation of variables)

Definition at line 92 of file AstContainer.h.


Public Member Functions

 BoxedFunction ()
 BoxedFunction (const BoxedFunction &b)
BoxedFunctionoperator= (const BoxedFunction &b)
 ~BoxedFunction ()
bool isInput (const std::string &__str)
bool isOutput (const std::string &__str)

Data Fields

MapFunctions input
 input: variable = function(...)
MapFunctions output
 output: function(variable)

Constructor & Destructor Documentation

BoxedFunction::BoxedFunction (  )  [inline]

Definition at line 98 of file AstContainer.h.

00098 {}

BoxedFunction::BoxedFunction ( const BoxedFunction b  )  [inline]

Definition at line 99 of file AstContainer.h.

00099 : input(b.input), output(b.output) {}

BoxedFunction::~BoxedFunction (  )  [inline]

Definition at line 105 of file AstContainer.h.

00105 {}


Member Function Documentation

BoxedFunction& BoxedFunction::operator= ( const BoxedFunction b  )  [inline]

Definition at line 100 of file AstContainer.h.

References input, and output.

00100                                                      {
00101         input = b.input;
00102         output = b.output;
00103         return *this;
00104     }

bool BoxedFunction::isInput ( const std::string &  __str  )  [inline]

Definition at line 107 of file AstContainer.h.

References input.

00107                                                 {
00108         return input.find(__str) != input.end();
00109     }

bool BoxedFunction::isOutput ( const std::string &  __str  )  [inline]

Definition at line 110 of file AstContainer.h.

References output.

00110                                                  {
00111         return output.find(__str) != output.end();
00112     }


Field Documentation

MapFunctions BoxedFunction::input

input: variable = function(...)

Definition at line 94 of file AstContainer.h.

Referenced by Ast::functionBoxing(), isInput(), operator=(), and Ast::sourceBoxing().

MapFunctions BoxedFunction::output

output: function(variable)

Definition at line 96 of file AstContainer.h.

Referenced by Ast::functionBoxing(), isOutput(), operator=(), and Ast::sourceBoxing().


The documentation for this struct was generated from the following file:
Generated on Wed Feb 27 20:31:41 2008 for php.ast.svn.src. by  doxygen 1.5.3