14 #ifndef DDCOND_CONDITIONSDEPENDENCYCOLLECTION_H
15 #define DDCOND_CONDITIONSDEPENDENCYCOLLECTION_H
30 namespace Conditions {
34 class ConditionDependency;
52 operator int()
const {
return dep ? 1 : 0; }
108 std::pair<iterator,bool>
insert(
const Dependencies::value_type& entry);
112 template <
typename T>
void for_each(
const T&
function)
const
122 template <
typename Data,
typename Oper>
Dependencies::mapped_type mapped_type
Collection of condition dependencies.
ConditionsDependencyCollection()
Initializing constructor.
void clear()
Clear the dependency container. Destroys the contained stuff.
ConditionDependency Dependency
Forward definition of the dependency type.
std::pair< iterator, bool > insert(const Dependencies::value_type &entry)
Mini-container interface: insert element by key.
virtual ~ConditionsDependencyCollection()
Default destructor.
const_iterator end() const
Mini-container interface: end of iteration (const)
Collection of DetElements from the conditions dependencies.
std::map< unsigned int, Holder > Dependencies
Forward definition of the dependency container type.
const_iterator find(Condition::key_type key) const
Mini-container interface: find element by key (const)
iterator end()
Mini-container interface: end of iteration.
Dependency * operator->() const
unsigned int key_type
Forward definition of the key type.
Dependencies::const_iterator const_iterator
ConditionsDependencyCollection::Dependencies Dependencies
Forward definition of the dependency container type.
iterator begin()
Mini-container interface: begin of iteration.
Data & user_data
Reference to collection result (Object owned by caller)
Dependencies dependencies
Dependency container.
Condition dependency definition.
const_iterator begin() const
Mini-container interface: begin of iteration (const)
Dependencies::iterator iterator
const Oper & user_oper
Reference to the collection operator (Object owned by caller)
Holder & operator=(Dependency *d)
size_t size() const
Mini-container interface: number of entries.
void operator()(const Dependencies::value_type &e) const
Default callback to work on dependency items. May be overloaded if necessary.
ConditionsDependencyCollection::Dependency Dependency
Forward definition of the dependency type.
Functor base to create views.
iterator find(Condition::key_type key)
Mini-container interface: find element by key.
void for_each(const T &function) const
Create view by application of functor.
Dependencies::key_type key_type
bool empty() const
Mini-container interface: emptyness check.
DependencyCollector(Data &d, const Oper &o)
Initializing constructor.