This class provides an implementation of abstract interface class ResourcePool, which does externalize resources by using the mechanics provided with module ALib Configuration.
A (shared) instance of this class can be attached to each ALib Module, with customization the bootstrapping of ALib.
- See also
- Please consult the Programmer's Manual of module ALib BaseCamp for details on the concept of resources. Details on this specific type are given in chapter 3.4.2 Class ConfigResourcePool.
Definition at line 36 of file configresourcepool.hpp.
|
| ConfigResourcePool (size_t initialBufferSizeInKB=4, unsigned int bufferGrowthInPercent=200) |
|
virtual | ~ConfigResourcePool () override=default |
| Default Destructor.
|
|
bool | BootstrapAddOrReplace (const NString &category, const NString &name, const String &data) override |
|
virtual ALIB_API void | BootstrapBulk (const nchar *category,...) override |
|
NALIB_API const String & | Get (const NString &category, const NString &name, bool dbgAssert) override |
|
virtual | ~ResourcePool ()=default |
| Virtual destructor.
|
|
void | Bootstrap (const NString &category, const NString &name, const String &data) |
|
virtual ALIB_API std::vector< std::pair< NString, integer > > | DbgGetCategories () |
|
virtual ALIB_API std::vector< std::tuple< NString, NString, String, integer > > | DbgGetList () |
|
const String & | Get (const NString &category, const String &name, bool dbgAssert) |
|
| TSharedConfiguration ()=default |
| Constructs an empty instance, hence a cleared automatic pointer.
|
|
| TSharedConfiguration (size_t initialBufferSizeInKB, unsigned int bufferGrowthInPercent=200, lang::CreateDefaults createDefaults=lang::CreateDefaults::Yes) |
|
| TSharedConfiguration (std::nullptr_t) noexcept |
|
| ~TSharedConfiguration () |
|
void | DbgCriticalSections (lang::Switch onOff) |
|
void | Reset (lang::CreateDefaults createDefaults=lang::CreateDefaults::Yes) |
|
| TSharedMonoVal () noexcept |
| Default Constructor. Leaves this object nulled.
|
|
| TSharedMonoVal (const TSharedMonoVal &other) noexcept |
|
| TSharedMonoVal (HeapAllocator &allocator, size_t initialBufferSizeInKB, unsigned int bufferGrowthInPercent) |
|
| TSharedMonoVal (size_t initialBufferSizeInKB, unsigned int bufferGrowthInPercent) |
|
| TSharedMonoVal (std::nullptr_t) noexcept |
|
| TSharedMonoVal (TSharedMonoVal &&other) noexcept |
|
| ~TSharedMonoVal () |
|
void | Acquire (const CallerInfo &ci) const noexcept |
|
void | AcquireRecursive (const CallerInfo &ci) const noexcept |
|
void | AcquireShared (const CallerInfo &ci) const noexcept |
|
void | ConstructT (TArgs &&... args) |
|
const Configuration * | Get () const noexcept |
|
Configuration * | Get () noexcept |
|
AllocatorType & | GetAllocator () noexcept |
|
SharedLock & | GetLock () const noexcept |
|
bool | IsNulled () const noexcept |
|
| operator bool () const noexcept |
|
bool | operator!= (std::nullptr_t) const noexcept |
|
const Configuration & | operator* () const noexcept |
|
Configuration & | operator* () noexcept |
|
const Configuration * | operator-> () const noexcept |
|
Configuration * | operator-> () noexcept |
|
TSharedMonoVal & | operator= (const TSharedMonoVal &other) noexcept |
|
void | operator= (std::nullptr_t) |
| Assignment of nullptr . Same as SetNulled.
|
|
TSharedMonoVal & | operator= (TSharedMonoVal &&other) noexcept |
|
bool | operator== (std::nullptr_t) const noexcept |
|
void | Release (const CallerInfo &ci) const noexcept |
|
void | ReleaseRecursive (const CallerInfo &ci) const noexcept |
|
void | ReleaseShared (const CallerInfo &ci) const noexcept |
|
void | Reset (TArgs &&... args) |
|
const Configuration & | Self () const noexcept |
|
Configuration & | Self () noexcept |
|
void | SetNulled () noexcept |
|
bool | TryAcquire (const CallerInfo &ci) const noexcept |
|
bool | TryAcquireShared (const CallerInfo &ci) const noexcept |
|
bool | TryAcquireSharedTimed (const Ticks &pointInTime, const CallerInfo &ci) const noexcept |
|
bool | TryAcquireSharedTimed (const Ticks::Duration &waitDuration, const CallerInfo &ci) const noexcept |
|
bool | TryAcquireSharedTimed (const Ticks::Duration::TDuration &waitDuration, const CallerInfo &ci) const noexcept |
|
bool | TryAcquireSharedTimed (const Ticks::TTimePoint &pointInTime, const CallerInfo &ci) const noexcept |
|
bool | TryAcquireTimed (const Ticks &pointInTime, const CallerInfo &ci) const noexcept |
|
bool | TryAcquireTimed (const Ticks::Duration &waitDuration, const CallerInfo &ci) const noexcept |
|
bool | TryAcquireTimed (const Ticks::Duration::TDuration &waitDuration, const CallerInfo &ci) const noexcept |
|
bool | TryAcquireTimed (const Ticks::TTimePoint &pointInTime, const CallerInfo &ci) const noexcept |
|
bool | Unique () const noexcept |
|
unsigned int | UseCount () const noexcept |
|