repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
cschladetsch/KAI | Include/KAI/Network/Config.h | <filename>Include/KAI/Network/Config.h
#pragma once
#include "KAI/Core/BuiltinTypes.h"
#ifndef KAI_NET_NAMESPACE_NAME
# define KAI_NET_NAMESPACE_NAME net
#endif
#define KAI_NET_BEGIN KAI_BEGIN namespace KAI_NET_NAMESPACE_NAME {
#define KAI_NET_END } }
|
cschladetsch/KAI | Include/KAI/Language/Common/Slice.h | <gh_stars>10-100
#pragma once
#include <KAI/Core/Base.h>
KAI_BEGIN
// Indicates a range of characters in a larger string.
// Another humble but extremely useful structure.
struct Slice
{
int Start, End;
Slice() { Start = End = 0; }
Slice(int start, int end) { Start = start; End = end; }
int Length(... |
cschladetsch/KAI | Include/KAI/Language/Tau/TauAstNode.h | <reponame>cschladetsch/KAI
#pragma once
#include <KAI/Language/Common/AstNodeBase.h>
#include <KAI/Language/Tau/TauToken.h>
TAU_BEGIN
struct TauAstEnumType
{
enum Enum
{
None = 0,
Namespace = 1,
Class = 2,
Property = 3,
Method = 4,
// req.
TokenType = ... |
cschladetsch/KAI | Include/KAI/Language/Pi/PiLang.h | #pragma once
#include <KAI/Language/Pi/PiTranslator.h>
#include <KAI/Language/Common/LangCommon.h>
KAI_BEGIN
// the specialised PiLang translator.
class PiLang : Lang<PiTranslator>
{
typedef Lang<PiTranslator> Parent;
PiLang(Registry &r) : Parent(r) { }
Pointer<Executor> Exec(const char *text, Structur... |
cschladetsch/KAI | Include/KAI/Executor/Compiler.h | #pragma once
#include <map>
#include <KAI/Core/Debug.h>
#include <KAI/Executor/Operation.h>
#include <KAI/Executor/Continuation.h>
#include <KAI/Language/Common/Language.h>
KAI_BEGIN
// this is a strange beast.
// it works for any language that conforms to the concept defined in
// <KAI/Language/Common/TranslatorBa... |
cschladetsch/KAI | Include/KAI/Language/Tau/TauLexer.h | <gh_stars>10-100
#pragma once
#include <KAI/Language/Common/LexerCommon.h>
#include <KAI/Language/Tau/TauToken.h>
TAU_BEGIN
struct TauLexer : LexerCommon<TauTokenEnumType>
{
typedef LexerCommon<TauTokenEnumType> Parent;
typedef TokenBase<TauTokenEnumType> TokenNode;
typedef TauTokenEnumType TokenEnumType... |
cschladetsch/KAI | Include/KAI/Core/BasePointerBase.h | <reponame>cschladetsch/KAI<filename>Include/KAI/Core/BasePointerBase.h<gh_stars>10-100
#pragma once
#include <KAI/Core/Base.h>
KAI_BEGIN
struct BasePointerBase
{
virtual ~BasePointerBase() {}
void Create() {}
bool Destroy() { return true; }
static void Register(Registry &);
};
StringStream &operat... |
cschladetsch/KAI | Include/KAI/Core/BuiltinTypes/Array.h | <gh_stars>10-100
#pragma once
#include <KAI/Core/Config/Base.h>
#include "Container.h"
KAI_BEGIN
class Array : public Container<Array>
{
public:
typedef std::vector<Object> Objects;
typedef Objects::const_iterator const_iterator;
typedef Objects::iterator iterator;
private:
Objects objects;
public:... |
cschladetsch/KAI | Include/KAI/Core/File.h | #pragma once
#include "KAI/Core/Config/Base.h"
#include <boost/filesystem.hpp>
#include <string>
#include <vector>
KAI_BEGIN
namespace File
{
using Pathname = boost::filesystem::path;
using Extension = std::string;// Pathname::string_type;
using Pathnames = std::vector<Pathname>;
using byte = std::ui... |
cschladetsch/KAI | Include/KAI/Core/BuiltinTypes/Signed32.h | #pragma once
#include <KAI/Core/Type.h>
KAI_BEGIN
StringStream &operator<<(StringStream &S, int N);
StringStream &operator>>(StringStream &S, int &N);
BinaryStream &operator<<(BinaryStream &S, int N);
BinaryStream &operator>>(BinaryStream &S, int &N);
//inline HashValue GetHash(int N) { return N; }
KAI_TYPE_TRAITS... |
cschladetsch/KAI | Include/KAI/Network/NetHandle.h | <filename>Include/KAI/Network/NetHandle.h<gh_stars>10-100
#pragma once
#include "KAI/Core/Object/Handle.h"
#include "KAI/Network/Address.h"
KAI_NET_BEGIN
struct NetHandle
{
MacAddress LocalMacAddress;
Handle LocalHandle;
int TypeNumber;
friend bool operator==(NetHandle const &A, NetHandle const & B)
{
return... |
cschladetsch/KAI | Include/KAI/Language/Hlsl/HlslAstNode.h | <reponame>cschladetsch/KAI<gh_stars>10-100
#pragma once
#include "KAI/Language/Common/AstNodeBase.h"
#include "KAI/Language/Hlsl/HlslToken.h"
KAI_BEGIN
struct HlslAstNodeEnumType
{
enum Enum : int
{
None = 0,
Program = 1,
Ident = 2,
GetMember = 3,
Function = 4,
... |
cschladetsch/KAI | Include/KAI/Core/Object/ConstObject.h | <reponame>cschladetsch/KAI<gh_stars>10-100
#pragma once
#include <KAI/Core/Base.h>
KAI_BEGIN
// Never used?
/*
struct ConstObject : Object
{
ConstObject();
ConstObject(Object const &);
ConstObject(ConstObject const &);
ConstObject& operator=(Object const &);
ConstObject& operator=(ConstObject con... |
cschladetsch/KAI | Include/KAI/Language/Pi/PiTranslator.h | #pragma once
#include <KAI/Executor/Executor.h>
#include <KAI/Language/Common/TranslatorBase.h>
#include <KAI/Language/Pi/PiToken.h>
#include <KAI/Language/Pi/PiLexer.h>
#include <KAI/Language/Pi/PiAstNode.h>
#include <KAI/Language/Pi/PiParser.h>
KAI_BEGIN
class PiTranslator : public TranslatorBase<PiParser>
{
publi... |
cschladetsch/KAI | Include/KAI/Language/Pi/Pi.h | #pragma once
#include "./PiLang.h"
|
cschladetsch/KAI | Include/KAI/Core/BuiltinTypes.h | <filename>Include/KAI/Core/BuiltinTypes.h
#pragma once
#include <KAI/Core/Type.h>
#include <KAI/Core/BuiltinTypes/All.h>
#include <KAI/Core/BinaryStream.h>
#include <KAI/Core/Exception.h>
#include <KAI/Core/Object/Object.h>
#include <KAI/Core/Object/ClassBuilder.h>
|
cschladetsch/KAI | Include/KAI/Network/Address.h | <reponame>cschladetsch/KAI
#pragma once
#include <string>
#include <KAI/Network/Config.h>
KAI_NET_BEGIN
struct MacAddress
{
const std::string &Text() const;
friend bool operator==(MacAddress const &A, MacAddress const &B)
{
KAI_UNUSED_2(A, B);
return false;
}
size_t Hash() const
{
//MUST return boost::... |
cschladetsch/KAI | Include/KAI/Core/Config/Options.h | <reponame>cschladetsch/KAI
#pragma once
// defined to place the system into a single namespace
#define KAI_OPTION_USE_NAMESPACES
// if KAI_OPTION_USE_NAMESPACES is defined, this is the namespace _name to use
//#define KAI_NAMESPACE_NAME kai
#ifndef KAI_NAMESPACE_NAME
#warning please define KAI_NAMESPACE_NAME
#define ... |
cschladetsch/KAI | Include/KAI/Core/BasePointer.h | <reponame>cschladetsch/KAI
#pragma once
#include <KAI/Core/Config/Base.h>
#include <KAI/Core/BasePointerBase.h>
#include <KAI/Core/Type.h>
KAI_BEGIN
template <class T>
struct BasePointer : BasePointerBase, FwdBasePointer<T>
{
typedef T Base;
typedef typename Type::Traits<Base> BaseTraits;
std::shared_ptr... |
cschladetsch/KAI | Include/KAI/Core/Type/ContainerOperations.h | <filename>Include/KAI/Core/Type/ContainerOperations.h
#pragma once
#include <KAI/Core/Config/Base.h>
#include <KAI/Core/Base.h>
#include <KAI/Core/TriColor.h>
KAI_TYPE_BEGIN
template <typename Reference, bool IsContainer>
struct ContainerOperations
{
struct ColorSetter
{
ObjectColor::Color _c;
... |
cschladetsch/KAI | Include/KAI/Core/Type/Config.h | #pragma once
#ifndef KAI_OPTION_USE_NAMESPACES
# define KAI_TYPE_BEGIN KAI_BEGIN namespace Type {
# define KAI_TYPE_END KAI_END }
#else
# pragma error "I don't support lack of namespaces any more"
#endif
#define KAI_TYPENUMBER_TYPR int
|
cschladetsch/KAI | Include/KAI/UnfuckWin32.h | <reponame>cschladetsch/KAI
#undef min
#undef max
#undef GetObject
|
cschladetsch/KAI | Include/KAI/Core/Object/None.h | <reponame>cschladetsch/KAI
#pragma once
#include <KAI/Core/Config/Base.h>
KAI_BEGIN
struct None
{
typedef None Prev, Next, Value, Type;
};
KAI_END
|
cschladetsch/KAI | Include/KAI/Core/Object/AccessorBase.h | #pragma once
#include <KAI/Core/Config/Base.h>
#include <KAI/Core/Type/Number.h>
#include "KAI/Core/Object/PropertyBase.h"
#include "KAI/Core/Object/Label.h"
KAI_BEGIN
class AccessorBase : public PropertyBase
{
public:
AccessorBase(Label const &F, Type::Number C, Type::Number N, bool is_system, typename MemberCr... |
cschladetsch/KAI | Include/KAI/Language/Pi/PiParser.h | <reponame>cschladetsch/KAI<gh_stars>10-100
#pragma once
#include <KAI/Language/Common/ParserCommon.h>
#include <KAI/Language/Common/Structure.h>
#include <KAI/Language/Pi/PiAstNode.h>
#include <KAI/Language/Pi/PiLexer.h>
KAI_BEGIN
// parser specific to the post-fix Pi language
struct PiParser : ParserCommon<PiLexer,... |
cschladetsch/KAI | Include/KAI/Core/Object/Constness.h | #pragma once
#include <KAI/Core/Base.h>
KAI_BEGIN
/// Specify the constness of a thing
struct Constness
{
enum Type { None, Const, Mutable };
Type value;
Constness(Type T = None) : value(T) { }
const char *ToString() const;
friend bool operator==(Constness A, Constness B) { return A.value == B.... |
cschladetsch/KAI | Include/KAI/Core/Type/Properties.h | #pragma once
#include <KAI/Core/Config/Base.h>
KAI_TYPE_BEGIN
// Describes the _properties of a promoted type
struct Properties
{
enum Type : int
{
Nothing = 0,
Assign = 1 << 0,
Reflected = 1 << 1,
Plus = 1 << 2,
Minus = 1 << 3,
Arithmetic = Plus | Minus,
... |
cschladetsch/KAI | Include/KAI/Executor/SignedContinuation.h | <reponame>cschladetsch/KAI<gh_stars>10-100
#pragma once
#include <vector>
#include <KAI/Core/Config/Base.h>
#include <KAI/Core/Object/Label.h>
#include <KAI/Core/BuiltinTypes/Stack.h>
#include <KAI/Core/Type/Number.h>
#include <KAI/Executor/Continuation.h>
KAI_BEGIN
// A SignedContinuation is just like a normal Con... |
cschladetsch/KAI | Include/KAI/Core/BuiltinTypes/SystemType.h | <filename>Include/KAI/Core/BuiltinTypes/SystemType.h
#pragma once
#include <KAI/Core/Config/Base.h>
#include <KAI/Core/Type/Number.h>
KAI_BEGIN
class SystemType
{
Type::Number type_number;
Label label;
public:
void Set(Type::Number N, const Label &L) { type_number = N; label = L; }
Type::Number Get... |
cschladetsch/KAI | Include/KAI/Core/BinaryStream.h | #pragma once
#include <KAI/Core/Config/Base.h>
#include <vector>
#include <KAI/Core/Type/Properties.h>
#include <KAI/Core/Type/TraitMacros.h>
#include "KAI/Core/BinaryPacket.h"
#include "KAI/Core/StringStream.h"
KAI_BEGIN
// A BinaryStream is-a BinaryPacket which can also resize and allows insertion
class BinaryStre... |
cschladetsch/KAI | Include/KAI/Platform/PC/Network/TcpClientImpl.h | <filename>Include/KAI/Platform/PC/Network/TcpClientImpl.h<gh_stars>10-100
#ifdef KAI_HAVE_PRAGMA_ONCE
# pragma once
#endif
#ifndef KAI_PLATFORM_PC_NETWORK_TCP_CLIENT_IMPL_H
# define KAI_PLATFORM_PC_NETWORK_TCP_CLIENT_IMPL_H
KAI_PLATFORM_NETWORK_BEGIN
struct TcpClientImpl
{
};
KAI_PLATFORM_NETWORK_END
#endif // KA... |
cschladetsch/KAI | Include/KAI/Core/Memory/IAllocator.h | #pragma once
#include <KAI/Core/Config/Base.h>
#include <KAI/Core/Debug.h>
KAI_BEGIN
namespace Memory
{
/// interface for all memory allocation systems
struct IAllocator
{
protected:
IAllocator() { }
virtual ~IAllocator() { }
public:
typedef void *VoidPtr;
typedef... |
cschladetsch/KAI | Include/KAI/Core/BuiltinTypes/MapBase.h | <filename>Include/KAI/Core/BuiltinTypes/MapBase.h
#pragma once
#include <KAI/Core/Object/ClassBuilder.h>
#include <KAI/Core/Exception.h>
#include <KAI/Core/BuiltinTypes/Signed32.h>
#include "Container.h"
KAI_BEGIN
/// A Map defines an associative container. Because this maps Object to Object,
/// it is possible to s... |
cschladetsch/KAI | Include/KAI/Console/ConsoleColor.h | <filename>Include/KAI/Console/ConsoleColor.h
#pragma once
#include <KAI/Core/Config/Base.h>
#include <sstream>
#include <memory>
#include <string>
KAI_BEGIN
class ConsoleColor
{
struct Impl;
std::unique_ptr<Impl> _impl;
public:
enum EType
{
Normal,
Error,
Warning,
Trace,
StackNumber,
Prompt,
Langu... |
cschladetsch/KAI | Include/KAI/Core/Exception/ExceptionsExtended.h | #pragma once
#include "KAI/Core/Pathname.h"
#include "KAI/Core/Object/Object.h"
KAI_BEGIN
namespace Exception
{
struct CannotResolve : Base
{
Object object;
Label label;
Pathname path;
CannotResolve(const FileLocation &L, Object const &Q) : Base(L, "CannotResolve"), object(Q) ... |
cschladetsch/KAI | Include/KAI/Core/SetGCFlagFwd.h | <reponame>cschladetsch/KAI
#pragma once
#include <KAI/Core/Config/Base.h>
KAI_BEGIN
template <class T>
struct SetMarked;
template <class T>
struct SetSwitch;
KAI_END
|
cschladetsch/KAI | Include/KAI/Core/Type/Traits.h | #pragma once
#include <boost/type_index.hpp>
#include <KAI/Core/Base.h>
#include <KAI/Core/Exception/ExceptionMacros.h>
#include <KAI/Core/Meta/Base.h>
#include "KAI/Core/Type/Properties.h"
#include "KAI/Core/Object/Reflected.h"
KAI_TYPE_BEGIN
template <typename T>
struct NoTraitsDefined;
template <typename T>
stru... |
cschladetsch/KAI | Include/KAI/Core/Object/ClassBuilder.h | <gh_stars>10-100
#pragma once
#include <KAI/Core/SetGCFlagFwd.h>
#include "KAI/Core/Pathname.h"
#include "KAI/Core/Object/Class.h"
#include "KAI/Core/Object/PropertyBase.h"
#include "KAI/Core/Object/Accessor.h"
#include "KAI/Core/Object/Method.h"
#undef RegisterClass
KAI_BEGIN
void RegisterClass(Registry &, ClassBa... |
cschladetsch/KAI | Include/KAI/Core/Object/ClassBase.h | <filename>Include/KAI/Core/Object/ClassBase.h
#pragma once
#include <list>
#include <unordered_map>
#include <KAI/Core/Type/Properties.h>
#include <KAI/Core/Type/Number.h>
#include <KAI/Core/Exception/Extended.h>
#include <KAI/Core/Base.h>
#include "KAI/Core/Exception/ExceptionMacros.h"
#include "KAI/Core/Object/Pro... |
cschladetsch/KAI | Include/KAI/KAI.h | <reponame>cschladetsch/KAI
#pragma once
#include <KAI/Executor/Executor.h>
KAI_BEGIN
KAI_END
|
cschladetsch/KAI | Include/KAI/Core/Memory.h | <reponame>cschladetsch/KAI
#pragma once
#include <stdlib.h>
#include <KAI/Core/Memory/IAllocator.h>
#include <KAI/Core/Memory/BaseAllocator.h>
#include <KAI/Core/Memory/StandardAllocator.h>
|
cschladetsch/KAI | Include/KAI/Core/Object/LabelHash.h | #pragma once
#include <KAI/Core/BuiltinTypes/String.h>
#include <KAI/Core/Object/Label.h>
KAI_BEGIN
namespace detail
{
#if (defined(__GNUC__) && defined(__i386__)) || defined(__WATCOMC__) \
|| defined(_MSC_VER) || defined (__BORLANDC__) || defined (__TURBOC__)
#define get16bits(d) (*((const unsigned short *) (d)))... |
cschladetsch/KAI | Include/KAI/Core/Exception/Extended.h | #pragma once
#include "KAI/Core/BuiltinTypes/Signed32.h"
#include "KAI/Core/BuiltinTypes/Bool.h"
#include "KAI/Core/BuiltinTypes/String.h"
#include "KAI/Core/Exception/ExceptionsExtended.h"
|
cschladetsch/KAI | Include/KAI/Network/ProxyDecl.h | #pragma once
#include <KAI/Network/ProxyBase.h>
#include <KAI/Network/Future.h>
|
cschladetsch/KAI | Include/KAI/Language/Rho/Rho.h | <reponame>cschladetsch/KAI
#pragma once
#include "./RhoLang.h"
|
cschladetsch/KAI | Include/KAI/Core/BuiltinTypes/HashMap.h | <gh_stars>10-100
#pragma once
#include <unordered_map>
#include <KAI/Core/Type/Traits.h>
#include <KAI/Core/Config/Base.h>
#include "MapBase.h"
KAI_BEGIN
class Object;
/// A Map defines an associative container. Because this maps Object to Object,
/// it is possible to store mappings of any type to any type.
struct... |
cschladetsch/KAI | Test/Include/TestCommon.h | <filename>Test/Include/TestCommon.h<gh_stars>10-100
#pragma once
#include <gtest/gtest.h>
#include <boost/filesystem.hpp>
#include "KAI/Core/BuiltinTypes.h"
#include "KAI/Core/Console.h"
#include "KAI/Core/Executor.h"
#include "KAI/Core/Object/GetStorageBase.h"
#include "KAI/Core/StringStreamTraits.h"
#include "KAI/Co... |
cschladetsch/KAI | Include/KAI/Core/BuiltinTypes/Map.h | #pragma once
#include <map>
#include <KAI/Core/Config/Base.h>
#include "KAI/Core/BuiltinTypes/MapBase.h"
#include "KAI/Core/StringStream.h"
#include <KAI/Core/Type/TraitMacros.h>
KAI_BEGIN
struct MapCompare
{
bool operator()(const Object &A, const Object &B) const;
};
typedef MapBase<std::map<Object, Object, M... |
cschladetsch/KAI | Include/KAI/Core/Method.cpp0x.h | <gh_stars>10-100
#ifdef KAI_HAVE_PRAGMA_ONCE
# pragma once
#endif
#ifndef KAI_METHOD_H
# define KAI_METHOD_H
KAI_BEGIN
/// Do not pollute current namespace
namespace method_detail
{
template <class Method>
struct ConstMethodBase : MethodBase
{
typedef Method MethodType;
Method meth... |
cschladetsch/KAI | Include/KAI/Core/Meta/StaticAssert.h | <filename>Include/KAI/Core/Meta/StaticAssert.h<gh_stars>10-100
#pragma once
#include "boost/static_assert.hpp"
#define KAI_STATIC_ASSERT BOOST_STATIC_ASSERT
|
cschladetsch/KAI | Include/KAI/Core/DotGraph.h | <reponame>cschladetsch/KAI
#pragma once
#include <KAI/Core/Base.h>
// TODO: remove this and have DotGraph use Pimpl
// not very important as few things include this file.
#include <set>
KAI_BEGIN
// Generates GraphViz script showing the depedancy graph given an object _root
struct DotGraph : StringStream
{
private:... |
cschladetsch/KAI | Include/KAI/Console/Console.h | <gh_stars>10-100
#pragma once
#include <KAI/Executor/Compiler.h>
#include <KAI/Executor/Executor.h>
#include <KAI/Core/Tree.h>
#include <KAI/Language.h>
#include <KAI/Console/ConsoleColor.h>
KAI_BEGIN
struct Coloriser;
// This is a language-independant REPL console
class Console : public Reflected
{
Tree tree;
Re... |
cschladetsch/KAI | Include/KAI/Core/Object/ObjectConstructParams.h | #pragma once
#include <KAI/Core/Config/Base.h>
#include "Handle.h"
#include "Constness.h"
KAI_BEGIN
struct ObjectConstructParams
{
const ClassBase *class_base;
Registry *registry;
Handle handle;
Constness constness;
ObjectConstructParams() : class_base(0), registry(0) { }
ObjectConstructPara... |
cschladetsch/KAI | Include/KAI/Network/Agent.h | #pragma once
#include "KAI/Network/NetHandle.h"
#include "KAI/Network/AgentBase.h"
#include "NetPointer.h"
KAI_NET_BEGIN
template <class T>
struct Agent : AgentBase
{
typedef Pointer <T> Servant;
Agent(Node &node, NetPointer<Servant> server)
: AgentBase(node, server)
{
_servant = server;
}
template<class... |
cschladetsch/KAI | Include/KAI/Core/StringStreamTraits.h | #include <KAI/Core/Base.h>
#include <KAI/Core/FwdDeclarations.h>
KAI_BEGIN
inline StringStream &operator<<(StringStream &S, const String::Char c)
{
S.Append(c);
return S;
}
inline StringStream &operator<<(StringStream &S, const Exception::Base &E)
{
return S << E.ToString().c_str();
}
inline StringSt... |
cschladetsch/KAI | Include/KAI/Language/Tau/Config.h | #pragma once
#include <KAI/Language/Common/TokenBase.h>
#ifndef TAU_NAMESPACE_NAME
# define TAU_NAMESPACE_NAME tau
#endif
#define TAU_BEGIN KAI_BEGIN namespace TAU_NAMESPACE_NAME {
#define TAU_END } KAI_END
|
cschladetsch/KAI | Include/KAI/Language/Hlsl/HlslParser.h | <filename>Include/KAI/Language/Hlsl/HlslParser.h
#pragma once
#include <KAI/Language/Common/ParserCommon.h>
#include <KAI/Language/Hlsl/HlslAstNode.h>
#include <KAI/Language/Hlsl/HlslLexer.h>
KAI_BEGIN
// parser specific to the in-fix Hlsl language
class HlslParser : public ParserCommon<HlslLexer, HlslAstNodeEnumTyp... |
cschladetsch/KAI | Include/KAI/Language/Common/ParserBase.h | #pragma once
#include <KAI/Language/Common/Process.h>
|
cschladetsch/KAI | Include/KAI/Core/BuiltinTypes/Vector4.h | <reponame>cschladetsch/KAI
#pragma once
#include <KAI/Core/Config/Base.h>
#include <KAI/Core/Type/TraitMacros.h>
KAI_BEGIN
struct Vector2
{
Vector2() : x(0), y(0){}
Vector2(float _x, float _y) : x(_x), y(_y){}
float x,y;
};
struct Vector3
{
Vector3() : x(0), y(0), z(0){}
Vector3(float _x, float ... |
cschladetsch/KAI | Include/KAI/Core/FunctionBase.h | #pragma once
#include <KAI/Core/Object/Label.h>
#include <KAI/Core/CallableBase.h.notused>
#include <KAI/Core/Type.h>
#include <KAI/Core/BuiltinTypes/Stack.h>
KAI_BEGIN
struct FunctionBase : CallableBase<FunctionBase>
{
FunctionBase(const Label &L) : CallableBase<FunctionBase>(L) { }
virtual void Invoke(Reg... |
cschladetsch/KAI | Include/KAI/Core/Value.h | #pragma once
#include <KAI/Core/Config/Base.h>
#include <KAI/Core/Type/Number.h>
#include <KAI/Core/Type/Traits.h>
#include <KAI/Core/Object/GetStorageBase.h>
KAI_BEGIN
// A ConstValue<> has direct access to the storage of an object.
// This means that accessing the value is faster as there is no
// lookup required.... |
cschladetsch/KAI | Include/KAI/Core/Object/IObject.h | #pragma once
#include <KAI/Core/Config/Base.h>
#include <KAI/Core/Type/Number.h>
#include "KAI/Core/Object/Label.h"
KAI_BEGIN
class IObject
{
public:
enum Switch
{
Marked = 1,
Managed = 2,
Const = 4,
Clean = 8,
NoRecurse = 16,
DefaultSwitches = Managed
... |
cschladetsch/KAI | Include/KAI/Core/BuiltinTypes/Pair.h | <reponame>cschladetsch/KAI<filename>Include/KAI/Core/BuiltinTypes/Pair.h
#pragma once
#include <KAI/Core/Config/Base.h>
#include <KAI/Core/Object/Object.h>
KAI_BEGIN
/// a pair of objects
struct Pair
{
Object first, second;
Pair() { }
Pair(const Object &A, const Object &B) : first(A), second(B) { }
... |
cschladetsch/KAI | Include/KAI/Core/Registry.h | <filename>Include/KAI/Core/Registry.h
#pragma once
#include <KAI/Core/Config/Base.h>
#include <KAI/Core/Memory/IAllocator.h>
#include <KAI/Core/Type/Traits.h>
#include <KAI/Core/Object/PropertyBase.h>
#include <KAI/Core/Object/ClassBase.h>
#include <KAI/Core/Object/Object.h>
#include <KAI/Core/Pointer.h>
#include <un... |
cschladetsch/KAI | Include/KAI/Core/Pointer.h | <reponame>cschladetsch/KAI
#pragma once
#include <KAI/Core/Object/ClassBase.h>
#include <KAI/Core/Object/GetStorageBase.h>
#include <KAI/Core/Type/Traits.h>
KAI_BEGIN
/// Common base for ConstPointer<T> and Pointer<T>
/// To dereference a Pointer<T> requires a hash-table lookup.
template <class T>
class PointerBase
... |
cschladetsch/KAI | Include/KAI/Core/Console.h | #pragma once
#include "KAI/Console/Console.h"
|
cschladetsch/KAI | Include/KAI/Core/Type/RootType.h | <filename>Include/KAI/Core/Type/RootType.h
#if 0
template <class T>
struct RootType { typedef T type; };
template <class T>
struct RootType<T &> { typedef T type; };
template <class T>
struct RootType<T const &> { typedef T type; };
template <class T>
struct RootType<T &&> { typedef T type; };
#endif
|
cschladetsch/KAI | Include/KAI/Language/Rho/RhoLexer.h | <reponame>cschladetsch/KAI
#pragma once
#include <KAI/Language/Rho/RhoToken.h>
#include <KAI/Language/Common/LexerCommon.h>
KAI_BEGIN
struct RhoLexer : LexerCommon<RhoTokenEnumType>
{
typedef LexerCommon<RhoTokenEnumType> Parent;
typedef TokenBase<RhoTokenEnumType> TokenNode;
RhoLexer(const char *text, ... |
cschladetsch/KAI | Include/KAI/Core/TypeInfo.h | <gh_stars>10-100
#pragma once
#include <KAI/Core/Config/Base.h>
#include <KAI/Core/Pointer.h>
KAI_BEGIN
/// helper structure to switch on system and non-system types
template <class T>
struct TypeInfo
{
enum { IsSytem = false }; // is this a system type?
typedef T StorageType; // the type stored in... |
cschladetsch/KAI | Include/KAI/Network/AgentBase.h | #pragma once
#include "KAI/Network/Representative.h"
KAI_NET_BEGIN
struct AgentBase : Representative
{
AgentBase(Node &node, NetObject servant)
: Representative(node, servant.GetNetHandle())
{
}
protected:
// using Representative::_object;
};
KAI_NET_END
|
cschladetsch/KAI | Include/KAI/Core/Detail/Function.h | <gh_stars>10-100
#pragma once
#include <KAI/Core/Config/Base.h>
#include <KAI/Core/Detail/Arity.h>
#include <KAI/Core/Detail/AddArgType.h>
#include <KAI/Core/Meta/Base.h>
#include "KAI/Core/Type.h"
#include "KAI/Core/FunctionBase.h"
#include "KAI/Core/Detail/CallableBase.h"
#include "KAI/Core/BuiltinTypes/Void.h"
KA... |
cschladetsch/KAI | Include/KAI/Executor/Continuation.h | #pragma once
#include <KAI/Core/Type.h>
#include <KAI/Core/BinaryStream.h>
#include <KAI/Core/BuiltinTypes/Array.h>
#include <KAI/Core/BuiltinTypes/String.h>
#include <KAI/Core/Registry.h>
#include <KAI/Core/Object/Reflected.h>
KAI_BEGIN
struct Executor;
class Continuation : public Reflected
{
public:
typedef P... |
cschladetsch/KAI | Include/KAI/Core/BuiltinTypes/All.h | <reponame>cschladetsch/KAI<gh_stars>10-100
#pragma once
#include "KAI/Core/BuiltinTypes/Void.h"
#include "KAI/Core/BuiltinTypes/Signed32.h"
#include "KAI/Core/BuiltinTypes/Float.h"
#include "KAI/Core/BuiltinTypes/Array.h"
#include "KAI/Core/BuiltinTypes/Bool.h"
#include "KAI/Core/BuiltinTypes/TypeNumber.h"
#include "K... |
cschladetsch/KAI | Include/KAI/Core/StringStream.h | <gh_stars>10-100
#pragma once
#include <vector>
#include <KAI/Core/Config/Base.h>
#include <KAI/Core/BuiltinTypes/String.h>
KAI_BEGIN
struct Trace;
// Seems like a boring and unnecessary replication of std::stringstream.
// Rather, it allows insertion and extration of arbitrary registered objects
// from a string.... |
cschladetsch/KAI | Include/KAI/Core/Event.h | <filename>Include/KAI/Core/Event.h
#pragma once
#include "KAI/Core/BuiltinTypes/Void.h"
// DESCRIPTION
// This file contains a definition for a multi-cast Event.
//
// An Event is a message sent by an object to signal
// the occurrance of an action. There may be many receivers
// for the event. Event receivers (also... |
cschladetsch/KAI | Include/KAI/Language/Pi/PiToken.h | <filename>Include/KAI/Language/Pi/PiToken.h
#pragma once
// TODO: Use kai::StringStringStream
#include <ostream>
#include <KAI/Language/Common/TokenBase.h>
KAI_BEGIN
// A token in the Pi language
struct PiTokenEnumType
{
enum Enum
{
None = 0,
Whitespace,
Int,
Float,
St... |
cschladetsch/KAI | Include/KAI/Core/Object/Accessor.h | <reponame>cschladetsch/KAI
#pragma once
#include "KAI/Core/Object/PropertyBase.h"
#include "KAI/Core/Object/Label.h"
#include "KAI/Core/Pointer.h"
#include "KAI/Core/Detail/AccessorDetail.h"
KAI_BEGIN
/// make a property which can only access the given class member
template <class K, class C, class T>
PropertyBase *... |
cschladetsch/KAI | Include/KAI/Network/Generate.h | <filename>Include/KAI/Network/Generate.h
#pragma once
#include <KAI/Language/Tau/Tau.h>
|
cschladetsch/KAI | Include/KAI/Core/Exception/ExceptionMacros.h | <filename>Include/KAI/Core/Exception/ExceptionMacros.h
#pragma once
#include "KAI/Core/Exception/ExceptionBase.h"
KAI_BEGIN
#define KAI_FILE_LOCATION \
KAI_NAMESPACE(FileLocation)(__FILE__, __LINE__)
#define KAI_FUNCTION_NAME \
KAI_NAMESPACE(FileLocation)(
#ifdef KAI_USE_EXCEPTIONS
# define KAI_RETHROW... |
cschladetsch/KAI | Include/KAI/Network/Domain.h | #pragma once
#include <KAI/Network/Node.h>
#include <KAI/Network/Proxy.h>
#include <KAI/Network/Agent.h>
KAI_NET_BEGIN
// A Network Domain is shared amoung a set of Nodes. Object Handles are shared
// accross all nodes within a common network domain.
struct Domain
{
Domain(Node &);
// Agents are end-points to net... |
cschladetsch/KAI | Include/KAI/Network/Representative.h | <reponame>cschladetsch/KAI<filename>Include/KAI/Network/Representative.h<gh_stars>10-100
#pragma once
#include "KAI/Network/Config.h"
#include "KAI/Network/FwdDeclarations.h"
#include "KAI/Network/NetObject.h"
#include "KAI/Network/NetHandle.h"
KAI_NET_BEGIN
NetHandle GetNetHandle(Object const &t, Node const &);
//... |
cschladetsch/KAI | Include/KAI/Network/Connection.h | <reponame>cschladetsch/KAI
#pragma once
#include "KAI/Network/Config.h"
KAI_NET_BEGIN
KAI_NET_END
|
cschladetsch/KAI | Include/KAI/Language/Tau/Tau.h | <gh_stars>10-100
#pragma once
#include <KAI/Language/Common/LangCommon.h>
|
cschladetsch/KAI | Include/KAI/Core/BuiltinTypes/TypeNumber.h | <filename>Include/KAI/Core/BuiltinTypes/TypeNumber.h
#pragma once
KAI_BEGIN
KAI_END
//#include KAI_TEST(X)
|
cschladetsch/KAI | Include/KAI/Platform/PC/GameController.h | <filename>Include/KAI/Platform/PC/GameController.h
#ifndef KAI_PLATFORM_PC_GAME_CONTROLLER_H
#define KAI_PLATFORM_PC_CONTROLLER_H
#endif // KAI_PLATFORM_PC_CONTROLLER_H
//EOF
|
cschladetsch/KAI | Include/KAI/Language/Tau/Generate/GenerateProxy.h | #pragma once
#include <KAI/Language/Tau/Generate/GenerateProcess.h>
TAU_BEGIN
namespace Generate
{
struct GenerateProxy : GenerateProcess
{
using GenerateProcess::Node;
GenerateProxy(const char *input, string &output);
protected:
bool Generate(TauParser const &p, string &output)... |
cschladetsch/KAI | Include/KAI/Core/BuiltinTypes/List.h | #pragma once
#include <list>
#include <KAI/Core/Object/Object.h>
#include "KAI/Core/BuiltinTypes/Container.h"
KAI_BEGIN
/// A list of Objects
struct List : Container<List>
{
typedef std::list<Object> Objects;
typedef Objects::const_iterator const_iterator;
typedef Objects::iterator iterator;
private:
... |
cschladetsch/KAI | Include/KAI/Language/Language.h | <reponame>cschladetsch/KAI
#pragma once
#include <KAI/Language/Pi/Pi.h>
#include <KAI/Language/Rho/Rho.h>
|
cschladetsch/KAI | Include/KAI/Core/Memory/Memory.h | <reponame>cschladetsch/KAI
#pragma once
#include "KAI/KAI.h"
#include "StandardAllocator.h"
KAI_BEGIN
namespace Memory
{
/// Memory subsystem. Supports different allocators
template <class Allocator = StandardAllocator>
struct System
{
typedef typename Allocator::VoidPtr VoidPtr;
type... |
cschladetsch/KAI | Include/KAI/Platform/Windows/ConsoleColor.h | #pragma once
#include <KAI/Core/Config/Base.h>
#ifdef KAI_
#include <ostream>
KAI_BEGIN
struct Color
{
enum Type
{
Prompt,
Input,
Trace,
Error,
Warning,
StackEntry,
StackIndex,
LanguageName,
NumObjects,
Pathname,
Last
};
Color();
~Color();
static void SetColor(Type c);
};
inline std... |
cschladetsch/KAI | Include/KAI/Language/Common/AstNodeBase.h | #pragma once
#include <memory>
#include <vector>
#include <string>
#include <sstream>
// #include <KAI/Core/Config/Base.h>
#include <KAI/Core/Object.h>
#include <KAI/Language/Common/AstNodeBase.h>
KAI_BEGIN
// A common AST Node, given the Tokens to use, and the
// enumeration type Enum that indicates what type of A... |
cschladetsch/KAI | Include/KAI/Network/Network.h | <reponame>cschladetsch/KAI
#pragma once
#include "KAI/Network/Config.h"
#include "KAI/Network/Address.h"
#include "KAI/Network/NetHandle.h"
#include "KAI/Network/Future.h"
#include "KAI/Network/Connection.h"
#include "KAI/Network/Representative.h"
#include "KAI/Network/ProxyBase.h"
#include "KAI/Network/AgentBase.h"
#... |
cschladetsch/KAI | Include/KAI/Core/Detail/AccessorDetail.h | <gh_stars>10-100
#pragma once
#include <KAI/Core/Object/AccessorBase.h>
#include <KAI/Core/TypeInfo.h>
KAI_BEGIN
namespace property_detail
{
// common functionality for accessors and mutators of either system or non-system types
// a `non-system` type is anything that is not convertible to an Object
// a... |
cschladetsch/KAI | Include/KAI/Executor/Operation.h | <filename>Include/KAI/Executor/Operation.h<gh_stars>10-100
#pragma once
#include "KAI/Core/Config/Base.h"
#include "KAI/Core/Type/TraitMacros.h"
KAI_BEGIN
// An Operation represents an action to be taken by and Executor
struct Operation
{
enum Type
{
Return,
SuspendNew,
None,
... |
cschladetsch/KAI | Include/KAI/Core/Type/Number.h | <reponame>cschladetsch/KAI
#pragma once
#include <type_traits>
#include <string>
#include <KAI/Core/Base.h>
KAI_TYPE_BEGIN
struct Number
{
enum Value
{
// $BEGIN_TYPE_NUMBER_VALUE_ENUMERATION$
Undefined = 0,
None = 1,
Void = 2,
Handle = 11,
Object = 12,
... |
cschladetsch/KAI | Include/KAI/Language/Rho/RhoAstNode.h | <reponame>cschladetsch/KAI
#pragma once
#include "KAI/Language/Common/AstNodeBase.h"
#include "KAI/Language/Rho/RhoToken.h"
KAI_BEGIN
struct RhoAstNodeEnumType
{
enum Enum : int
{
None = 0,
Program = 1,
Ident = 2,
GetMember = 3,
Function = 4,
Block = 5,
... |
cschladetsch/KAI | Include/KAI/Core/Config/Base.h | #pragma once
#include <KAI/Core/Config/Options.h>
#include <KAI/Core/Config/Platform.h>
#define KAI_STRINGISE(A) KAI_STRINGISE2(A)
#define KAI_STRINGISE2(A) #A
#define KAI_STRINGISE_WIDE(A) KAI_STRINGISE_WIDE2(A)
#define KAI_STRINGISE_WIDE2(A) L###A
#ifdef KAI_OPTION_USE_NAMESPACES
# define KAI_BEGIN namespace K... |
cschladetsch/KAI | Test/Include/TestLangCommon.h | <filename>Test/Include/TestLangCommon.h<gh_stars>10-100
#pragma once
#include <gtest/gtest.h>
#include <KAI/KAI.h>
#include <KAI/Console/Console.h>
#include "./TestCommon.h"
KAI_BEGIN
// Common for tests that work with the various
// languages in the system.
//
// TestLangCommon provides a fully-functional
// work... |
cschladetsch/KAI | Include/KAI/Executor/BinBase.h | #pragma once
#include <KAI/Core/Config/Base.h>
#include <KAI/Core/Object/Object.h>
#include <KAI/Core/BuiltinTypes/Vector4.h>
#include <KAI/Core/BuiltinTypes/String.h>
#include <KAI/Core/BuiltinTypes/Array.h>
KAI_BEGIN
/// Defines what goes into the /bin folder at runtime setup
namespace Bin
{
void Help();
O... |
cschladetsch/KAI | Include/KAI/Language/Pi/PiLexer.h | #pragma once
#include <KAI/Language/Common/LexerCommon.h>
#include <KAI/Language/Pi/PiToken.h>
KAI_BEGIN
// Lexer for the Pi language. A specialistion of the generalised lexer.
class PiLexer : public LexerCommon<PiTokenEnumType>
{
public:
typedef LexerCommon<PiTokenEnumType> Parent;
typedef Parent Lexer;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.