RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
#include <augmentation.h>
Inherits std::map< K, T >.
Public Member Functions | |
void | insertGlobal (const Augmentation &aug) |
void | mergeWith (const AugmentationList &other) |
Augmentation | filterForAccount (AccountKey account) const |
std::vector< std::string > | tagsForAccount (AccountKey account) const |
Json::Value | toJson () const |
Static Public Member Functions | |
static AugmentationList | fromJson (const Json::Value &json) |
Aggregation of the filtering rules on a per account prefix basis.
Definition at line 62 of file augmentation.h.
Augmentation RTBKIT::AugmentationList::filterForAccount | ( | AccountKey | account | ) | const |
Returns all the tags and data associated with the given account.
Definition at line 100 of file augmentation.cc.
void RTBKIT::AugmentationList::mergeWith | ( | const AugmentationList & | other | ) |
Merge the given augmentation data with our current augmentation data.
Definition at line 92 of file augmentation.cc.
vector< string > RTBKIT::AugmentationList::tagsForAccount | ( | AccountKey | account | ) | const |
Returns all the tags associated with the given account. This functions is essentially the same as filterForAccount except that it doesn't merge the json data. Useful for filtering.
Definition at line 117 of file augmentation.cc.