utility_tests.cpp File Reference

#include <stdlib.h>
#include <new>
#include <iostream>
#include "utility.h"
#include "op_exception.h"
Include dependency graph for utility_tests.cpp:

Go to the source code of this file.

Data Structures

struct  A

Functions

void * operator new (size_t size) throw (bad_alloc)
void * operator new[] (size_t size) throw (bad_alloc)
void operator delete (void *p) throw ()
void operator delete[] (void *p) throw ()
void check_alloc ()
template<typename Throw , typename Catch >
void throw_tests ()
template<typename Throw , typename Catch >
void throw_tests (bool)
void tests_new ()
int main ()

Variables

static int nb_new
static int nb_new_array

Detailed Description

tests utility.h and op_exception.h

Remarks:
Copyright 2003 OProfile authors
Read the file COPYING
Author:
John Levon
Philippe Elie

Definition in file utility_tests.cpp.


Function Documentation

void check_alloc (  ) 

Definition at line 51 of file utility_tests.cpp.

References nb_new, and nb_new_array.

Referenced by main().

Here is the caller graph for this function:

int main ( void   ) 

Definition at line 106 of file utility_tests.cpp.

References check_alloc(), and tests_new().

Here is the call graph for this function:

void operator delete ( void *  p  )  throw ()

Definition at line 36 of file utility_tests.cpp.

References nb_new.

void operator delete[] ( void *  p  )  throw ()

Definition at line 43 of file utility_tests.cpp.

References nb_new_array.

void* operator new ( size_t  size  )  throw (bad_alloc)

Definition at line 24 of file utility_tests.cpp.

References nb_new.

void* operator new[] ( size_t  size  )  throw (bad_alloc)

Definition at line 30 of file utility_tests.cpp.

References nb_new_array.

void tests_new (  ) 

Definition at line 93 of file utility_tests.cpp.

Referenced by main().

Here is the caller graph for this function:

template<typename Throw , typename Catch >
void throw_tests ( bool   )  [inline]

Definition at line 81 of file utility_tests.cpp.

template<typename Throw , typename Catch >
void throw_tests (  )  [inline]

Definition at line 68 of file utility_tests.cpp.


Variable Documentation

int nb_new [static]

Definition at line 21 of file utility_tests.cpp.

Referenced by check_alloc(), operator delete(), and operator new().

int nb_new_array [static]

Definition at line 22 of file utility_tests.cpp.

Referenced by check_alloc(), operator delete[](), and operator new[]().


Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1