pelib  2.0.0
pelib::Cpp Class Reference

#include <Cpp.hpp>

Inheritance diagram for pelib::Cpp:
[legend]

List of all members.

Public Member Functions

 Cpp (std::vector< CppData * > outputs)
 Cpp (const Cpp &src)
 Cpp ()
 Cpp (const std::string &name)
virtual ~Cpp ()
virtual void setName (const std::string &name)
virtual std::string getName () const
virtual void dump (std::ostream &o, const Algebra &record) const
virtual void dump (std::ostream &o, const AlgebraData *data) const
virtual Cppoperator= (const Cpp &rhs)

Protected Member Functions

void deleteOutputs ()
void addOutputs ()

Protected Attributes

std::vector< CppData * > outputs
std::string name

Detailed Description

C++ code generator for a collection of class instances derived from pelib::AlgebraData

Definition at line 39 of file Cpp.hpp.


Constructor & Destructor Documentation

pelib::Cpp::Cpp ( std::vector< CppData * >  outputs)

Constructor

Parameters:
outputAll data structure generators

Definition at line 47 of file Cpp.cpp.

pelib::Cpp::Cpp ( const Cpp src)

Copy constructor

Definition at line 61 of file Cpp.cpp.

Constructor

Definition at line 39 of file Cpp.cpp.

pelib::Cpp::Cpp ( const std::string name)

Constructor

Parameters:
nameName of the C++ function to generate

Definition at line 53 of file Cpp.cpp.

pelib::Cpp::~Cpp ( ) [virtual]

Destructor

Definition at line 66 of file Cpp.cpp.


Member Function Documentation

void pelib::Cpp::addOutputs ( ) [protected]

Definition at line 160 of file Cpp.cpp.

Definition at line 84 of file Cpp.cpp.

void pelib::Cpp::dump ( std::ostream &  o,
const Algebra record 
) const [virtual]

Generates C++ code that instanciates all AlgebraData instances in a given Algebra collection, to some C++ function code and writes it in output stream

Implements pelib::AlgebraOutput.

Definition at line 107 of file Cpp.cpp.

void pelib::Cpp::dump ( std::ostream &  o,
const AlgebraData data 
) const [virtual]

Generates C++ code that instanciates all AlgebraData instances in a given Algebra collection, to some C++ function code and writes it in output stream

Implements pelib::AlgebraOutput.

Definition at line 132 of file Cpp.cpp.

std::string pelib::Cpp::getName ( ) const [virtual]

Gets the name of the C++ function code generated by this output class instance

Definition at line 72 of file Cpp.cpp.

Cpp & pelib::Cpp::operator= ( const Cpp rhs) [virtual]

Assignment operator. Flushes all output classes contained before receiving the ones from the Cpp output class assigned

Definition at line 93 of file Cpp.cpp.

void pelib::Cpp::setName ( const std::string name) [virtual]

Sets the name of teh function generated by this output class instance

Definition at line 78 of file Cpp.cpp.


Member Data Documentation

Definition at line 87 of file Cpp.hpp.

std::vector<CppData*> pelib::Cpp::outputs [protected]

Definition at line 86 of file Cpp.hpp.


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