Main Page | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals

Pin Class Reference

A smart NULL. More...

#include <streepin.h>

Inheritance diagram for Pin:

Node

Public Member Functions

 Pin ()
 Creates a Pin.

virtual SType getType () const
 Returns type of the node.

virtual string getName () const
 Returs string representing node type or name for List.

virtual ostream & print (ostream &os) const
 Writes node to the stream.

virtual ostream & php (ostream &os) const
 Writes node to the stream as php.

virtual bool match (const Node *p, Assignment &assign, const NameSpace &nameSpace) const
 Matches node p to the node. If node matches sets the assignment.

virtual bool matchToBegining (const List *p, Assignment &assign, const NameSpace &nameSpace) const
 Matches the list to the begining of p.

virtual bool compare (const Node *p) const
 Comares node p to the node.

virtual Nodecopy () const
 Copies the node.

virtual void getVariables (VariableList &vlist) const
 Returns list of variables used in the node.

virtual Nodesubstitute (const Assignment &assign)
 Substitutes variables in the node accordingly to the given assignment.

virtual string evaluate (const NameSpace &nameSpace) const
 Computes the value of the expression (only basic atihmetic and string operations).


Detailed Description

A smart NULL.

Definition at line 10 of file streepin.h.


Constructor & Destructor Documentation

Pin::Pin  )  [inline]
 

Creates a Pin.

Definition at line 14 of file streepin.h.

Referenced by copy().


Member Function Documentation

bool Pin::compare const Node p  )  const [virtual]
 

Comares node p to the node.

Implements Node.

Definition at line 19 of file streepin.cpp.

References Node::getType(), and SPin.

Node * Pin::copy  )  const [virtual]
 

Copies the node.

Implements Node.

Definition at line 27 of file streepin.cpp.

References Pin().

string Pin::evaluate const NameSpace nameSpace  )  const [virtual]
 

Computes the value of the expression (only basic atihmetic and string operations).

Implements Node.

Definition at line 34 of file streepin.cpp.

virtual string Pin::getName  )  const [inline, virtual]
 

Returs string representing node type or name for List.

Implements Node.

Definition at line 18 of file streepin.h.

References CPin.

virtual SType Pin::getType  )  const [inline, virtual]
 

Returns type of the node.

Implements Node.

Definition at line 16 of file streepin.h.

References SPin, and SType.

void Pin::getVariables VariableList vlist  )  const [virtual]
 

Returns list of variables used in the node.

Implements Node.

Definition at line 31 of file streepin.cpp.

bool Pin::match const Node p,
Assignment &  assign,
const NameSpace nameSpace
const [virtual]
 

Matches node p to the node. If node matches sets the assignment.

Implements Node.

Definition at line 11 of file streepin.cpp.

References SPin.

bool Pin::matchToBegining const List p,
Assignment &  assign,
const NameSpace nameSpace
const [virtual]
 

Matches the list to the begining of p.

Implements Node.

Definition at line 15 of file streepin.cpp.

ostream & Pin::php ostream &  os  )  const [virtual]
 

Writes node to the stream as php.

Implements Node.

Definition at line 7 of file streepin.cpp.

ostream & Pin::print ostream &  os  )  const [virtual]
 

Writes node to the stream.

Implements Node.

Definition at line 3 of file streepin.cpp.

Node * Pin::substitute const Assignment &  assign  )  [virtual]
 

Substitutes variables in the node accordingly to the given assignment.

Implements Node.

Definition at line 23 of file streepin.cpp.


The documentation for this class was generated from the following files:
Generated on Fri Nov 21 17:54:08 2003 for PHPX by doxygen 1.3.3