Ignore:
Timestamp:
Oct 9, 2009, 10:54:52 AM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
3efb4a
Parents:
70b7aa
Message:

forward declarations used to untangle interdependet classes.

  • basically, everywhere in header files we removed '#include' lines were only pointer to the respective classes were used and the include line was moved to the implementation file.
  • as a sidenote, lots of funny errors happened because headers were included via a nesting over three other includes. Now, all should be declared directly as needed, as only very little include lines remain in header files.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/memoryallocator.hpp

    r70b7aa r17b3a5c  
    88
    99using namespace std;
     10
     11/*********************************************** includes ***********************************/
    1012
    1113// include config.h
     
    2628#include "memoryusageobserver.hpp"
    2729
    28 /******************* wrappers for memory allocation functions ***********************/
     30/********************************************** declarations *******************************/
    2931
    30 /**
    31  * Allocates a memory range using malloc().
     32/** Allocates a memory range using malloc().
    3233 * Prints the provided error message in case of a failure.
    3334 *
     
    5455template <> char* Malloc<char>(size_t size, const char* output);
    5556
    56 /**
    57  * Allocates a memory range using calloc().
     57/** Allocates a memory range using calloc().
    5858 * Prints the provided error message in case of a failure.
    5959 *
     
    7777};
    7878
    79 /**
    80  * Reallocates a memory range using realloc(). If the provided pointer to the old
     79/** Reallocates a memory range using realloc(). If the provided pointer to the old
    8180 * memory range is NULL, malloc() is called instead.
    8281 * Prints the provided error message in case of a failure (of either malloc() or realloc()).
     
    106105};
    107106
    108 /**
    109  * Frees allocated memory range using free().
     107/** Frees allocated memory range using free().
    110108 *
    111109 * \param pointer to the allocated memory range to free; may be NULL, this function is a no-op then
Note: See TracChangeset for help on using the changeset viewer.