Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Static Protected Member Functions | Private Attributes

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]

List of all members.

Public Types

typedef T val_type

Public Member Functions

 octave_int (void)
 octave_int (T i)
 octave_int (float d)
 octave_int (const octave_int< T > &i)
 octave_int (bool b)
 octave_int (double d)
template<class U >
 octave_int (const U &i)
template<class U >
 octave_int (const octave_int< U > &i)
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_intoperator= (const octave_int< T > &i)
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 octave_int< T > min (void)
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

Static Protected Member Functions

static T max_val ()
static T min_val ()

Private Attributes

ival

Detailed Description

template<class T>
class octave_int< T >

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


Member Typedef Documentation

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

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


Constructor & Destructor Documentation

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

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

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

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

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

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

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

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

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

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

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

Definition at line 748 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 751 of file oct-inttypes.h.

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

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


Member Function Documentation

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

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

template<class T>
static int octave_int< T >::byte_size ( void   )  [inline, static]

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

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

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

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

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

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

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

Definition at line 775 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 764 of file oct-inttypes.h.

template<class T>
static octave_int<T> octave_int< T >::max ( void   )  [inline, static]

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

References max().

Referenced by DOUBLE_INT_BINOP_DECL(), and INT_DOUBLE_BINOP_DECL().

template<class T >
static T octave_int_base< T >::max_val (  )  [inline, static, protected, inherited]

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

References max().

Referenced by octave_int_base< T >::convert_real(), and octave_int_base< T >::truncate_int().

template<class T>
void* octave_int< T >::mex_get_data ( void   )  const [inline]

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

template<class T>
static octave_int<T> octave_int< T >::min ( void   )  [inline, static]

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

References min().

template<class T >
static T octave_int_base< T >::min_val (  )  [inline, static, protected, inherited]

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

References min().

Referenced by octave_int_base< T >::convert_real(), and octave_int_base< T >::truncate_int().

template<class T>
static int octave_int< T >::nbits ( void   )  [inline, static]

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

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

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

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

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

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

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

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

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

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

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

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

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

References octave_int< T >::ival.

template<class T >
template<class S >
static T octave_int_base< T >::truncate_int ( const S &  value  )  [inline, static, inherited]
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 841 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 833 of file oct-inttypes.h.

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

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


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines