14 for (
size_t i = 0; i < rhs.
vector_.size (); ++i)
29 MADARA_GUARD_TYPE guard (
mutex_);
31 for (
size_t i = 0; i <
vector_.size (); ++i)
40 MADARA_GUARD_TYPE guard (
mutex_);
42 std::stringstream result;
44 for (
size_t i = 0; i <
vector_.size (); ++i)
46 result <<
vector_[i]->get_debug_info_ () <<
"\n";
76 "Collection::is_true: checking all containers for truth\n");
81 MADARA_GUARD_TYPE guard (
mutex_);
83 for (
size_t i = 0; i <
vector_.size (); ++i)
94 "Collection::is_true: final result is %d\n", (int)result);
virtual void modify_(void)
Polymorphic modify method used by collection containers.
virtual ~Collection()
Destructor.
void clear(void)
Clears the collection of all containers.
virtual BaseContainer * clone(void) const
Clones this container.
bool is_false(void) const
Determines if the value of the collection is false.
bool is_true(void) const
Determines if all values in the collection are true.
A collection of MADARA containers that can be used for aggregate operations on all containers in the ...
virtual std::string get_debug_info_(void)
Returns the type of the container along with name and any other useful information.
virtual bool is_true_(void) const
Polymorphic is true method which can be used to determine if all values in the container are true...
MADARA_LOCK_TYPE mutex_
guard for access and changes
#define madara_logger_log(logger, level,...)
Fast version of the madara::logger::log method.
A thread-safe guard for a context or knowledge base.
void modify(void)
Mark all values in the container as modified.
virtual bool is_false_(void) const
Polymorphic is false method which can be used to determine if at least one value in the container is ...
std::string get_debug_info(void)
Returns the type of the containers along with name and any other useful information.
ThreadSafeContext * context_
Variable context that we are modifying.
logger::Logger & get_logger(void) const
Gets the logger used for information printing.
This class is an abstract base class for all containers.
std::vector< BaseContainer * > vector_
The underlying collection of containers.