My Project
Loading...
Searching...
No Matches
omallocClass Class Reference

#include <omallocClass.h>

Public Member Functions

void * operator new (size_t size) throw (std::bad_alloc)
 
void operator delete (void *block) throw ()
 
void * operator new[] (size_t size) throw (std::bad_alloc)
 
void operator delete[] (void *block) throw ()
 
void * operator new (size_t size, const std::nothrow_t &) throw ()
 
void * operator new[] (size_t size, const std::nothrow_t &) throw ()
 

Detailed Description

Definition at line 19 of file omallocClass.h.

Member Function Documentation

◆ operator delete()

void omallocClass::operator delete ( void * block)
throw ( )
inline

Definition at line 34 of file omallocClass.h.

38{
39 omFree( block );
40}
#define omFree(addr)
#define block
Definition scanner.cc:646

◆ operator delete[]()

void omallocClass::operator delete[] ( void * block)
throw ( )
inline

Definition at line 54 of file omallocClass.h.

58{
59 omfree( block );
60}
#define omfree(addr)

◆ operator new() [1/2]

void * omallocClass::operator new ( size_t size)
throw (std::bad_alloc )
inline

Definition at line 24 of file omallocClass.h.

28{
29 void* addr;
30 omTypeAlloc(void*, addr, size);
31 return addr;
32}
int size(const CanonicalForm &f, const Variable &v)
int size ( const CanonicalForm & f, const Variable & v )
Definition cf_ops.cc:600
#define omTypeAlloc(type, addr, size)

◆ operator new() [2/2]

void * omallocClass::operator new ( size_t size,
const std::nothrow_t &  )
throw ( )

Definition at line 34 of file omallocClass.cc.

35{
36 void* addr;
37 omTypeAlloc(void*, addr, size);
38 return addr;
39}

◆ operator new[]() [1/2]

void * omallocClass::operator new[] ( size_t size)
throw (std::bad_alloc )
inline

Definition at line 43 of file omallocClass.h.

47{
48 void* addr;
49 if (size==(size_t)0) size = (size_t)1;
50 omTypeAlloc(void*, addr, size);
51 return addr;
52}

◆ operator new[]() [2/2]

void * omallocClass::operator new[] ( size_t size,
const std::nothrow_t &  )
throw ( )

Definition at line 41 of file omallocClass.cc.

42{
43 void* addr;
44 if (size==(size_t)0) size = (size_t)1;
45 omTypeAlloc(void*, addr, size);
46 return addr;
47}

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