Share::SegmentDebuger Class Reference
[sharectl utility]

Wrapper around SegmentHeader class for sharectl. More...

#include <sharectl.h>

Collaboration diagram for Share::SegmentDebuger:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SegmentDebuger (SegmentHeader *shareManager)
void refCountAction (ArgParser::Action action)
bool shouldBeDestroyed ()
void alloc (size_t size)
void free (size_t relativePointer)

Friends

std::ostream & operator<< (std::ostream &, SegmentDebuger &)
 Stream SegmentHeader statistics to output stream.

Detailed Description

Wrapper around SegmentHeader class for sharectl.

Definition at line 143 of file sharectl.h.


Constructor & Destructor Documentation

Share::SegmentDebuger::SegmentDebuger ( SegmentHeader shareManager  ) 

Parameters:
shareManager ShareManager object to work with.


Member Function Documentation

void Share::SegmentDebuger::refCountAction ( ArgParser::Action  action  ) 

Call relevant ShareManager method.

Parameters:
action Expected values are NOTIFY_ATTACH, NOTIFY_DETACH or UNLINK

bool Share::SegmentDebuger::shouldBeDestroyed (  ) 

Returns:
Return if shared segment should be destroyed due to share protocol

void Share::SegmentDebuger::alloc ( size_t  size  ) 

Attempt to allocate block of memory in shared segment

Parameters:
size Size of block to allocate.

void Share::SegmentDebuger::free ( size_t  relativePointer  ) 

Attempt to free bloc kof memory in shared segment

Parameters:
relativePointer Relative pointer to block to free.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
SegmentDebuger  
) [friend]

Stream SegmentHeader statistics to output stream.


The documentation for this class was generated from the following file:
Generated on Sun Aug 26 17:43:04 2007 for ShareLibrary by  doxygen 1.5.2