/usr/include/givaro/givstoragedense.h is in libgivaro-dev 3.2.13-1.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | #ifndef _GIV_VECTOR_STORAGE_DENSE_H_
#define _GIV_VECTOR_STORAGE_DENSE_H_
// ==========================================================================
// $Source: /var/lib/cvs/Givaro/src/library/vector/givstoragedense.h,v $
// Copyright(c)'94-97 by Givaro Team
// see the copyright file.
// Authors: T. Gautier
// $Id: givstoragedense.h,v 1.1.1.1 2004/05/12 16:08:24 jgdumas Exp $
// ==========================================================================
// Description:
#include "givaro/givstorage.h"
// ==========================================================================
// --
// -- Specialization for dense representation, using Array0 of givaro
// --
// ==========================================================================
template<class T>
struct RetVectorStorage<T,Dense> {
typedef T Type_t;
// --
// -- Iterators
// --
typedef typename Array0<T>::Indice_t Indice_t;
typedef typename Array0<T>::Iterator_t Iterator_t;
typedef typename Array0<T>::constIterator_t constIterator_t;
typedef Array0<T> Storage_t;
struct IndiceIterator_t {
public:
typedef IndiceIterator_t Self_t;
// - cstor
IndiceIterator_t(Indice_t a) : _curr(a) {};
Indice_t operator*() const { return _curr; }
Self_t& operator++() { ++_curr; return *this;}
Self_t& operator--() { --_curr; return *this;}
Self_t operator++(int) { Self_t tmp = *this; ++_curr; return tmp; }
Self_t operator--(int) { Self_t tmp = *this; --_curr; ; return tmp; }
Self_t& operator+=(Indice_t n) { _curr += n; return *this; }
Self_t& operator-=(Indice_t n) { _curr -= n; return *this; }
Indice_t operator[](Indice_t n) const { return _curr + n; }
int operator==(const Self_t& n) const { return (_curr == n._curr); }
int operator!=(const Self_t& n) const { return (_curr != n._curr); }
Indice_t _curr;
};
};
#endif
|