Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F27036627
Lookuptable.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Authored By
Unknown
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
Tue, Oct 27, 8:06 PM (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
411439
Default Alt Text
Lookuptable.h (778 B)
Attached To
Mode
R20 SoC_Rosa_repo
Attached
Detach File
Event Timeline