Lumiera
0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
engine-ctx-facilities.cpp
Go to the documentation of this file.
1
/*
2
EngineCtxFacilities - Implementation of global render engine operational services
3
4
Copyright (C)
5
2024, Hermann Vosseler <Ichthyostega@web.de>
6
7
**Lumiera** is free software; you can redistribute it and/or modify it
8
under the terms of the GNU General Public License as published by the
9
Free Software Foundation; either version 2 of the License, or (at your
10
option) any later version. See the file COPYING for further details.
11
12
* *****************************************************************/
13
14
21
#include "
steam/engine/engine-ctx-facilities.hpp
"
22
#include "
steam/engine/tracking-heap-block-provider.hpp
"
23
24
//#include <string>
25
//#include <memory>
26
//#include <functional>
27
28
29
30
namespace
steam
{
31
namespace
engine
{
32
33
// using std::string;
34
// using lumiera::Subsys;
35
// using std::function;
36
// using std::bind;
37
using
std::make_unique;
38
// using std::ref;
39
40
41
namespace
{
// hidden local details of the service implementation....
42
43
}
// (End) hidden service impl details
44
45
46
47
48
50
lib::Depend<EngineCtx>
EngineCtx::access
;
51
52
53
54
EngineCtx::~EngineCtx
() { }
55
57
EngineCtx::EngineCtx
()
58
: services_{make_unique<
Facilities
>()}
59
, mem {services_->getMemProvider()}
60
, cache{services_->getCacheProvider()}
61
{ }
62
63
65
EngineCtx::Facilities::Facilities
()
66
: memProvider_{make_unique<
TrackingHeapBlockProvider
>()}
67
, cacheProvider_{}
68
{ }
69
70
71
77
}}
// namespace steam::engine
lib::Depend
Access point to singletons and other kinds of dependencies designated by type.
Definition
depend.hpp:281
steam::engine::EngineCtx::Facilities
Definition
engine-ctx-facilities.hpp:49
steam::engine::EngineCtx::Facilities::Facilities
Facilities()
Definition
engine-ctx-facilities.cpp:65
steam::engine::EngineCtx::~EngineCtx
~EngineCtx()
Definition
engine-ctx-facilities.cpp:54
steam::engine::EngineCtx::access
static lib::Depend< EngineCtx > access
storage for the EngineService interface object
Definition
engine-ctx.hpp:62
steam::engine::EngineCtx::EngineCtx
EngineCtx()
Definition
engine-ctx-facilities.cpp:57
steam::engine::TrackingHeapBlockProvider
simple BufferProvider implementation with additional allocation tracking.
Definition
tracking-heap-block-provider.hpp:121
engine-ctx-facilities.hpp
Implementation parts of render engine operational services.
anonymous_namespace{main.cpp}::engine
Subsys & engine
Definition
main.cpp:37
steam
Steam-Layer implementation namespace root.
tracking-heap-block-provider.hpp
Dummy implementation of the BufferProvider interface to support writing unit tests.
steam
engine
engine-ctx-facilities.cpp
Generated on Thu Dec 11 2025 for Lumiera by
1.9.8