Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1498209
Lookuptable.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Size
778 B
Referenced Files
None
Subscribers
None
Lookuptable.h
View Options
#ifndef LOOKUPTABLE_HEADERFILE
#define LOOKUPTABLE_HEADERFILE
#include
"Module.h"
#include
"Range.h"
#define MAX_NUM_OF_RANGES 10
#define INCLUDED true
#define EXCLUDED false
class
Lookuptable
:
public
Module
{
private
:
bool
lookuptable_is_correct_and_active
;
unsigned
int
num_of_ranges
;
Range
list_of_ranges
[
MAX_NUM_OF_RANGES
];
public
:
Lookuptable
();
Lookuptable
(
char
*
name
);
bool
add_range_to_lookuptable
(
int
score
,
float
lower_boundary
,
bool
flag_lower_boundary_included
,
float
upper_boundary
,
bool
flag_upper_boundary_included
);
bool
check_sort_and_activate
();
bool
get_lookuptable_is_correct_and_active
();
int
get_score
(
float
input
);
//testing/debugging functions
void
printf_ranges
();
};
#endif
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Mar 1, 10:24 PM (21 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
281262
Default Alt Text
Lookuptable.h (778 B)
Attached To
Mode
R20 SoC_Rosa_repo
Attached
Detach File
Event Timeline
Log In to Comment