PrevNextUpHome SophiaFramework UNIVERSE 5.3
SFDNew
Class to record the position of source code that allocates memory.
#include <SFDNew.h.hpp>
class SFDNew;
SFMTYPEDEFCLASS(SFDNew)

Description

SFDNew is the class for the recording the positions of source code where memory is allocated by the "new" operator.

[Note] Note
SFDNew is the internal class of SophiaFramework for detecting the memory leak.

Member

Constructor/Destructor
SFDNew( ACharConstPtr file , SInt32 line )
Constructor of the SFDNew class.
Public Functions
T * operator=( T * address )

SFDNew::SFDNew
Constructor of the SFDNew class.
[ public, explicit ]
SFDNew(
    ACharConstPtr file   // file name to record
    SInt32 line          // the line number to record
);

Description

It records the file name and the line number.


SFDNew::operator=
[ public, const ]
T * operator=(
    T * address   // address of object to record the position
);

Return value

Return the address.

Description

The SFDNew::operator= function is used to record the address of object and the position of source code.