Public Member Functions | Public Attributes

CommonShellMalloc Struct Reference

We use a common IMalloc object for all shell memory allocations. More...

#include <shellclasses.h>

Collaboration diagram for CommonShellMalloc:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CommonShellMalloc ()
void init ()
 ~CommonShellMalloc ()
 operator IMalloc * ()

Public Attributes

IMalloc * _p

Detailed Description

We use a common IMalloc object for all shell memory allocations.

Definition at line 222 of file shellclasses.h.


Constructor & Destructor Documentation

CommonShellMalloc::CommonShellMalloc (  ) [inline]

Definition at line 224 of file shellclasses.h.

References _p.

    {
        _p = NULL;
    }
CommonShellMalloc::~CommonShellMalloc (  ) [inline]

Definition at line 235 of file shellclasses.h.

References _p.

    {
        if (_p)
            _p->Release();
    }

Member Function Documentation

void CommonShellMalloc::init (  ) [inline]

Definition at line 229 of file shellclasses.h.

References _p, and CHECKERROR.

Referenced by ShellMalloc::ShellMalloc().

    {
        if (!_p)
            CHECKERROR(SHGetMalloc(&_p));
    }

Here is the caller graph for this function:

CommonShellMalloc::operator IMalloc * (  ) [inline]

Definition at line 241 of file shellclasses.h.

References _p.

    {
        return _p;
    }

Member Data Documentation

Definition at line 246 of file shellclasses.h.

Referenced by CommonShellMalloc(), init(), operator IMalloc *(), and ~CommonShellMalloc().


The documentation for this struct was generated from the following file:

ROS Explorer Source Code Documentation
generated on 02.01.2013 by doxygen

ROS Explorer Homepage