GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes | List of all members
octave_int< T > Class Template Reference

#include "oct-inttypes.h"

Inheritance diagram for octave_int< T >:
Inheritance graph
[legend]
Collaboration diagram for octave_int< T >:
Collaboration graph
[legend]

Public Types

typedef T val_type
 

Public Member Functions

 octave_int (void)
 
 octave_int (T i)
 
 octave_int (char c)
 
 octave_int (double d)
 
 octave_int (float d)
 
 octave_int (bool b)
 
template<class U >
 octave_int (const U &i)
 
template<class U >
 octave_int (const octave_int< U > &i)
 
 octave_int (const octave_int< T > &i)
 
octave_int< T > abs () const
 
bool bool_value (void) const
 
char char_value (void) const
 
double double_value (void) const
 
float float_value (void) const
 
const unsigned chariptr (void) const
 
void * mex_get_data (void) const
 
 operator double (void) const
 
 operator float (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_intoperator= (const octave_int< T > &i)
 
octave_int< T > operator>> (const int &y) const
 
octave_int< T > & operator>>= (const int &y)
 
octave_int< T > signum () const
 
template<>
OCTAVE_API const chartype_name ()
 
template<>
OCTAVE_API const chartype_name ()
 
template<>
OCTAVE_API const chartype_name ()
 
template<>
OCTAVE_API const chartype_name ()
 
template<>
OCTAVE_API const chartype_name ()
 
template<>
OCTAVE_API const chartype_name ()
 
template<>
OCTAVE_API const chartype_name ()
 
template<>
OCTAVE_API const chartype_name ()
 
value (void) const
 

Static Public Member Functions

static int byte_size (void)
 
template<class S >
static T convert_real (const S &value)
 
static octave_int< T > max (void)
 
static T max_val ()
 
static octave_int< T > min (void)
 
static T min_val ()
 
static int nbits (void)
 
template<class S >
static T truncate_int (const S &value)
 
static const chartype_name ()
 

Static Public Attributes

static const octave_int one
 
static const octave_int zero
 

Private Attributes

ival
 

Detailed Description

template<class T>
class octave_int< T >

Definition at line 830 of file oct-inttypes.h.

Member Typedef Documentation

template<class T>
typedef T octave_int< T >::val_type

Definition at line 834 of file oct-inttypes.h.

Constructor & Destructor Documentation

template<class T>
octave_int< T >::octave_int ( void  )
inline

Definition at line 836 of file oct-inttypes.h.

template<class T>
octave_int< T >::octave_int ( i)
inline

Definition at line 838 of file oct-inttypes.h.

template<class T>
octave_int< T >::octave_int ( char  c)
inline

Definition at line 841 of file oct-inttypes.h.

template<class T>
octave_int< T >::octave_int ( double  d)
inline

Definition at line 845 of file oct-inttypes.h.

template<class T>
octave_int< T >::octave_int ( float  d)
inline

Definition at line 847 of file oct-inttypes.h.

template<class T>
octave_int< T >::octave_int ( bool  b)
inline

Definition at line 853 of file oct-inttypes.h.

template<class T>
template<class U >
octave_int< T >::octave_int ( const U &  i)
inline

Definition at line 856 of file oct-inttypes.h.

template<class T>
template<class U >
octave_int< T >::octave_int ( const octave_int< U > &  i)
inline

Definition at line 859 of file oct-inttypes.h.

template<class T>
octave_int< T >::octave_int ( const octave_int< T > &  i)
inline

Definition at line 862 of file oct-inttypes.h.

Member Function Documentation

template<class T>
octave_int<T> octave_int< T >::abs ( void  ) const
inline

Definition at line 904 of file oct-inttypes.h.

Referenced by extended_gcd(), and simple_gcd().

template<class T>
bool octave_int< T >::bool_value ( void  ) const
inline

Definition at line 877 of file oct-inttypes.h.

template<class T>
static int octave_int< T >::byte_size ( void  )
inlinestatic

Definition at line 936 of file oct-inttypes.h.

template<class T>
char octave_int< T >::char_value ( void  ) const
inline

Definition at line 879 of file oct-inttypes.h.

template<class T >
template<class S >
static T octave_int_base< T >::convert_real ( const S &  value)
inlinestaticinherited
template<class T>
double octave_int< T >::double_value ( void  ) const
inline

Definition at line 881 of file oct-inttypes.h.

Referenced by op_dble_prod(), op_dble_sum(), pow(), and powf().

template<class T>
float octave_int< T >::float_value ( void  ) const
inline

Definition at line 883 of file oct-inttypes.h.

Referenced by pow(), and powf().

template<class T>
const unsigned char* octave_int< T >::iptr ( void  ) const
inline

Definition at line 872 of file oct-inttypes.h.

template<class T>
static octave_int<T> octave_int< T >::max ( void  )
inlinestatic

Definition at line 932 of file oct-inttypes.h.

References max().

Referenced by img_float2uint(), operator*(), operator+(), operator-(), and operator/().

template<class T >
static T octave_int_base< T >::max_val ( )
inlinestaticinherited
template<class T>
void* octave_int< T >::mex_get_data ( void  ) const
inline

Definition at line 945 of file oct-inttypes.h.

template<class T>
static octave_int<T> octave_int< T >::min ( void  )
inlinestatic

Definition at line 931 of file oct-inttypes.h.

References min().

template<class T >
static T octave_int_base< T >::min_val ( )
inlinestaticinherited
template<class T>
static int octave_int< T >::nbits ( void  )
inlinestatic

Definition at line 934 of file oct-inttypes.h.

template<class T>
octave_int< T >::operator double ( void  ) const
inline

Definition at line 889 of file oct-inttypes.h.

template<class T>
octave_int< T >::operator float ( void  ) const
inline

Definition at line 891 of file oct-inttypes.h.

template<class T>
octave_int< T >::operator T ( void  ) const
inline

Definition at line 885 of file oct-inttypes.h.

template<class T>
bool octave_int< T >::operator! ( void  ) const
inline

Definition at line 875 of file oct-inttypes.h.

template<class T>
octave_int<T> octave_int< T >::operator% ( const octave_int< T > &  y) const
inline

Definition at line 925 of file oct-inttypes.h.

template<class T>
octave_int<T>& octave_int< T >::operator%= ( const octave_int< T > &  y)
inline

Definition at line 925 of file oct-inttypes.h.

template<class T>
octave_int<T> octave_int< T >::operator* ( const octave_int< T > &  y) const
inline

Definition at line 923 of file oct-inttypes.h.

template<class T>
octave_int<T>& octave_int< T >::operator*= ( const octave_int< T > &  y)
inline

Definition at line 923 of file oct-inttypes.h.

template<class T>
octave_int<T> octave_int< T >::operator+ ( ) const
inline

Definition at line 894 of file oct-inttypes.h.

template<class T>
octave_int<T> octave_int< T >::operator+ ( const octave_int< T > &  y) const
inline

Definition at line 921 of file oct-inttypes.h.

template<class T>
octave_int<T>& octave_int< T >::operator+= ( const octave_int< T > &  y)
inline

Definition at line 921 of file oct-inttypes.h.

template<class T>
octave_int<T> octave_int< T >::operator- ( ) const
inline

Definition at line 903 of file oct-inttypes.h.

template<class T>
octave_int<T> octave_int< T >::operator- ( const octave_int< T > &  y) const
inline

Definition at line 922 of file oct-inttypes.h.

template<class T>
octave_int<T>& octave_int< T >::operator-= ( const octave_int< T > &  y)
inline

Definition at line 922 of file oct-inttypes.h.

template<class T>
octave_int<T> octave_int< T >::operator/ ( const octave_int< T > &  y) const
inline

Definition at line 924 of file oct-inttypes.h.

template<class T>
octave_int<T>& octave_int< T >::operator/= ( const octave_int< T > &  y)
inline

Definition at line 924 of file oct-inttypes.h.

template<class T>
octave_int<T> octave_int< T >::operator<< ( const int y) const
inline

Definition at line 926 of file oct-inttypes.h.

template<class T>
octave_int<T>& octave_int< T >::operator<<= ( const int y)
inline

Definition at line 926 of file oct-inttypes.h.

template<class T>
octave_int& octave_int< T >::operator= ( const octave_int< T > &  i)
inline

Definition at line 864 of file oct-inttypes.h.

References octave_int< T >::ival.

template<class T>
octave_int<T> octave_int< T >::operator>> ( const int y) const
inline

Definition at line 927 of file oct-inttypes.h.

template<class T>
octave_int<T>& octave_int< T >::operator>>= ( const int y)
inline

Definition at line 927 of file oct-inttypes.h.

template<class T>
octave_int<T> octave_int< T >::signum ( void  ) const
inline

Definition at line 905 of file oct-inttypes.h.

Referenced by extended_gcd().

template<class T >
template<class S >
static T octave_int_base< T >::truncate_int ( const S &  value)
inlinestaticinherited
template<>
OCTAVE_API const char * octave_int< int8_t >::type_name ( void  )

Definition at line 46 of file oct-inttypes.cc.

template<>
OCTAVE_API const char * octave_int< int16_t >::type_name ( void  )

Definition at line 47 of file oct-inttypes.cc.

template<>
OCTAVE_API const char * octave_int< int32_t >::type_name ( void  )

Definition at line 48 of file oct-inttypes.cc.

template<>
OCTAVE_API const char * octave_int< int64_t >::type_name ( void  )

Definition at line 49 of file oct-inttypes.cc.

template<>
OCTAVE_API const char * octave_int< uint8_t >::type_name ( void  )

Definition at line 50 of file oct-inttypes.cc.

template<>
OCTAVE_API const char * octave_int< uint16_t >::type_name ( void  )

Definition at line 51 of file oct-inttypes.cc.

template<>
OCTAVE_API const char * octave_int< uint32_t >::type_name ( void  )

Definition at line 52 of file oct-inttypes.cc.

template<>
OCTAVE_API const char * octave_int< uint64_t >::type_name ( void  )

Definition at line 53 of file oct-inttypes.cc.

template<class T>
static const char* octave_int< T >::type_name ( )
static
template<class T>
T octave_int< T >::value ( void  ) const
inline

Member Data Documentation

template<class T>
T octave_int< T >::ival
private

Definition at line 949 of file oct-inttypes.h.

Referenced by octave_int< T >::operator=().

template<class T>
const octave_int< T > octave_int< T >::one
static

Definition at line 941 of file oct-inttypes.h.

template<class T>
const octave_int< T > octave_int< T >::zero
static

Definition at line 941 of file oct-inttypes.h.

Referenced by operator*().


The documentation for this class was generated from the following files: