|
Electroneum
|
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. More... | |
| AbstractRegistry (AbstractRegistry &&sr) | |
| Move constructor that is useful for base classes. More... | |
| bool | operator== (const AbstractRegistry< T_Ptr, Container > &other) |
| bool | operator!= (const AbstractRegistry< T_Ptr, Container > &other) |
| AbstractRegistry & | operator= (AbstractRegistry &&sr) |
| Assignment move operator. More... | |
| 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. More... | |
| virtual const Container & | list (void) const ELPP_FINAL |
| Returns underlying container by constant reference. More... | |
| virtual void | unregisterAll (void)=0 |
| Unregisters all the pointers from current repository. More... | |
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) |
Abstract registry (aka repository) that provides basic interface for pointer repository specified by T_Ptr type.
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.
Definition at line 1278 of file easylogging++.h.
| typedef Container::const_iterator el::base::utils::AbstractRegistry< T_Ptr, Container >::const_iterator |
Definition at line 1281 of file easylogging++.h.
| typedef Container::iterator el::base::utils::AbstractRegistry< T_Ptr, Container >::iterator |
Definition at line 1280 of file easylogging++.h.
|
inline |
|
inline |
Move constructor that is useful for base classes.
Definition at line 1287 of file easylogging++.h.
|
inlinevirtual |
Definition at line 1329 of file easylogging++.h.
|
inlinevirtual |
Definition at line 1333 of file easylogging++.h.
|
inlinevirtual |
Definition at line 1344 of file easylogging++.h.
|
inlinevirtual |
Definition at line 1349 of file easylogging++.h.
|
protectedpure virtual |

|
inlinevirtual |
Definition at line 1354 of file easylogging++.h.
|
inlinevirtual |
Definition at line 1338 of file easylogging++.h.
|
inlinevirtual |
Returns underlying container by reference.
Definition at line 1364 of file easylogging++.h.
|
inlinevirtual |
Returns underlying container by constant reference.
Definition at line 1369 of file easylogging++.h.
|
inline |
Definition at line 1307 of file easylogging++.h.
|
inline |
Assignment move operator.
Definition at line 1320 of file easylogging++.h.
|
inline |
Definition at line 1295 of file easylogging++.h.
|
inlineprotected |
Definition at line 1378 of file easylogging++.h.
|
inlinevirtual |
Definition at line 1359 of file easylogging++.h.

|
pure virtual |
Unregisters all the pointers from current repository.
Implemented in el::base::utils::RegistryWithPred< T_Ptr, Pred >, el::base::utils::RegistryWithPred< Configuration, Configuration::Predicate >, el::base::utils::RegistryWithPred< base::HitCounter, base::HitCounter::Predicate >, el::base::utils::Registry< T_Ptr, T_Key >, and el::base::utils::Registry< Logger, std::string >.
