libjmmcg
release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
|
The base factory-type. More...
#include <factory.hpp>
Public Types | |
typedef Cont_ | container_type |
typedef container_type::key_type | id_type |
typedef container_type::value_type | value_type |
typedef container_type::mapped_type | createable_type |
typedef container_type::mapped_type | mapped_type |
typedef container_type::size_type | size_type |
typedef Ret_ | created_type |
Public Member Functions | |
base (base const &)=delete | |
virtual __stdcall | ~base () |
bool __fastcall | insert (const value_type &) |
Register a specific key & manufacturing method with the factory. More... | |
bool __fastcall | insert (const id_type &, const createable_type &) |
Register a specific key & manufacturing method with the factory. More... | |
const container_type::size_type __fastcall | erase (const id_type &id) |
Unregister a specific key from the factory. More... | |
bool __fastcall | find (const id_type &) const |
Return true if that key has been registered with the factory. More... | |
bool __fastcall | empty (void) const noexcept(true) |
Return true if any key has been registered with the factory. More... | |
const size_type __fastcall | size (void) const noexcept(true) |
Return the total number of unique keys registered with the factory. More... | |
void __fastcall | reserve (const size_type) |
Reserve capacity for a specified number of keys with the factory. More... | |
const container_type &__fastcall | createables (void) const noexcept(true) |
Access the internal associative collection used to store the keys and methods for creating the return items. More... | |
container_type &__fastcall | createables (void) noexcept(true) |
Access the internal associative collection used to store the keys and methods for creating the return items. More... | |
Protected Member Functions | |
__stdcall | base (void) |
Protected Attributes | |
container_type | createables_ |
The base factory-type.
Note that this class is threading-agnostic.
Definition at line 54 of file factory.hpp.
typedef Cont_ jmmcg::LIBJMMCG_VER_NAMESPACE::factory::base< ID_, Obj_, Except_, Ret_, NotFound_, CreatFn_, Cont_ >::container_type |
Definition at line 56 of file factory.hpp.
typedef container_type::mapped_type jmmcg::LIBJMMCG_VER_NAMESPACE::factory::base< ID_, Obj_, Except_, Ret_, NotFound_, CreatFn_, Cont_ >::createable_type |
Definition at line 59 of file factory.hpp.
typedef Ret_ jmmcg::LIBJMMCG_VER_NAMESPACE::factory::base< ID_, Obj_, Except_, Ret_, NotFound_, CreatFn_, Cont_ >::created_type |
Definition at line 62 of file factory.hpp.
typedef container_type::key_type jmmcg::LIBJMMCG_VER_NAMESPACE::factory::base< ID_, Obj_, Except_, Ret_, NotFound_, CreatFn_, Cont_ >::id_type |
Definition at line 57 of file factory.hpp.
typedef container_type::mapped_type jmmcg::LIBJMMCG_VER_NAMESPACE::factory::base< ID_, Obj_, Except_, Ret_, NotFound_, CreatFn_, Cont_ >::mapped_type |
Definition at line 60 of file factory.hpp.
typedef container_type::size_type jmmcg::LIBJMMCG_VER_NAMESPACE::factory::base< ID_, Obj_, Except_, Ret_, NotFound_, CreatFn_, Cont_ >::size_type |
Definition at line 61 of file factory.hpp.
typedef container_type::value_type jmmcg::LIBJMMCG_VER_NAMESPACE::factory::base< ID_, Obj_, Except_, Ret_, NotFound_, CreatFn_, Cont_ >::value_type |
Definition at line 58 of file factory.hpp.
|
delete |
|
inlinevirtual |
Definition at line 31 of file factory_impl.hpp.
|
inlineprotected |
Definition at line 27 of file factory_impl.hpp.
|
inlinenoexcept |
Access the internal associative collection used to store the keys and methods for creating the return items.
Definition at line 65 of file factory_impl.hpp.
|
inlinenoexcept |
Access the internal associative collection used to store the keys and methods for creating the return items.
Definition at line 70 of file factory_impl.hpp.
|
inlinenoexcept |
Return true if any key has been registered with the factory.
Definition at line 50 of file factory_impl.hpp.
|
inline |
Unregister a specific key from the factory.
Definition at line 72 of file factory.hpp.
|
inline |
Return true if that key has been registered with the factory.
Definition at line 45 of file factory_impl.hpp.
|
inline |
Register a specific key & manufacturing method with the factory.
Definition at line 40 of file factory_impl.hpp.
|
inline |
Register a specific key & manufacturing method with the factory.
Definition at line 35 of file factory_impl.hpp.
|
inline |
Reserve capacity for a specified number of keys with the factory.
Definition at line 60 of file factory_impl.hpp.
|
inlinenoexcept |
Return the total number of unique keys registered with the factory.
Definition at line 55 of file factory_impl.hpp.
|
protected |
Definition at line 90 of file factory.hpp.
Referenced by jmmcg::LIBJMMCG_VER_NAMESPACE::factory::base< ID_, Obj_, Except_, Ret_, NotFound_, CreatFn_, Cont_ >::createables(), jmmcg::LIBJMMCG_VER_NAMESPACE::factory::base< ID_, Obj_, Except_, Ret_, NotFound_, CreatFn_, Cont_ >::empty(), jmmcg::LIBJMMCG_VER_NAMESPACE::factory::base< ID_, Obj_, Except_, Ret_, NotFound_, CreatFn_, Cont_ >::erase(), jmmcg::LIBJMMCG_VER_NAMESPACE::factory::base< ID_, Obj_, Except_, Ret_, NotFound_, CreatFn_, Cont_ >::find(), jmmcg::LIBJMMCG_VER_NAMESPACE::factory::base< ID_, Obj_, Except_, Ret_, NotFound_, CreatFn_, Cont_ >::insert(), jmmcg::LIBJMMCG_VER_NAMESPACE::factory::base< ID_, Obj_, Except_, Ret_, NotFound_, CreatFn_, Cont_ >::reserve(), and jmmcg::LIBJMMCG_VER_NAMESPACE::factory::base< ID_, Obj_, Except_, Ret_, NotFound_, CreatFn_, Cont_ >::size().