2 full-storage.icc -- implement Full_storage inline functions
4 source file of the Flower Library
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
10 #ifndef FULL_STORAGE_ICC
11 #define FULL_STORAGE_ICC
18 height_i_=width_i_=max_height_i_=max_width_i_=0;
21 Full_storage::valid(int i, int j)const
23 return (i>=0 && i < height_i_)
24 && (j < width_i_ && j >=0);
29 Full_storage::Full_storage(Full_storage const&s)
36 Full_storage::elem(int i,int j)
39 return els_p_p_[i][j];
43 Full_storage::elem(int i, int j) const {
45 return els_p_p_[i][j];
49 Full_storage::Full_storage() {
55 Full_storage::rows() const
60 Full_storage::cols() const
65 Full_storage::dim()const
67 assert (rows()==cols());
72 Full_storage::resize(int i)
78 Full_storage::Full_storage(int i,int j)
85 Full_storage::Full_storage(int i)
92 IMPLEMENT_VIRTUAL_COPY_CONS(Full_storage,Matrix_storage);
94 #endif // FULL_STORAGE_ICC