StArchInfo Class Reference

#include <StArchInfo.h>

List of all members.

Public Member Functions

 StArchInfo ()
 Constructor, initialize variables.
 ~StArchInfo ()
 Destructore - NOOP.
Bool_t isBigEndian ()
 Returns true/false if endianess is/ins't Big.
Bool_t isLittleEndian ()
 Returns true/false if endianess is/ins't Little.
Int_t Endian ()

Static Public Member Functions

template<typename T >
static long align (const T &)
 Returns the number of bytes the type T has to be align to.
template<typename T >
static int align ()
 This is an overloaded member function, provided for convenience.
template<typename C , typename T >
static int padding (const T &offset)
 Returns the number of bytes to be added to the offset of the T type to get the C type proper aligned.
template<typename T , typename C >
static int padding (const T &offset, const C &)
 This is an overloaded member function, provided for convenience.


Detailed Description

Author:
Jerome Lauret, 2009
Singleton based class providing information on OS information

Definition at line 29 of file StArchInfo.h.


Member Function Documentation

template<typename T >
static int StArchInfo::align (  )  [inline, static]

This is an overloaded member function, provided for convenience.

Returns the number of bytes the type T has to be align to

Author:
Valeri Fine, 2009
See also:
AligmentTest.C

Definition at line 51 of file StArchInfo.h.

template<typename T , typename C >
static int StArchInfo::padding ( const T &  offset,
const C &   
) [inline, static]

This is an overloaded member function, provided for convenience.

Returns the number of bytes to be added to the offset of the T type to get the C type proper aligned

Author:
Valeri Fine, 2009
See also:
AligmentTest.C

Definition at line 80 of file StArchInfo.h.

template<typename C , typename T >
static int StArchInfo::padding ( const T &  offset  )  [inline, static]

Returns the number of bytes to be added to the offset of the T type to get the C type proper aligned.

Author:
Valeri Fine, 2009
See also:
AligmentTest.C

http://en.wikipedia.org/wiki/Data_structure_alignment#Computing_padding

Definition at line 67 of file StArchInfo.h.


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

Generated on Fri Feb 10 04:27:58 2012 for StRoot by  doxygen 1.5.9