Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

UpoEndian.h

Go to the documentation of this file.
00001 #ifndef Impala_Core_Array_Trait_UpoEndian_h
00002 #define Impala_Core_Array_Trait_UpoEndian_h
00003 
00004 #include "Core/Array/Pattern/Categories.h"
00005 #include "Basis/Endian.h"
00006 
00007 namespace Impala
00008 {
00009 namespace Core
00010 {
00011 namespace Array
00012 {
00013 namespace Trait
00014 {
00015 
00016 
00019 template<class DstArrayT, class SrcArrayT>
00020 class UpoEndian
00021 {
00022 public:
00024     typedef Pattern::TagTransInVar TransVarianceCategory;
00025 
00027     typedef Pattern::TagCallPointer CallCategory;
00028 
00029     typedef typename DstArrayT::StorType DstStorT;
00030     typedef typename SrcArrayT::StorType SrcStorT;
00031 
00032     UpoEndian()
00033     {
00034     }
00035 
00036     void
00037     DoIt(DstStorT* dst, SrcStorT* src)
00038     {
00039         *dst = *src;
00040         EndianSwap(dst);
00041     }
00042 
00043 };
00044 
00045 } // namespace Trait
00046 } // namespace Array
00047 } // namespace Core
00048 } // namespace Impala
00049 
00050 #endif

Generated on Fri Mar 19 09:31:02 2010 for ImpalaSrc by  doxygen 1.5.1