This class provides an implementation of abstract interface class ResourcePool, which does externalize resources by using the mechanics provided with module ALib Variables.
A (shared) instance of this class can be attached to each ALib Module, by customizing the bootstrapping of ALib.
- See also
- Please consult the Programmer's Manual of module ALib Resources for details on the concept of resources. Details on this specific type are given in chapter 3.4.2 Class ConfigResourcePool.
Definition at line 73 of file configresourcepool.mpp.
|
| 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_DLL void | BootstrapBulk (const nchar *category,...) override |
|
ALIB_DLL 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_DLL std::vector< std::pair< NString, integer > > | DbgGetCategories () |
|
virtual ALIB_DLL 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 ()=default |
| Constructs an empty instance, hence a cleared automatic pointer.
|
|
| TSharedConfiguration (const TSharedConfiguration &)=default |
| Defaulted copy-constructor.
|
|
| TSharedConfiguration (const TSharedConfiguration &)=default |
| Defaulted copy-constructor.
|
|
| TSharedConfiguration (size_t initialBufferSizeInKB, unsigned int bufferGrowthInPercent=200, lang::CreateDefaults createDefaults=lang::CreateDefaults::Yes) |
|
| TSharedConfiguration (size_t initialBufferSizeInKB, unsigned int bufferGrowthInPercent=200, lang::CreateDefaults createDefaults=lang::CreateDefaults::Yes) |
|
| TSharedConfiguration (std::nullptr_t) noexcept |
|
| TSharedConfiguration (std::nullptr_t) noexcept |
|
| ~TSharedConfiguration () |
|
| ~TSharedConfiguration () |
|
void | DbgCriticalSections (lang::Switch onOff) |
|
void | DbgCriticalSections (lang::Switch onOff) |
|
TSharedConfiguration & | operator= (const TSharedConfiguration &)=default |
|
TSharedConfiguration & | operator= (const TSharedConfiguration &)=default |
|
void | Reset (lang::CreateDefaults createDefaults=lang::CreateDefaults::Yes) |
|
void | Reset (lang::CreateDefaults createDefaults=lang::CreateDefaults::Yes) |
|
| TSharedMonoVal () noexcept |
| Default Constructor. Leaves this object nulled.
|
|
| TSharedMonoVal (const TSharedMonoVal &other) noexcept |
|
| TSharedMonoVal (size_t initialBufferSizeInKB, unsigned int bufferGrowthInPercent) |
|
| TSharedMonoVal (std::nullptr_t) noexcept |
|
| TSharedMonoVal (TAllocator &allocator, size_t initialBufferSizeInKB, unsigned int bufferGrowthInPercent) |
|
| 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 |
|
template<typename... TArgs> |
void | ConstructT (TArgs &&... args) |
|
const T * | Get () const noexcept |
|
T * | Get () noexcept |
|
AllocatorType & | GetAllocator () noexcept |
|
TLock & | GetLock () const noexcept |
|
bool | IsNulled () const noexcept |
|
| operator bool () const noexcept |
|
bool | operator!= (std::nullptr_t) const noexcept |
|
const T & | operator* () const noexcept |
|
T & | operator* () noexcept |
|
const T * | operator-> () const noexcept |
|
T * | 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 |
|
template<typename... TArgs> |
void | Reset (TArgs &&... args) |
|
const T & | Self () const noexcept |
|
T & | 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 |
|