Om
Public Member Functions | Private Member Functions | List of all members
Om::Language::Producer Class Referenceabstract

An Element giver; gives from the front. More...

#include "producer.hpp"

+ Inheritance diagram for Om::Language::Producer:

Public Member Functions

virtual ~Producer ()=0
 
virtual void GiveElements (Consumer &)=0
 Gives each contained Element to the argument. More...
 
virtual void GiveElements (Consumer &) const =0
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
virtual std::auto_ptr< ProgramGiveProgram ()=0
 Returns a new Program populated with the contents of this. More...
 
virtual std::auto_ptr< ProgramGiveProgram () const =0
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 

Private Member Functions

Produceroperator= (Producer const &)
 

Detailed Description

Definition at line 40 of file producer.hpp.

Constructor & Destructor Documentation

◆ ~Producer()

virtual Om::Language::Producer::~Producer ( )
pure virtual

Member Function Documentation

◆ GiveElements() [1/2]

virtual void Om::Language::Producer::GiveElements ( Consumer )
pure virtual
Postcondition
IsEmpty() == true
Remarks
Giving every Element is more efficient than giving a subset and managing incremental state, which is never necessary.

Implemented in Om::Language::Evaluator.

◆ GiveElements() [2/2]

virtual void Om::Language::Producer::GiveElements ( Consumer ) const
pure virtual

Implemented in Om::Language::Evaluator.

◆ GiveProgram() [1/2]

virtual std::auto_ptr<Program> Om::Language::Producer::GiveProgram ( )
pure virtual

◆ GiveProgram() [2/2]

virtual std::auto_ptr<Program> Om::Language::Producer::GiveProgram ( ) const
pure virtual

◆ operator=()

Producer& Om::Language::Producer::operator= ( Producer const &  )
private

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