ByteInt Class Reference

Represents 8 bit integer. More...

#include <DataType.h>


Public Member Functions

 ByteInt ()
 ByteInt (const ByteInt &v)
 copy constructor
 ByteInt (char v)
 constructor with char
 operator int () const
char operator= (ByteInt v)
char operator= (char v)
char operator+= (ByteInt v)
char operator+= (char v)
char operator-= (ByteInt v)
char operator-= (char v)
char operator *= (ByteInt v)
char operator *= (char v)
char operator/= (ByteInt v)
char operator/= (char v)
char operator%= (ByteInt v)
char operator%= (char v)
char operator<<= (ByteInt v)
char operator<<= (char v)
char operator>>= (ByteInt v)
char operator>>= (char v)
char operator &= (ByteInt v)
char operator &= (char v)
char operator|= (ByteInt v)
char operator|= (char v)
char operator^= (ByteInt v)
char operator^= (char v)
char operator++ ()
char operator++ (int)
char operator-- ()
char operator-- (int)


Detailed Description

Represents 8 bit integer.


Author:
Prabakaran Thirumalai

Definition at line 140 of file DataType.h.


Constructor & Destructor Documentation

ByteInt::ByteInt (  )  [inline]

Definition at line 143 of file DataType.h.

00143 { }

ByteInt::ByteInt ( const ByteInt v  )  [inline]

copy constructor

Definition at line 147 of file DataType.h.

References val.

00147 { val = v.val; }

ByteInt::ByteInt ( char  v  )  [inline]

constructor with char

Parameters:
v char value

Definition at line 151 of file DataType.h.

00151 { val = v; }


Member Function Documentation

char ByteInt::operator &= ( char  v  )  [inline]

Definition at line 170 of file DataType.h.

00170 { return val &= v; }

char ByteInt::operator &= ( ByteInt  v  )  [inline]

Definition at line 169 of file DataType.h.

References val.

00169 { return val &= v.val; }

char ByteInt::operator *= ( char  v  )  [inline]

Definition at line 160 of file DataType.h.

00160 { return val *= v; }

char ByteInt::operator *= ( ByteInt  v  )  [inline]

Definition at line 159 of file DataType.h.

References val.

00159 { return val *= v.val; }

ByteInt::operator int (  )  const [inline]

Definition at line 152 of file DataType.h.

00152 { return (int) val; }

char ByteInt::operator%= ( char  v  )  [inline]

Definition at line 164 of file DataType.h.

00164 { return val %= v; }

char ByteInt::operator%= ( ByteInt  v  )  [inline]

Definition at line 163 of file DataType.h.

References val.

00163 { return val %= v.val; }

char ByteInt::operator++ ( int   )  [inline]

Definition at line 176 of file DataType.h.

00176 { char tmp = val; val++; return val; }

char ByteInt::operator++ (  )  [inline]

Definition at line 175 of file DataType.h.

00175 { return val++; }

char ByteInt::operator+= ( char  v  )  [inline]

Definition at line 156 of file DataType.h.

00156 { return val += v; }

char ByteInt::operator+= ( ByteInt  v  )  [inline]

Definition at line 155 of file DataType.h.

References val.

00155 { return val += v.val; }

char ByteInt::operator-- ( int   )  [inline]

Definition at line 178 of file DataType.h.

00178 { char tmp = val; val--; return val; }

char ByteInt::operator-- (  )  [inline]

Definition at line 177 of file DataType.h.

00177 { return val--; }

char ByteInt::operator-= ( char  v  )  [inline]

Definition at line 158 of file DataType.h.

00158 { return val -= v; }

char ByteInt::operator-= ( ByteInt  v  )  [inline]

Definition at line 157 of file DataType.h.

References val.

00157 { return val -= v.val; }

char ByteInt::operator/= ( char  v  )  [inline]

Definition at line 162 of file DataType.h.

00162 { return val /= v; }

char ByteInt::operator/= ( ByteInt  v  )  [inline]

Definition at line 161 of file DataType.h.

References val.

00161 { return val /= v.val; }

char ByteInt::operator<<= ( char  v  )  [inline]

Definition at line 166 of file DataType.h.

00166 { return val <<= v; }

char ByteInt::operator<<= ( ByteInt  v  )  [inline]

Definition at line 165 of file DataType.h.

References val.

00165 { return val <<= v.val; }

char ByteInt::operator= ( char  v  )  [inline]

Definition at line 154 of file DataType.h.

00154 { return val = v; }

char ByteInt::operator= ( ByteInt  v  )  [inline]

Definition at line 153 of file DataType.h.

References val.

00153 { return val = v.val; }

char ByteInt::operator>>= ( char  v  )  [inline]

Definition at line 168 of file DataType.h.

00168 { return val >>= v; }

char ByteInt::operator>>= ( ByteInt  v  )  [inline]

Definition at line 167 of file DataType.h.

References val.

00167 { return val >>= v.val; }

char ByteInt::operator^= ( char  v  )  [inline]

Definition at line 174 of file DataType.h.

00174 { return val ^= v; }

char ByteInt::operator^= ( ByteInt  v  )  [inline]

Definition at line 173 of file DataType.h.

References val.

00173 { return val ^= v.val; }

char ByteInt::operator|= ( char  v  )  [inline]

Definition at line 172 of file DataType.h.

00172 { return val |= v; }

char ByteInt::operator|= ( ByteInt  v  )  [inline]

Definition at line 171 of file DataType.h.

References val.

00171 { return val |= v.val; }


The documentation for this class was generated from the following file:
Generated on Mon Jun 9 22:43:47 2008 for csql by  doxygen 1.4.7