Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

le_t< T > Class Template Reference

#include <endian_types.h>

Collaboration diagram for le_t< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 le_t (void)
 le_t (const T &o)
 operator T () const
le_t< T > operator++ ()
le_t< T > operator++ (int)
le_t< T > operator-- ()
le_t< T > operator-- (int)
le_t< T > & operator+= (const T &t)
le_t< T > & operator-= (const T &t)
le_t< T > & operator &= (const le_t< T > &t)
le_t< T > & operator|= (const le_t< T > &t)

Private Member Functions

read () const
void write (const T &n)

Private Attributes

m

template<class T>
class le_t< T >


Constructor & Destructor Documentation

template<class T>
le_t< T >::le_t void   )  [inline]
 

Definition at line 112 of file endian_types.h.

References le_t< T >::m.

00112                {
00113         m = 0;
00114     };

template<class T>
le_t< T >::le_t const T &  o  )  [inline]
 

Definition at line 115 of file endian_types.h.

References le_t< T >::write().

00115                      {
00116         write(o);
00117     };


Member Function Documentation

template<class T>
le_t<T>& le_t< T >::operator &= const le_t< T > &  t  )  [inline]
 

Definition at line 145 of file endian_types.h.

References le_t< T >::m.

00145                                           {
00146         m &= t.m;
00147         return *this;
00148     };

template<class T>
le_t< T >::operator T  )  const [inline]
 

Definition at line 118 of file endian_types.h.

References le_t< T >::read().

00118                        {
00119         return read();
00120     };

template<class T>
le_t<T> le_t< T >::operator++ int   )  [inline]
 

Definition at line 125 of file endian_types.h.

References le_t< T >::read(), and le_t< T >::write().

00125                             {
00126         write(read() + 1);
00127         return *this;
00128     };

template<class T>
le_t<T> le_t< T >::operator++  )  [inline]
 

Definition at line 121 of file endian_types.h.

References le_t< T >::read(), and le_t< T >::write().

00121                          {
00122         write(read() + 1);
00123         return *this;
00124     };

template<class T>
le_t<T>& le_t< T >::operator+= const T &  t  )  [inline]
 

Definition at line 137 of file endian_types.h.

References le_t< T >::read(), and le_t< T >::write().

00137                                     {
00138         write(read() + t);
00139         return *this;
00140     };

template<class T>
le_t<T> le_t< T >::operator-- int   )  [inline]
 

Definition at line 133 of file endian_types.h.

References le_t< T >::read(), and le_t< T >::write().

00133                             {
00134         write(read() - 1);
00135         return *this;
00136     };

template<class T>
le_t<T> le_t< T >::operator--  )  [inline]
 

Definition at line 129 of file endian_types.h.

References le_t< T >::read(), and le_t< T >::write().

00129                          {
00130         write(read() - 1);
00131         return *this;
00132     };

template<class T>
le_t<T>& le_t< T >::operator-= const T &  t  )  [inline]
 

Definition at line 141 of file endian_types.h.

References le_t< T >::read(), and le_t< T >::write().

00141                                     {
00142         write(read() - t);
00143         return *this;
00144     };

template<class T>
le_t<T>& le_t< T >::operator|= const le_t< T > &  t  )  [inline]
 

Definition at line 149 of file endian_types.h.

References le_t< T >::m.

00149                                           {
00150         m |= t.m;
00151         return *this;
00152     };

template<class T>
T le_t< T >::read  )  const [inline, private]
 

Definition at line 105 of file endian_types.h.

References le_to_cpu, and le_t< T >::m.

Referenced by le_t< T >::operator T(), le_t< T >::operator++(), le_t< T >::operator+=(), le_t< T >::operator--(), and le_t< T >::operator-=().

00105                      {
00106         return le_to_cpu(m);
00107     };

template<class T>
void le_t< T >::write const T &  n  )  [inline, private]
 

Definition at line 108 of file endian_types.h.

References cpu_to_le(), and le_t< T >::m.

Referenced by le_t< T >::le_t(), le_t< T >::operator++(), le_t< T >::operator+=(), le_t< T >::operator--(), and le_t< T >::operator-=().

00108                               {
00109         m = cpu_to_le(n);
00110     };


Member Data Documentation

template<class T>
T le_t< T >::m [private]
 

Definition at line 104 of file endian_types.h.

Referenced by le_t< T >::le_t(), le_t< T >::operator &=(), le_t< T >::operator|=(), le_t< T >::read(), and le_t< T >::write().


The documentation for this class was generated from the following file:
Generated on Sun Mar 11 22:13:10 2007 for Kino by  doxygen 1.4.2