20 #ifndef VECTORCALLBACK_H_
21 #define VECTORCALLBACK_H_
23 #include "CollectionCallback.h"
26 namespace basic_types {
52 virtual void insert(E element)
override {
vec.push_back(element); }
virtual void insert(E element) override
Adds an object to the vector encapsulated by the callback object.
Definition: VectorCallback.h:52
virtual ~VectorCallback()
Destroys this callback object.
Definition: VectorCallback.h:47
VectorCallback(vector< E > &vec)
Generates a new callback with the given vector reference.
Definition: VectorCallback.h:42
This template provides a possibility to add elements to a collection without having a reference to th...
Definition: CollectionCallback.h:34
This template class implements a CollectionCallback to a vector.
Definition: VectorCallback.h:34
vector< E > & vec
Stores a reference to a vector.
Definition: VectorCallback.h:59