Home | History | Annotate | Download | only in src

Lines Matching refs:element

19 #include "Element.h"
33 * Collection of policy element as a map indexed with a their UID type.
35 * @tparam Key type of the policy element indexing the collection.
36 * Policy Element supported are:
43 class Collection : public std::map<Key, Element<Key> *>
46 typedef std::map<Key, Element<Key> *> Base;
47 typedef Element<Key> T;
58 * Add a policy element to the collection. Policy elements are streams, strategies, input
60 * It also set the key as the unique identifier of the policy element.
62 * @tparam Key indexing the collection of policy element.
63 * @param[in] name of the policy element to find.
64 * @param[in] key to be used to index this new policy element.
66 * @return NO_ERROR if the policy element has been successfully added to the collection.
71 ALOGW("%s: element %s already added", __FUNCTION__, name.c_str());
75 ALOGD("%s: adding element %s to collection", __FUNCTION__, name.c_str());
80 * Get a policy element from the collection by its key. Policy elements are streams, strategies,
83 * @tparam Key indexing the collection of policy element.
84 * @param[in] key of the policy element to find.
86 * @return valid pointer on policy element if found, NULL otherwise.
95 * Find a policy element from the collection by its name. Policy elements are streams,
99 * @tparam Key indexing the collection of policy element.
100 * @param[in] name of the policy element to find.
103 * @return valid pointer on element if found, NULL otherwise.
110 T *element = it->second;
111 if (element->getName() == name) {
112 return element;
134 * @tparam T: type of the policyElement. Policy Element supported are: