Piethon  1.0
A Python-like interpreter using flex and bison.
Public Member Functions | List of all members
ExpressionList Class Reference

#include <expression.h>

Collaboration diagram for ExpressionList:
Collaboration graph

Public Member Functions

 ExpressionList ()
 
 ~ExpressionList ()
 
void add (Expression *exp)
 
unsigned int size () const
 
list< Expression * >::const_iterator begin () const
 
list< Expression * >::const_iterator end () const
 

Detailed Description

Definition at line 183 of file expression.h.

Constructor & Destructor Documentation

◆ ExpressionList()

ExpressionList::ExpressionList ( )
inline

Definition at line 185 of file expression.h.

185 { }

◆ ~ExpressionList()

ExpressionList::~ExpressionList ( )

Definition at line 99 of file expression.cpp.

99  {
100  for (list<Expression*>::iterator it = expList.begin(); it != expList.end(); ++it) {
101  delete *it;
102  }
103 }

Member Function Documentation

◆ add()

void ExpressionList::add ( Expression exp)

Definition at line 83 of file expression.cpp.

83  {
84  expList.push_back(exp);
85 }

◆ begin()

list< Expression * >::const_iterator ExpressionList::begin ( ) const

Definition at line 91 of file expression.cpp.

91  {
92  return expList.begin();
93 }

◆ end()

list< Expression * >::const_iterator ExpressionList::end ( ) const

Definition at line 95 of file expression.cpp.

95  {
96  return expList.end();
97 }

◆ size()

unsigned int ExpressionList::size ( ) const

Definition at line 87 of file expression.cpp.

87  {
88  return expList.size();
89 }

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