-
Notifications
You must be signed in to change notification settings - Fork 0
/
FirstFit2.h
38 lines (30 loc) · 1.02 KB
/
FirstFit2.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#pragma once
#ifndef __FirstFit2_h__
#define __FirstFit2_h__
//#ident "@(#)FirstFit2.h 2.1 AKK 20090208"
/** @file FirstFit2.h
* @brief The class that implements the eager version of the FirstFit algorithm.
* @author [email protected]
* @version 2.1 2009/02/08
*/
#include "FirstFit.h"
/// @class FirstFit2
/// Het FirstFit algorithme gebruikt het eerste
/// gevonden bruikbare gebied in de resource map.
/// Dit is de eager versie (probeert meteen alles op
/// te ruimen en houdt daarom de gebieden gesorteerd
/// op adres)
class FirstFit2 : public FirstFit
{
public:
explicit // see: http://en.cppreference.com/w/cpp/language/explicit
/// @param cflag initial status of check-mode
/// @param type name of this algorithm (default=FirstFit2)
FirstFit2(bool cflag=false, const char *type = "FirstFit (eager)")
: FirstFit(cflag, type) {}
/// The application returns an area to freespace
/// @param ap The area returned to free space
virtual void free(Area *ap);
};
#endif /*FirstFit2_h*/
// vim:sw=4:ai:aw:ts=4: