This file contains hidden or 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 <string> | |
class A { | |
public: | |
void method1(); | |
void method2(int); | |
static void method3(int []); | |
}; |
This file contains hidden or 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> | |
/*======================================================================= | |
* ASPECT COMPOSITION | |
*======================================================================*/ | |
template<class Parent> | |
struct Nil_aspect: public Parent | |
{ | |
void tell() {} // no-op, and ends the chain |
This file contains hidden or 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> | |
/*======================================================================= | |
* ASPECT COMPOSITION | |
*======================================================================*/ | |
/* This is the base class to be specialized via CRTP. | |
* | |
* It must provide all the methods that aspects can override as no-ops. | |
*/ |
This file contains hidden or 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
const std = @import("std"); | |
const c = @cImport({ | |
// @cInclude("imgui/imgui.h"); | |
// @cInclude("imgui/imgui_internal.h"); | |
@cInclude("imgui/imstb_truetype.h"); | |
@cInclude("imgui/imstb_rectpack.h"); | |
}); | |
const assert = std.debug.assert; |
This file contains hidden or 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
#pragma once | |
#include <future> | |
/** | |
* Class template based on std::async and std::future<> to help in fetching data asynchronously. | |
*/ | |
template <typename T> | |
struct async_data { |
OlderNewer