- Используются следующие расширения файлов:
.h
- для заголовочных файлов
import sys | |
import os | |
import re | |
re_enum = re.compile(r'\s*enum\s*(\w+)\s*(:.*)?\s*') | |
re_enum_value = re.compile(r'\s*(\w+)(?:\s*=\s*(.+))?,?(?:\s*\/\/.*)?\s*') | |
folders_blacklist = [ | |
# 'Urho3D/Audio', | |
# 'Urho3D/Container', | |
# 'Urho3D/Core', |
#include <benchmark/benchmark.h> | |
#include <EASTL/string.h> | |
#include <EASTL/vector.h> | |
#include <EASTL/hash_map.h> | |
#include <Urho3D/Container/Vector.h> | |
#include <Urho3D/Container/Str.h> | |
#include <Urho3D/Container/HashMap.h> | |
static void Test_Trivial_StringVector_EA() | |
{ |
void TestContainers() | |
{ | |
{ | |
Vector<int> v{}; | |
assert(v.Size() == 0); | |
Vector<int>::Iterator i1 = v.Begin(); | |
Vector<int>::ConstIterator i2 = v.End(); | |
RandomAccessIterator<int> i3 = v.Begin(); |
class WeakNodePtr : public WeakPtr<Node> | |
{ | |
public: | |
bool LazyFind(Node* parentNode, const char* name, bool recursive = false) | |
{ | |
return Initialize(parentNode, name, false, recursive); | |
} | |
void LazyFindOrCreate(Node* parentNode, const char* name, bool recursive = false) | |
{ | |
const bool success = Initialize(parentNode, name, true, recursive); |
#include <Urho3D/Resource/JSONFile.h> | |
#include <Urho3D/Resource/JSONValue.h> | |
#include <Urho3D/Resource/XMLElement.h> | |
#include <Urho3D/Resource/XMLFile.h> | |
#include <EASTL/optional.h> | |
/// Type of archive block. | |
enum class ArchiveBlockType | |
{ |
class Archive | |
{ | |
/// Binary: [value] | |
/// XML: <name type="T">value</name> | |
/// JSON: "name": value (begin block or begin map) | |
/// value (begin array) | |
virtual bool Serialize(const char* name, T& value) = 0; | |
/// Binary: [key][value] | |
/// XML: <name key="key" type="T">value</name> | |
/// JSON: "key": value (begin block or begin map) |
template <class T, unsigned NBoolsValue = 4, unsigned NIntsValue = 4, unsigned NVariantsValue = 1> | |
class CompactFlatVariantMap | |
{ | |
public: | |
enum class PoolType { Bool, Int, Variant }; | |
using ElementIndex = unsigned; | |
static const unsigned PoolTypeBits = 2; | |
static const unsigned PoolTypeMask = (1 << (PoolTypeBits + 1)) - 1; | |
static const unsigned NBools = NBoolsValue; |
/// @file ls/common/FlagSet.h | |
/// @brief Flag set wrapper | |
#pragma once | |
#include "ls/common/import.h" | |
namespace ls | |
{ | |
/// @addtogroup LsCommon | |
/// @{ |