1 #ifndef _MADARA_CONTAINERS_COLLECTION_CONTAINER_H 2 #define _MADARA_CONTAINERS_COLLECTION_CONTAINER_H 11 MADARA_GUARD_TYPE guard (
mutex_);
18 MADARA_GUARD_TYPE guard (
mutex_);
20 for (
size_t i = 0; i <
vector_.size (); ++i)
32 MADARA_GUARD_TYPE guard (
mutex_);
34 for (
size_t i = 0; i <
vector_.size (); ++i)
36 vector_[i]->set_settings (settings);
43 MADARA_GUARD_TYPE guard (
mutex_);
size_t size(void) const
Returns the size of the collection.
void clear(void)
Clears the collection of all containers.
void add(const BaseContainer &container)
Adds a class implementing BaseContainer to the collection.
MADARA_LOCK_TYPE mutex_
guard for access and changes
void set_settings(const KnowledgeUpdateSettings &settings)
Sets the update settings for all containers.
virtual BaseContainer * clone(void) const =0
Clones this container.
Settings for applying knowledge updates.
This class is an abstract base class for all containers.
std::vector< BaseContainer * > vector_
The underlying collection of containers.