RTBKit  0.9
Open-source framework to create real-time ad bidding systems.
Public Member Functions | Public Attributes
StringMap Struct Reference

List of all members.

Public Member Functions

int operator[] (const std::string &str)
const std::string & operator[] (int i) const
virtual int parse (const std::string &str)
virtual std::string print (int val) const
virtual size_t size () const
virtual bool has (const std::string &str) const
virtual std::string identifier () const

Public Attributes

std::unordered_map< string, int > toInt
std::vector< std::string > toString
std::string id

Detailed Description

Definition at line 128 of file bid_aggregator_test.cc.


Member Function Documentation

virtual bool StringMap::has ( const std::string &  str) const [inline, virtual]

Returns whether or not the given key is in the value map.

Definition at line 170 of file bid_aggregator_test.cc.

virtual std::string StringMap::identifier ( ) const [inline, virtual]

Returns some kind of type specific path identifier that can be used to identify the string map in serialization/reconstitution.

Definition at line 178 of file bid_aggregator_test.cc.

virtual int StringMap::parse ( const std::string &  str) [inline, virtual]

Convert the given string value into an integral representation. Guaranteed not to fail; will add the value if it doesn't exist.

Definition at line 150 of file bid_aggregator_test.cc.

virtual std::string StringMap::print ( int  val) const [inline, virtual]

Return the string corresponding to the given integral value. Throws an exception if the integer doesn't correspond to a valid value.

Definition at line 158 of file bid_aggregator_test.cc.

virtual size_t StringMap::size ( ) const [inline, virtual]

Returns the number of entries in the value table.

Definition at line 164 of file bid_aggregator_test.cc.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator