~ubuntu-branches/ubuntu/raring/rheolef/raring-proposed

« back to all changes in this revision

Viewing changes to util/lib/Vector.h

  • Committer: Package Import Robot
  • Author(s): Pierre Saramito, Pierre Saramito, Sylvestre Ledru
  • Date: 2012-05-14 14:02:09 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120514140209-dzbdlidkotyflf9e
Tags: 6.1-1
[ Pierre Saramito ]
* New upstream release 6.1 (minor changes):
  - support arbitrarily polynomial order Pk
  - source code supports g++-4.7 (closes: #671996)

[ Sylvestre Ledru ]
* update of the watch file

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
*/
136
136
 
137
137
#include "rheolef/compiler.h"
138
 
#include "rheolef/occurence.h"
 
138
#include "rheolef/smart_pointer.h"
139
139
 
140
140
namespace rheolef { 
141
141
template<class T>
142
 
struct vector_rep : public occurence, public std::vector<T> {
 
142
struct vector_rep : public std::vector<T> {
143
143
 
144
144
// typedefs:
145
145
    typedef std::vector<T>  DATA;
158
158
// allocators/deallocators:
159
159
 
160
160
    vector_rep (const vector_rep& x) 
161
 
    : occurence(), std::vector<T>(x)
 
161
    : std::vector<T>(x)
162
162
    {}
163
163
 
164
164
    explicit
165
165
    vector_rep (size_type n = 0, const T& value = T ())
166
 
    : occurence(), std::vector<T>(n,value)
 
166
    : std::vector<T>(n,value)
167
167
    {}
168
168
 
169
169
#ifdef TODO
170
170
    vector_rep (const_iterator first, const_iterator last)
171
 
    : occurence(), std::vector<T>(first,last)
 
171
    : std::vector<T>(first,last)
172
172
    {}
173
173
#endif // TODO
174
174
};