MongoDB  2.7.0
Public Member Functions | Public Attributes | List of all members
mongo::ReadPreferenceSetting Struct Reference

Public Member Functions

 ReadPreferenceSetting (ReadPreference pref, const TagSet &tag)
 pref the read preference mode. More...
 
bool equals (const ReadPreferenceSetting &other) const
 
BSONObj toBSON () const
 

Public Attributes

const ReadPreference pref
 
TagSet tags
 

Constructor & Destructor Documentation

mongo::ReadPreferenceSetting::ReadPreferenceSetting ( ReadPreference  pref,
const TagSet tag 
)
inline

pref the read preference mode.

Parameters
tagthe tag set. Note that this object will have the tag set will have this in a reset state (meaning, this object's copy of tag will have the iterator in the initial position).

The documentation for this struct was generated from the following files: