StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
StArchInfo Class Reference

#include <StArchInfo.h>

Inheritance diagram for StArchInfo:

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. More...
 
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. More...
 
template<typename T , typename C >
static int padding (const T &offset, const C &)
 This is an overloaded member function, provided for convenience. More...
 

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 ( )
inlinestatic

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 C , typename T >
static int StArchInfo::padding ( const T &  offset)
inlinestatic

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.

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

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.


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