Mercurial > hg > octave-nkf
comparison liboctave/oct-inttypes.h @ 4949:f6b63ff1119b
[project @ 2004-08-31 19:17:44 by jwe]
author | jwe |
---|---|
date | Tue, 31 Aug 2004 19:17:45 +0000 |
parents | 1a499d0c58f5 |
children | bfd57b466752 |
comparison
equal
deleted
inserted
replaced
4948:7124436476cb | 4949:f6b63ff1119b |
---|---|
235 | 235 |
236 ~octave_int (void) { } | 236 ~octave_int (void) { } |
237 | 237 |
238 T value (void) const { return ival; } | 238 T value (void) const { return ival; } |
239 | 239 |
240 const unsigned char * iptr (void) const | |
241 { return reinterpret_cast<const unsigned char *> (& ival); } | |
242 | |
240 bool operator ! (void) const { return ! ival; } | 243 bool operator ! (void) const { return ! ival; } |
241 | 244 |
242 octave_int<T> operator + (void) const { return *this; } | 245 octave_int<T> operator + (void) const { return *this; } |
243 | 246 |
244 octave_int<T> operator - (void) const | 247 octave_int<T> operator - (void) const |
266 | 269 |
267 octave_int<T> min (void) const { return std::numeric_limits<T>::min (); } | 270 octave_int<T> min (void) const { return std::numeric_limits<T>::min (); } |
268 octave_int<T> max (void) const { return std::numeric_limits<T>::max (); } | 271 octave_int<T> max (void) const { return std::numeric_limits<T>::max (); } |
269 | 272 |
270 static int nbits (void) { return sizeof (T) * CHAR_BIT; } | 273 static int nbits (void) { return sizeof (T) * CHAR_BIT; } |
274 | |
275 static int byte_size (void) { return sizeof(T); } | |
271 | 276 |
272 private: | 277 private: |
273 | 278 |
274 T ival; | 279 T ival; |
275 }; | 280 }; |