#include "oct-inttypes.h"
Public Types | |
typedef T | val_type |
Public Member Functions | |
octave_int (bool b) | |
octave_int (const octave_int< T > &)=default | |
template<typename U > | |
octave_int (const octave_int< U > &i) | |
template<typename U > | |
octave_int (const U &i) | |
octave_int (double d) | |
octave_int (float d) | |
octave_int (T i) | |
octave_int (void) | |
~octave_int (void)=default | |
octave_int< T > | abs () const |
bool | bool_value (void) const |
char | char_value (void) const |
template<class S > | |
T | convert_real (const S &value) |
double | double_value (void) const |
float | float_value (void) const |
const unsigned char * | iptr (void) const |
operator T (void) const | |
bool | operator! (void) const |
octave_int< T > | operator% (const octave_int< T > &y) const |
octave_int< T > & | operator%= (const octave_int< T > &y) |
octave_int< T > | operator* (const octave_int< T > &y) const |
octave_int< T > & | operator*= (const octave_int< T > &y) |
octave_int< T > | operator+ () const |
octave_int< T > | operator+ (const octave_int< T > &y) const |
octave_int< T > & | operator+= (const octave_int< T > &y) |
octave_int< T > | operator- () const |
octave_int< T > | operator- (const octave_int< T > &y) const |
octave_int< T > & | operator-= (const octave_int< T > &y) |
octave_int< T > | operator/ (const octave_int< T > &y) const |
octave_int< T > & | operator/= (const octave_int< T > &y) |
octave_int< T > | operator<< (const int &y) const |
octave_int< T > & | operator<<= (const int &y) |
octave_int & | operator= (const octave_int< T > &)=default |
octave_int< T > | operator>> (const int &y) const |
octave_int< T > & | operator>>= (const int &y) |
octave_int< T > | signum () const |
OCTAVE_API const char * | type_name (void) |
OCTAVE_API const char * | type_name (void) |
OCTAVE_API const char * | type_name (void) |
OCTAVE_API const char * | type_name (void) |
OCTAVE_API const char * | type_name (void) |
OCTAVE_API const char * | type_name (void) |
OCTAVE_API const char * | type_name (void) |
OCTAVE_API const char * | type_name (void) |
T | value (void) const |
Static Public Member Functions | |
static int | byte_size (void) |
template<typename S > | |
static OCTAVE_API T | convert_real (const S &value) |
static octave_int< T > | max (void) |
static T | max_val (void) |
static octave_int< T > | min (void) |
static T | min_val (void) |
static int | nbits (void) |
template<typename S > | |
static T | truncate_int (const S &value) |
static const OCTAVE_API char * | type_name () |
Static Public Attributes | |
static const octave_int | s_one |
static const octave_int | s_zero |
Static Private Member Functions | |
template<typename S > | |
static S | compute_threshold (S val, T orig_val) |
Private Attributes | |
T | m_ival |
Definition at line 782 of file oct-inttypes.h.
typedef T octave_int< T >::val_type |
Definition at line 786 of file oct-inttypes.h.
|
inline |
Definition at line 788 of file oct-inttypes.h.
|
inline |
Definition at line 790 of file oct-inttypes.h.
|
inline |
Definition at line 801 of file oct-inttypes.h.
|
inline |
Definition at line 804 of file oct-inttypes.h.
|
inline |
Definition at line 814 of file oct-inttypes.h.
Definition at line 817 of file oct-inttypes.h.
|
inline |
Definition at line 821 of file oct-inttypes.h.
|
default |
|
default |
|
inline |
Definition at line 860 of file oct-inttypes.h.
Referenced by extended_gcd(), and simple_gcd().
|
inline |
Definition at line 839 of file oct-inttypes.h.
References octave_int< T >::value().
Referenced by operator-().
|
inlinestatic |
Definition at line 895 of file oct-inttypes.h.
|
inline |
Definition at line 841 of file oct-inttypes.h.
References octave_int< T >::value().
|
inlinestaticprivateinherited |
Definition at line 399 of file oct-inttypes.h.
References octave::math::round().
|
inherited |
Definition at line 59 of file oct-inttypes.cc.
References octave::math::isnan(), and octave::math::round().
|
staticinherited |
|
inline |
Definition at line 843 of file oct-inttypes.h.
References octave_int< T >::value().
Referenced by op_dble_prod(), op_dble_sum(), pow(), and powf().
|
inline |
Definition at line 845 of file oct-inttypes.h.
References octave_int< T >::value().
|
inline |
Definition at line 832 of file oct-inttypes.h.
References octave_int< T >::m_ival.
|
inlinestatic |
Definition at line 891 of file oct-inttypes.h.
References max().
Referenced by img_float2uint(), operator*(), operator+(), operator-(), and operator/().
|
inlinestaticinherited |
Definition at line 350 of file oct-inttypes.h.
References max().
Referenced by octave_int_arith_base< T, false >::add(), octave_int_arith_base< T, false >::div(), octave_int_arith_base< T, true >::div(), and octave_int_base< T >::truncate_int().
|
inlinestatic |
Definition at line 890 of file oct-inttypes.h.
References min().
|
inlinestaticinherited |
Definition at line 349 of file oct-inttypes.h.
References min().
Referenced by octave_int_arith_base< T, true >::div(), and octave_int_base< T >::truncate_int().
|
inlinestatic |
Definition at line 893 of file oct-inttypes.h.
|
inline |
Definition at line 847 of file oct-inttypes.h.
References octave_int< T >::value().
|
inline |
Definition at line 837 of file oct-inttypes.h.
References octave_int< T >::m_ival.
|
inline |
Definition at line 884 of file oct-inttypes.h.
|
inline |
Definition at line 884 of file oct-inttypes.h.
|
inline |
Definition at line 882 of file oct-inttypes.h.
|
inline |
Definition at line 882 of file oct-inttypes.h.
|
inline |
Definition at line 849 of file oct-inttypes.h.
|
inline |
Definition at line 880 of file oct-inttypes.h.
|
inline |
Definition at line 880 of file oct-inttypes.h.
|
inline |
Definition at line 859 of file oct-inttypes.h.
|
inline |
Definition at line 881 of file oct-inttypes.h.
|
inline |
Definition at line 881 of file oct-inttypes.h.
|
inline |
Definition at line 883 of file oct-inttypes.h.
|
inline |
Definition at line 883 of file oct-inttypes.h.
|
inline |
Definition at line 884 of file oct-inttypes.h.
|
inline |
Definition at line 884 of file oct-inttypes.h.
|
default |
|
inline |
Definition at line 886 of file oct-inttypes.h.
|
inline |
Definition at line 886 of file oct-inttypes.h.
|
inline |
Definition at line 861 of file oct-inttypes.h.
Referenced by extended_gcd().
|
inlinestaticinherited |
Definition at line 355 of file oct-inttypes.h.
References octave_int_base< T >::max_val(), and octave_int_base< T >::min_val().
Referenced by octave_int_arith_base< T, false >::mul_internal(), and octave_int_arith_base< T, true >::mul_internal().
|
static |
OCTAVE_API const char * octave_int< int8_t >::type_name | ( | void | ) |
Definition at line 47 of file oct-inttypes.cc.
OCTAVE_API const char * octave_int< int16_t >::type_name | ( | void | ) |
Definition at line 48 of file oct-inttypes.cc.
OCTAVE_API const char * octave_int< int32_t >::type_name | ( | void | ) |
Definition at line 49 of file oct-inttypes.cc.
OCTAVE_API const char * octave_int< int64_t >::type_name | ( | void | ) |
Definition at line 50 of file oct-inttypes.cc.
OCTAVE_API const char * octave_int< uint8_t >::type_name | ( | void | ) |
Definition at line 51 of file oct-inttypes.cc.
OCTAVE_API const char * octave_int< uint16_t >::type_name | ( | void | ) |
Definition at line 52 of file oct-inttypes.cc.
OCTAVE_API const char * octave_int< uint32_t >::type_name | ( | void | ) |
Definition at line 53 of file oct-inttypes.cc.
OCTAVE_API const char * octave_int< uint64_t >::type_name | ( | void | ) |
Definition at line 54 of file oct-inttypes.cc.
|
inline |
Definition at line 830 of file oct-inttypes.h.
References octave_int< T >::m_ival.
Referenced by octave_int< T >::bool_value(), octave_int< T >::char_value(), octave::convert_index(), octave::base_stream::do_numeric_printf_conv(), octave_int< T >::double_value(), octave_int< T >::float_value(), Ftoc(), mod(), oct_unop_unsigned_uminus(), octave::ok_for_signed_int_conv(), octave_int< T >::operator T(), operator-(), operator<<(), pow(), rem(), octave::stream::seek(), octave::xinit(), xmax(), and xmin().
|
private |
Definition at line 904 of file oct-inttypes.h.
Referenced by octave_int< T >::iptr(), octave_int< T >::operator!(), and octave_int< T >::value().
|
static |
Definition at line 900 of file oct-inttypes.h.
|
static |
Definition at line 900 of file oct-inttypes.h.
Referenced by operator*().