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)
37 Full_storage::elem (int i,int j)
40 return els_p_p_[i][j];
44 Full_storage::elem (int i, int j) const {
46 return els_p_p_[i][j];
50 Full_storage::Full_storage() {
56 Full_storage::rows() const
61 Full_storage::cols() const
66 Full_storage::dim() const
68 assert (rows()==cols ());
73 Full_storage::resize (int i)
79 Full_storage::Full_storage (int i,int j)
86 Full_storage::Full_storage (int i)
93 IMPLEMENT_VIRTUAL_COPY_CONS(Full_storage,Matrix_storage);
95 #endif // FULL_STORAGE_ICC