Lines Matching refs:Element
19 #include "Element.h"
37 * Collection of policy element as a map indexed with a their UID type.
39 * @tparam Key type of the policy element indexing the collection.
40 * Policy Element supported are:
47 class Collection : public std::map<Key, Element<Key> *>
50 typedef std::map<Key, Element<Key> *> Base;
51 typedef Element<Key> T;
62 * Add a policy element to the collection. Policy elements are streams, strategies, input
64 * It also set the key as the unique identifier of the policy element.
66 * @tparam Key indexing the collection of policy element.
67 * @param[in] name of the policy element to find.
68 * @param[in] key to be used to index this new policy element.
70 * @return NO_ERROR if the policy element has been successfully added to the collection.
75 ALOGW("%s: element %s already added", __FUNCTION__, name.c_str());
79 ALOGD("%s: adding element %s to collection", __FUNCTION__, name.c_str());
84 * Get a policy element from the collection by its key. Policy elements are streams, strategies,
87 * @tparam Key indexing the collection of policy element.
88 * @param[in] key of the policy element to find.
90 * @return valid pointer on policy element if found, NULL otherwise.
99 * Find a policy element from the collection by its name. Policy elements are streams,
103 * @tparam Key indexing the collection of policy element.
104 * @param[in] name of the policy element to find.
107 * @return valid pointer on element if found, NULL otherwise.
114 T *element = it->second;
115 if (element->getName() == name) {
116 return element;
138 * @tparam T: type of the policyElement. Policy Element supported are: