#define byte unsigned char
#endif
-/*@Doc: A resizable array
- Why is it called "LyXArrayBase" if it is generic? (Lgb)
- Initially I thought it could be the base class for both mathed's
- and LyX' kernels data buffer. (Ale)
-
+/** A resizable array.
+ A general purpose resizable array.
+ @author Alejandro Aguilar Sierra
+ @version January 1996
*/
class LyxArrayBase {
public:
};
///
+ explicit
LyxArrayBase(int size = ARRAY_STEP);
///
LyxArrayBase(LyxArrayBase const &);
///
~LyxArrayBase();
-
+ /// Constructs a new array with dx elements starting at pos
+ LyxArrayBase & operator= (LyxArrayBase const &);
+
///
int empty() const { return (last == 0); }
/// Constructs a new array with dx elements starting at pos
byte operator[](const int);
- /// Constructs a new array with dx elements starting at pos
- LyxArrayBase & operator= (LyxArrayBase const &);
-
protected:
///
void Resize(int newsize);