AstRange Class Reference

#include <AstRange.h>

Collaboration diagram for AstRange:

Collaboration graph
[legend]

Detailed Description

Definition at line 24 of file AstRange.h.


Public Member Functions

 AstRange ()
 AstRange (const tree< AstNode >::iterator &_min, const tree< AstNode >::iterator &_max)
 AstRange (const AstRange &a)
AstRangeoperator= (const AstRange &a)
void setMin (const tree< AstNode >::iterator &_min)
void setMax (const tree< AstNode >::iterator &_max)
tree< AstNode >
::iterator & 
getMin ()
tree< AstNode >
::iterator & 
getMax ()
bool inRange (const tree< AstNode >::iterator &a) const

Private Attributes

tree< AstNode >::iterator min
tree< AstNode >::iterator max

Constructor & Destructor Documentation

AstRange::AstRange (  )  [inline]

Definition at line 29 of file AstRange.h.

00029 {}

AstRange::AstRange ( const tree< AstNode >::iterator &  _min,
const tree< AstNode >::iterator &  _max 
) [inline]

Definition at line 30 of file AstRange.h.

00030 : min(_min), max(_max) {}

AstRange::AstRange ( const AstRange a  )  [inline]

Definition at line 31 of file AstRange.h.

00031 : min(a.min), max(a.max) {}


Member Function Documentation

AstRange& AstRange::operator= ( const AstRange a  )  [inline]

Definition at line 32 of file AstRange.h.

References max, and min.

00032                                             {
00033         min = a.min;
00034         max = a.max;
00035         return *this;
00036     }

void AstRange::setMin ( const tree< AstNode >::iterator &  _min  )  [inline]

Definition at line 38 of file AstRange.h.

References min.

00038 { min = _min; }

void AstRange::setMax ( const tree< AstNode >::iterator &  _max  )  [inline]

Definition at line 39 of file AstRange.h.

References max.

00039 { max = _max; }

tree<AstNode>::iterator& AstRange::getMin (  )  [inline]

Definition at line 40 of file AstRange.h.

References min.

00040 { return min; }

tree<AstNode>::iterator& AstRange::getMax (  )  [inline]

Definition at line 41 of file AstRange.h.

References max.

00041 { return max; }

bool AstRange::inRange ( const tree< AstNode >::iterator &  a  )  const [inline]

Definition at line 43 of file AstRange.h.

References max, and min.

00043                                                               {
00044         tree<AstNode>::iterator temp = min;
00045         for (;temp != max; ++temp)
00046             if (temp == a)
00047                 return true;
00048         return false;
00049     }


Field Documentation

tree<AstNode>::iterator AstRange::min [private]

Definition at line 26 of file AstRange.h.

Referenced by getMin(), inRange(), operator=(), and setMin().

tree<AstNode>::iterator AstRange::max [private]

Definition at line 27 of file AstRange.h.

Referenced by getMax(), inRange(), operator=(), and setMax().


The documentation for this class 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