1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #ifndef H_ANDROID_SPLIT_SPLIT_SELECTOR
- #define H_ANDROID_SPLIT_SPLIT_SELECTOR
- #include <utils/KeyedVector.h>
- #include <utils/SortedVector.h>
- #include <utils/Vector.h>
- #include "Rule.h"
- #include "SplitDescription.h"
- namespace split {
- class SplitSelector {
- public:
- SplitSelector();
- explicit SplitSelector(const android::Vector<SplitDescription>& splits);
- android::Vector<SplitDescription> getBestSplits(const SplitDescription& target) const;
- android::KeyedVector<SplitDescription, android::sp<Rule> > getRules() const;
- private:
- android::Vector<android::SortedVector<SplitDescription> > mGroups;
- };
- }
- #endif
|