How do i convert c++ class to lisp?
Posted: Sat Dec 07, 2013 6:37 pm
How do i convert c++ class to lisp?
I am new to c++ classes and have 400 lines of basic c++ classes to convert and I was hoping some one could show me how to convert this c++ class to lisp. I know about defclass and defmethod but I was hoping to have a quick example of a proffessional conversion I could use as a template to match my conversion of the rest of the code against...
here is the class
I am new to c++ classes and have 400 lines of basic c++ classes to convert and I was hoping some one could show me how to convert this c++ class to lisp. I know about defclass and defmethod but I was hoping to have a quick example of a proffessional conversion I could use as a template to match my conversion of the rest of the code against...
here is the class
Code: Select all
class TrainingData
{
public:
TrainingData(const string filename);
bool isEof(void) { return m_trainingDataFile.eof(); }
void getTopology(vector<unsigned> &topology);
// Returns the number of input values read from the file:
unsigned getNextInputs(vector<double> &inputVals);
unsigned getTargetOutputs(vector<double> &targetOutputVals);
private:
ifstream m_trainingDataFile;
};