This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
DESLinkedList.h | |
Implements a class template of a double-ended | |
(front-and-end-pointered) singly-linked list. | |
@author Sam Griffiths | |
www.computist.xyz | |
*/ | |
#pragma once |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Queue.h | |
Implements a class template of a queue | |
abstract data type. | |
@author Sam Griffiths | |
www.computist.xyz | |
*/ | |
#pragma once |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Entity.cpp | |
Implements the Entity class, representing | |
an object within the game engine. | |
@author Sam Griffiths | |
www.computist.xyz | |
*/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
EntityManager.cpp | |
Implements the EntityManager class, representing | |
a collection of Entities responsible for their | |
instantiation. | |
@author Sam Griffiths | |
www.computist.xyz | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
SparseSet.h | |
Implements a class template of a sparse | |
set of unsigned integers. | |
@author Sam Griffiths | |
www.computist.xyz | |
*/ | |
#pragma once |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Times a given function call, plus arguments, in seconds | |
//Change to Args& if reference passing is required | |
template <typename F, typename... Args> | |
double timeFunc(F func, Args... args) | |
{ | |
using clock = std::chrono::high_resolution_clock; | |
auto t0 = clock::now(); | |
func(args...); | |
auto t1 = clock::now(); |