Mercurial > hg > octave-lyh
diff libinterp/octave-value/ov.h @ 16323:e769440b39db
provide int64 extractors for octave_value class
* ov.h (octave_value::int64_value, octave_value::uint64_value):
New functions.
* ov-base.h, ov-base.cc (octave_base_value::int64_value,
octave_base_value::uint64_value): New functions.
* ov.cc (octave_value::idx_type_value): Use int64_value if
USE_64_BIT_IDX_T is defined.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 16 Mar 2013 03:58:07 -0400 |
parents | 1785493171ac |
children | 0f143f68078d |
line wrap: on
line diff
--- a/libinterp/octave-value/ov.h +++ b/libinterp/octave-value/ov.h @@ -734,6 +734,14 @@ ulong_value (bool req_int = false, bool frc_str_conv = false) const { return rep->ulong_value (req_int, frc_str_conv); } + int64_t + int64_value (bool req_int = false, bool frc_str_conv = false) const + { return rep->int64_value (req_int, frc_str_conv); } + + uint64_t + uint64_value (bool req_int = false, bool frc_str_conv = false) const + { return rep->uint64_value (req_int, frc_str_conv); } + octave_idx_type idx_type_value (bool req_int = false, bool frc_str_conv = false) const;