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
### Keybase proof | |
I hereby claim: | |
* I am dschwen on github. | |
* I am dschwen (https://keybase.io/dschwen) on keybase. | |
* I have a public key whose fingerprint is 9071 892B E0EC FB07 D778 5ACB 4D73 4E12 9611 8FE0 | |
To claim this, I am signing this object: |
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
#include <iostream> | |
// Get the hilbert index for a point along a 2D Hilbert curve. | |
// Daniel Schwen, 2014 | |
// | |
// ------- | |
// |01|10| | |
// ------- | |
// |00|11| | |
// ------- |
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
#include <iostream> | |
#include <cmath> | |
class Exponent; | |
class Number { | |
public: | |
Number(double v) : value(v) {} | |
double getVal() const { return value; } |
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
#include <iostream> | |
class C { | |
public: | |
class B; | |
class A { | |
public: | |
friend A operator+(const B & l, const B & r); | |
void hello() { std::cout << "hello!"; } |
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
#include <iostream> | |
class C { | |
public: | |
class B; | |
class A { | |
public: | |
friend A operator+(const B & l, const B & r); | |
void hello() { std::cout << "hello!"; } |
NewerOlder