Empirical
Classes | Namespaces
TypeTracker.h File Reference

Track class types abstractly to dynamically call correct function overloads. More...

#include <unordered_map>
#include "../base/array.h"
#include "../base/assert.h"
#include "../meta/meta.h"
#include "functions.h"
#include "GenericFunction.h"
#include "map_utils.h"

Go to the source code of this file.

Classes

struct  emp::TrackedType
 The base class of any type to be tracked. More...
 
struct  emp::TypeTracker_Class< REAL_T, ID >
 
struct  emp::TypeTracker< TYPES >
 

Namespaces

 emp
 If we are in emscripten, make sure to include the header.
 

Detailed Description

Track class types abstractly to dynamically call correct function overloads.

Note
This file is part of Empirical, https://github.com/devosoft/Empirical
Date
2016-2017
Note
Status: BETA
Todo:

Should use std::is_convertible<X,Y>::value to determine if casting on base type is allowed.

Functions should be able to have fixed type values mixed in.