Mercurial > hg > octave-lyh
comparison liboctave/oct-inttypes.h @ 5900:c20eb7330d13
[project @ 2006-07-22 08:31:16 by jwe]
author | jwe |
---|---|
date | Sat, 22 Jul 2006 08:31:17 +0000 |
parents | da843f35775c |
children | 143b556ce725 |
comparison
equal
deleted
inserted
replaced
5899:82c38ce145a7 | 5900:c20eb7330d13 |
---|---|
306 octave_int<T> max (void) const { return std::numeric_limits<T>::max (); } | 306 octave_int<T> max (void) const { return std::numeric_limits<T>::max (); } |
307 | 307 |
308 static int nbits (void) { return sizeof (T) * CHAR_BIT; } | 308 static int nbits (void) { return sizeof (T) * CHAR_BIT; } |
309 | 309 |
310 static int byte_size (void) { return sizeof(T); } | 310 static int byte_size (void) { return sizeof(T); } |
311 | |
312 // Unsafe. This function exists to support the MEX interface. | |
313 // You should not use it anywhere else. | |
314 void *mex_get_data (void) const { return const_cast<T *> (&ival); } | |
311 | 315 |
312 private: | 316 private: |
313 | 317 |
314 T ival; | 318 T ival; |
315 }; | 319 }; |