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

be_t< T > Class Template Reference

#include <endian_types.h>

Collaboration diagram for be_t< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Private Member Functions

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

Private Attributes

m

template<class T>
class be_t< T >


Constructor & Destructor Documentation

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

Definition at line 166 of file endian_types.h.

References be_t< T >::m.

00166                {
00167         m = 0;
00168     };

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

Definition at line 169 of file endian_types.h.

References be_t< T >::write().

00169                      {
00170         write(o);
00171     };


Member Function Documentation

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

Definition at line 199 of file endian_types.h.

References be_t< T >::m.

00199                                           {
00200         m &= t.m;
00201         return *this;
00202     };

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

Definition at line 172 of file endian_types.h.

References be_t< T >::read().

00172                        {
00173         return read();
00174     };

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

Definition at line 179 of file endian_types.h.

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

00179                             {
00180         write(read() + 1);
00181         return *this;
00182     };

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

Definition at line 175 of file endian_types.h.

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

00175                          {
00176         write(read() + 1);
00177         return *this;
00178     };

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

Definition at line 191 of file endian_types.h.

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

00191                                     {
00192         write(read() + t);
00193         return *this;
00194     };

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

Definition at line 187 of file endian_types.h.

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

00187                             {
00188         write(read() - 1);
00189         return *this;
00190     };

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

Definition at line 183 of file endian_types.h.

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

00183                          {
00184         write(read() - 1);
00185         return *this;
00186     };

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

Definition at line 195 of file endian_types.h.

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

00195                                     {
00196         write(read() - t);
00197         return *this;
00198     };

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

Definition at line 203 of file endian_types.h.

References be_t< T >::m.

00203                                           {
00204         m |= t.m;
00205         return *this;
00206     };

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

Definition at line 159 of file endian_types.h.

References be_to_cpu, and be_t< T >::m.

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

00159                      {
00160         return be_to_cpu(m);
00161     };

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

Definition at line 162 of file endian_types.h.

References cpu_to_be(), and be_t< T >::m.

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

00162                               {
00163         m = cpu_to_be(n);
00164     };


Member Data Documentation

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

Definition at line 158 of file endian_types.h.

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


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