GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Gws::Memory Class Reference

Interface to the memory. More...

#include <Memory.h>

Inheritance diagram for Gws::Memory:

Public Types

enum  EEndian { kLittle = 0, kBig = 1 }
 The adjectives big-endian and little-endian refer to which bytes are most significant in multi-byte data types and describe the order in which a sequence of bytes is stored in a computer’s memory. More...
 

Public Member Functions

 Memory ()
 
TSystem * SystemROOT ()
 
virtual ~Memory ()
 

Static Public Member Functions

static void Copy (const Char_t *from, Char_t *to, Int_t size)
 copy the content from -> to More...
 
static void Delete (Char_t *p)
 
static void Delete (Short_t *p)
 
static void Delete (Int_t *p)
 
static void Delete (UChar_t *p)
 
static void Delete (UShort_t *p)
 
static void Delete (UInt_t *p)
 
static void Delete (Float_t *p)
 
static void Delete (Double_t *p)
 
static Int_t GetEndian ()
 
static bool IsBytes (Memory::EEndian e)
 check out the endian type of the running system More...
 
static Char_t * New (Char_t *p, Int_t nb=32 *KBYTE)
 To allocate a buffer that is set to 0 (some compilers don't do it) More...
 
static Short_t * New (Short_t *p, Int_t nb=32 *KBYTE)
 
static Int_t * New (Int_t *p, Int_t nb=32 *KBYTE)
 
static UChar_t * New (UChar_t *p, Int_t nb=32 *KBYTE)
 
static UShort_t * New (UShort_t *p, Int_t nb=32 *KBYTE)
 
static UInt_t * New (UInt_t *p, Int_t nb=32 *KBYTE)
 
static Float_t * New (Float_t *p, Int_t nb=32 *KBYTE)
 
static Double_t * New (Double_t *p, Int_t nb=32 *KBYTE)
 
static Char_t * New (Char_t *p, UInt_t nb=32 *KBYTE)
 
static Short_t * New (Short_t *p, UInt_t nb=32 *KBYTE)
 
static Int_t * New (Int_t *p, UInt_t nb=32 *KBYTE)
 
static Long_t * New (Long_t *p, UInt_t nb=32 *KBYTE)
 
static UChar_t * New (UChar_t *p, UInt_t nb=32 *KBYTE)
 
static UShort_t * New (UShort_t *p, UInt_t nb=32 *KBYTE)
 
static UInt_t * New (UInt_t *p, UInt_t nb=32 *KBYTE)
 
static Float_t * New (Float_t *p, UInt_t nb=32 *KBYTE)
 
static Double_t * New (Double_t *p, UInt_t nb=32 *KBYTE)
 
static void Swap (Short_t, Char_t *)
 the Swap members More...
 
static void Swap (UShort_t, Char_t *)
 
static void Swap (Int_t, Char_t *)
 
static void Swap (UInt_t, Char_t *)
 
static void Swap (Float_t, Char_t *)
 
static void Swap (Double_t, Char_t *)
 
static void Swap (Char_t *, Short_t &)
 
static void Swap (Char_t *, UShort_t &)
 
static void Swap (Char_t *, Int_t &)
 
static void Swap (Char_t *, UInt_t &)
 
static void Swap (Char_t *, Float_t &)
 
static void Swap (Char_t *, Double_t &)
 
static void Zero (Char_t *p, Int_t nb)
 fast initialization of the buffer at 0 More...
 
static void Zero (Short_t *p, Int_t nb)
 
static void Zero (Int_t *p, Int_t nb)
 
static void Zero (UChar_t *p, Int_t nb)
 
static void Zero (UShort_t *p, Int_t nb)
 
static void Zero (UInt_t *p, Int_t nb)
 
static void Zero (Float_t *p, Int_t nb)
 
static void Zero (Double_t *p, Int_t nb)
 
static void Zero (Char_t *p, UInt_t nb)
 
static void Zero (Short_t *p, UInt_t nb)
 
static void Zero (Int_t *p, UInt_t nb)
 
static void Zero (UChar_t *p, UInt_t nb)
 
static void Zero (UShort_t *p, UInt_t nb)
 
static void Zero (UInt_t *p, UInt_t nb)
 
static void Zero (Float_t *p, UInt_t nb)
 
static void Zero (Double_t *p, UInt_t nb)
 

Detailed Description

Interface to the memory.

It defines a set of useful functions to deal with buffers of basic types. It also determined the endian type of the system you are working with. This class is used by Buffer and EndianBuffer to get buffers that can be read whatever their origin as soos as the endian type of the source of data is known.

Definition at line 48 of file Memory.h.


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