Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

Value.cpp File Reference


Detailed Description

Implements the mcMathMng class.

Author:
Francesco Montorsi
Date:
12-8-2004

Definition in file Value.cpp.

#include "mc/mcprec.h"
#include <wx/string.h>
#include "mc/MathUtils.h"
#include "mc/Value.h"

Include dependency graph for Value.cpp:

Go to the source code of this file.

Functions

void * mcGMPAlloc (size_t n)
 Allocates n bytes and returns a pointer to the starting address of the allocated memory.
void mcGMPFree (void *mem, size_t)
 Frees the given pointer of the given size.
void * mcGMPRealloc (void *mem, size_t oldsize, size_t newsize)
 Reallocates the oldsz bytes pointed by p returning an address to newsz allocated bytes.


Function Documentation

void* mcGMPAlloc size_t  n  ) 
 

Allocates n bytes and returns a pointer to the starting address of the allocated memory.

Uses the NEW operator. Used by MathCore to enable GMP to use new and delete C++ operators.

Definition at line 76 of file Value.cpp.

Referenced by mcValue::Init(), and mcGMPRealloc().

void mcGMPFree void *  ,
size_t 
 

Frees the given pointer of the given size.

Uses the DELETE [] operator. Used by MathCore to enable GMP to use new and delete C++ operators.

Definition at line 77 of file Value.cpp.

Referenced by mcValue::Init(), and mcGMPRealloc().

void* mcGMPRealloc void *  p,
size_t  oldsz,
size_t  newsz
 

Reallocates the oldsz bytes pointed by p returning an address to newsz allocated bytes.

Uses NEW and DELETE []. Used by MathCore to enable GMP to use new and delete C++ operators.

Definition at line 79 of file Value.cpp.

References mcGMPAlloc(), mcGMPFree(), and mcMIN.

Referenced by mcValue::Init().



Documentation generated with Doxygen on Sun Feb 6 17:12:13 2005
Visit MathStudio home page for more info

[ Top ]