Ignore:
Timestamp:
Feb 26, 2008, 3:24:46 PM (13 years ago)
Author:
Jari Häkkinen
Message:

Improved memory usage of BaseFileConverter?. Previous implementation was not flattering.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/se/lu/thep/wenni/base/base1/BaseFileConverter/Data.h

    r95 r594  
     1#ifndef _theplu_wenni_basefileconverter_data_
     2#define _theplu_wenni_basefileconverter_data_
     3
    14// $Id$
    25
    36/*
    47  Copyright (C) 2005, 2006 Jari Häkkinen, Peter Johansson
     8  Copyright (C) 2008 Jari Häkkinen
    59
    610  This file is part of WeNNI,
     
    2327*/
    2428
    25 #ifndef _theplu_wenni_basefileconverter_data_
    26 #define _theplu_wenni_basefileconverter_data_
    27 
    28 // #include <basefile.h>
    29 
     29#include <iosfwd>
    3030#include <string>
    3131#include <vector>
     
    4343    Data(BASE::BaseFileSection&,const std::string&, const std::string&);
    4444
     45    ~Data(void);
     46
    4547    void push_back(const std::vector<std::string>&);
    4648
    4749    inline int total_nof_columns(void) { return total_nof_columns_; }
    4850
     51    void write(const std::vector<std::string>&);
     52
    4953    void write_matrix(void);
    5054
    5155  private:
    52     std::vector<std::vector<std::string> > data_;
    5356    int column_number_;
    5457    int column_offset_;
     
    5861    std::string column_name_;
    5962    std::string output_file_;
     63
     64    std::ofstream* os_;
    6065  };
    6166
Note: See TracChangeset for help on using the changeset viewer.