uLib-0.2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
uLib::BitCode2< T, L1, L2 > Class Template Reference

#include <Math/BitCode.h>

Data Structures

struct  BitField
 
union  CodeSet
 

Public Member Functions

 BitCode2 ()
 
 BitCode2 (const T &data)
 
 BitCode2 (const Vector2i &data)
 
CommaInit operator<< (T scalar)
 
BitFieldoperator() ()
 
const BitFieldoperator() () const
 
 operator Vector2i ()
 
void set (const T data)
 
get () const
 

Static Public Member Functions

static const int size ()
 

Data Fields

union uLib::BitCode2::CodeSet m_data
 

Protected Types

typedef T Type
 
typedef BitCode2< T, L1, L2 > ThisClass
 
typedef
CommaInitializerBitCode
< ThisClass, T > 
CommaInit
 

Protected Member Functions

 BOOST_STATIC_ASSERT_MSG (boost::is_unsigned< T >::value==1,"CODE TYPE MUST BE UNSIGNED")
 
 BOOST_STATIC_ASSERT (L1+L2==sizeof(T)*8)
 

Member Typedef Documentation

template<typename T , uint L1, uint L2>
typedef CommaInitializerBitCode< ThisClass, T > uLib::BitCode2< T, L1, L2 >::CommaInit
protected
template<typename T , uint L1, uint L2>
typedef BitCode2<T,L1,L2> uLib::BitCode2< T, L1, L2 >::ThisClass
protected
template<typename T , uint L1, uint L2>
typedef T uLib::BitCode2< T, L1, L2 >::Type
protected

Constructor & Destructor Documentation

template<typename T , uint L1, uint L2>
uLib::BitCode2< T, L1, L2 >::BitCode2 ( )
inline
template<typename T , uint L1, uint L2>
uLib::BitCode2< T, L1, L2 >::BitCode2 ( const T &  data)
inline
template<typename T , uint L1, uint L2>
uLib::BitCode2< T, L1, L2 >::BitCode2 ( const Vector2i data)
inline

Member Function Documentation

template<typename T , uint L1, uint L2>
uLib::BitCode2< T, L1, L2 >::BOOST_STATIC_ASSERT ( L1+  L2 = =sizeof(T)*8)
protected
template<typename T , uint L1, uint L2>
uLib::BitCode2< T, L1, L2 >::BOOST_STATIC_ASSERT_MSG ( boost::is_unsigned< T >::value  = =1,
"CODE TYPE MUST BE UNSIGNED"   
)
protected
template<typename T , uint L1, uint L2>
T uLib::BitCode2< T, L1, L2 >::get ( ) const
inline
template<typename T , uint L1, uint L2>
uLib::BitCode2< T, L1, L2 >::operator Vector2i ( )
inline
template<typename T , uint L1, uint L2>
BitField& uLib::BitCode2< T, L1, L2 >::operator() ( )
inline
template<typename T , uint L1, uint L2>
const BitField& uLib::BitCode2< T, L1, L2 >::operator() ( ) const
inline
template<typename T , uint L1, uint L2>
CommaInit uLib::BitCode2< T, L1, L2 >::operator<< ( scalar)
inline
template<typename T , uint L1, uint L2>
void uLib::BitCode2< T, L1, L2 >::set ( const T  data)
inline
template<typename T , uint L1, uint L2>
static const int uLib::BitCode2< T, L1, L2 >::size ( )
inlinestatic

Field Documentation

template<typename T , uint L1, uint L2>
union uLib::BitCode2::CodeSet uLib::BitCode2< T, L1, L2 >::m_data

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