ROOT logo
AliRoot » HLT » BASE » AliHLTDataBuffer::AliHLTRawPage

class AliHLTDataBuffer::AliHLTRawPage: public AliHLTLogging

This file is property of and copyright by the
ALICE Experiment at CERN, All rights reserved.

Primary Authors: Matthias Richter <Matthias.Richter@ift.uib.no>
for The ALICE HLT Project.

Permission to use, copy, modify and distribute this software and its
documentation strictly for non-commercial purposes is hereby granted
without fee, provided that the above copyright notice appears in all
copies and that both the copyright notice and this permission notice
appear in the supporting documentation. The authors make no claims
about the suitability of this software for any purpose. It is
provided "as is" without express or implied warranty.

Function Members (Methods)

public:
virtual~AliHLTRawPage()
AliHLTDataBuffer::AliHLTRawPageAliHLTRawPage()
AliHLTDataBuffer::AliHLTRawPageAliHLTRawPage(AliHLTUInt32_t pagesize)
AliHLTDataBuffer::AliHLTRawBuffer*Alloc(AliHLTUInt32_t size)
static const char*AliHLTLogging::BuildLogString(const char* format, va_list& ap, bool bAppend = false)
AliHLTUInt32_tCapacity() const
intAliHLTLogging::CheckFilter(AliHLTComponentLogSeverity severity) const
intAliHLTLogging::CheckGroup(const char* originClass) const
static TClass*AliHLTLogging::Class()
static AliHLTDataBuffer::AliHLTRawPage*FindPage(AliHLTDataBuffer::AliHLTRawBuffer* buffer)
intFree(AliHLTDataBuffer::AliHLTRawBuffer* pBuffer)
static AliHLTComponentLogSeverityAliHLTLogging::GetGlobalLoggingLevel()
const char*AliHLTLogging::GetKeyword() const
static AliHLTComponentLogSeverityAliHLTLogging::GetLocalLoggingDefault()
AliHLTComponentLogSeverityAliHLTLogging::GetLocalLoggingLevel()
virtual void*AliHLTLogging::GetParameter() const
static AliHLTDataBuffer::AliHLTRawBuffer*GlobalAlloc(AliHLTUInt32_t size, int verbosity = 0)
static intGlobalClean()
boolHasBuffer(const AliHLTDataBuffer::AliHLTRawBuffer* pBuffer)
static intAliHLTLogging::Init(AliHLTfctLogging pFun)
static intAliHLTLogging::InitAliLogFunc(AliHLTComponentHandler* pHandler)
static intAliHLTLogging::InitAliLogTrap(AliHLTComponentHandler* pHandler)
virtual TClass*AliHLTLogging::IsA() const
boolIsFragmented() const
boolIsUsed() const
intAliHLTLogging::Logging(AliHLTComponentLogSeverity severity, const char* origin, const char* keyword, const char* message)
virtual intAliHLTLogging::LoggingVarargs(AliHLTComponentLogSeverity severity, const char* originClass, const char* originFunc, const char* file, int line) const
static intAliHLTLogging::Message(void* param, AliHLTComponentLogSeverity severity, const char* origin, const char* keyword, const char* message)
static AliHLTDataBuffer::AliHLTRawPage*NextPage(const AliHLTDataBuffer::AliHLTRawPage* prev = 0)
virtual voidPrint(const char* option)
intAliHLTLogging::SendMessage(AliHLTComponentLogSeverity severity, const char* originClass, const char* originFunc, const char* file, int line, const char* message) const
static intAliHLTLogging::SetBlackList(const char* classnames)
voidAliHLTLogging::SetDefaultKeyword(const char* keyword)
static voidAliHLTLogging::SetGlobalLoggingLevel(AliHLTComponentLogSeverity level)
static voidSetGlobalPageSize(AliHLTUInt32_t size)
const char*AliHLTLogging::SetKeyword(const char* keyword)
static voidAliHLTLogging::SetLocalLoggingDefault(AliHLTComponentLogSeverity level)
virtual voidAliHLTLogging::SetLocalLoggingLevel(AliHLTComponentLogSeverity level)
static const char*AliHLTLogging::SetLogString(const void* p, const char* pfmt, const char* format)
intSetSize(const AliHLTDataBuffer::AliHLTRawBuffer* pBuffer, AliHLTUInt32_t size)
static intAliHLTLogging::SetWhiteList(const char* classnames)
virtual voidAliHLTLogging::ShowMembers(TMemberInspector&)
AliHLTUInt32_tSize() const
virtual voidAliHLTLogging::Streamer(TBuffer&)
voidAliHLTLogging::StreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
voidAliHLTLogging::SwitchAliLog(int sw)

Data Members

public:
static ostringstreamAliHLTLogging::fgLogstr! transient
protected:
static void*AliHLTLogging::fgAliLoggingFunc! transient
private:
AliHLTDataBuffer::AliHLTRawBufferPListfFreeBuffers! transient
AliHLTUInt8_t*fPtr! transient
AliHLTUInt32_tfSizesee above
AliHLTDataBuffer::AliHLTRawBufferPListfUsedBuffers! transient
static AliHLTUInt32_tfgGlobalPageSize! transient
static vector<AliHLTDataBuffer::AliHLTRawPage*>fgGlobalPages! transient

Class Charts

Inheritance Chart:
AliHLTLogging
AliHLTDataBuffer::AliHLTRawPage

Function documentation

AliHLTRawPage(AliHLTUInt32_t pagesize)
 constructor
~AliHLTRawPage()
 destructor
AliHLTDataBuffer::AliHLTRawBuffer* Alloc(AliHLTUInt32_t size)
 alloc a buffer of specified size
int Free(AliHLTDataBuffer::AliHLTRawBuffer* pBuffer)
 free a buffer and merge consecutive free buffers
int SetSize(const AliHLTDataBuffer::AliHLTRawBuffer* pBuffer, AliHLTUInt32_t size)
 set the size of a raw buffer and release the remaining part
bool HasBuffer(const AliHLTDataBuffer::AliHLTRawBuffer* pBuffer)
 check if the buffer is in this page
AliHLTUInt32_t Capacity() const
 get max available contiguous buffer
void Print(const char* option)
 print page information
AliHLTDataBuffer::AliHLTRawBuffer* GlobalAlloc(AliHLTUInt32_t size, int verbosity = 0)
 alloc a buffer of specified size from the global pages
AliHLTDataBuffer::AliHLTRawPage* FindPage(AliHLTDataBuffer::AliHLTRawBuffer* buffer)
 find buffer in the global pages
int GlobalClean()
 cleanup the global pages *
AliHLTDataBuffer::AliHLTRawPage* NextPage(const AliHLTDataBuffer::AliHLTRawPage* prev = 0)
 get next global page
AliHLTDataSegment& operator=(const AliHLTDataBuffer::AliHLTRawPage& )
 AliHLTDataSegment just stores external pointers and properties
AliHLTRawPage()
 standard constructor 
{}
AliHLTRawPage(AliHLTUInt32_t pagesize)
 constructor 
void SetGlobalPageSize(AliHLTUInt32_t size)
 adjust global page size 
AliHLTUInt32_t Size() const
{return fSize;}
bool IsUsed() const
{return fUsedBuffers.size()>0;}
bool IsFragmented() const
{return (fFreeBuffers.size()+fUsedBuffers.size())>1;}