|
Monero
|
Abstract registry (aka repository) that provides basic interface for pointer repository specified by T_Ptr type. More...
#include <easylogging++.h>


Public Types | |
| typedef Container::iterator | iterator |
| typedef Container::const_iterator | const_iterator |
Public Member Functions | |
| AbstractRegistry (void) | |
| Default constructor. | |
| AbstractRegistry (AbstractRegistry &&sr) | |
| Move constructor that is useful for base classes. | |
| bool | operator== (const AbstractRegistry< T_Ptr, Container > &other) |
| bool | operator!= (const AbstractRegistry< T_Ptr, Container > &other) |
| AbstractRegistry & | operator= (AbstractRegistry &&sr) |
| Assignment move operator. | |
| virtual | ~AbstractRegistry (void) |
| virtual iterator | begin (void) ELPP_FINAL |
| virtual iterator | end (void) ELPP_FINAL |
| virtual const_iterator | cbegin (void) const ELPP_FINAL |
| virtual const_iterator | cend (void) const ELPP_FINAL |
| virtual bool | empty (void) const ELPP_FINAL |
| virtual std::size_t | size (void) const ELPP_FINAL |
| virtual Container & | list (void) ELPP_FINAL |
| Returns underlying container by reference. | |
| virtual const Container & | list (void) const ELPP_FINAL |
| Returns underlying container by constant reference. | |
| virtual void | unregisterAll (void)=0 |
| Unregisters all the pointers from current repository. | |
| Public Member Functions inherited from el::base::threading::ThreadSafe | |
| virtual void | acquireLock (void) ELPP_FINAL |
| virtual void | releaseLock (void) ELPP_FINAL |
| virtual base::threading::Mutex & | lock (void) ELPP_FINAL |
Protected Member Functions | |
| virtual void | deepCopy (const AbstractRegistry< T_Ptr, Container > &)=0 |
| void | reinitDeepCopy (const AbstractRegistry< T_Ptr, Container > &sr) |
| Protected Member Functions inherited from el::base::threading::ThreadSafe | |
| ThreadSafe (void) | |
| virtual | ~ThreadSafe (void) |
Private Attributes | |
| Container | m_list |
Abstract registry (aka repository) that provides basic interface for pointer repository specified by T_Ptr type.
@detail Most of the functions are virtual final methods but anything implementing this abstract class should implement unregisterAll() and deepCopy(const AbstractRegistry<T_Ptr, Container>&) and write registerNew() method according to container and few more methods; get() to find element, unregister() to unregister single entry. Please note that this is thread-unsafe and should also implement thread-safety mechanisms in implementation.
| typedef Container::const_iterator el::base::utils::AbstractRegistry< T_Ptr, Container >::const_iterator |
| typedef Container::iterator el::base::utils::AbstractRegistry< T_Ptr, Container >::iterator |
|
inline |
Default constructor.
|
inline |
Move constructor that is useful for base classes.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
protectedpure virtual |
Implemented in el::base::utils::const_iterator< T_Ptr, Pred >, el::base::utils::iterator< T_Ptr, Pred >, el::base::utils::Registry< Logger, std::string >, el::base::utils::RegistryWithPred< T_Ptr, Pred >, el::base::utils::RegistryWithPred< base::HitCounter, base::HitCounter::Predicate >, and el::base::utils::RegistryWithPred< Configuration, Configuration::Predicate >.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Returns underlying container by constant reference.
|
inlinevirtual |
Returns underlying container by reference.
|
inline |
|
inline |
Assignment move operator.
|
inline |
|
inlineprotected |
|
inlinevirtual |
|
pure virtual |
Unregisters all the pointers from current repository.
Implemented in el::base::utils::const_iterator< T_Ptr, Pred >, el::base::utils::const_iterator< T_Ptr, T_Key >, el::base::utils::iterator< T_Ptr, Pred >, el::base::utils::iterator< T_Ptr, T_Key >, el::base::utils::Registry< T_Ptr, T_Key >, el::base::utils::Registry< Logger, std::string >, el::base::utils::RegistryWithPred< T_Ptr, Pred >, el::base::utils::RegistryWithPred< base::HitCounter, base::HitCounter::Predicate >, and el::base::utils::RegistryWithPred< Configuration, Configuration::Predicate >.
|
private |