Home | History | Annotate | Download | only in metrics

Lines Matching refs:string

59 #include <string>
99 virtual double GetEntropyForTrial(const std::string& trial_name,
105 std::string trial_name;
106 std::string group_name;
128 int AppendGroup(const std::string& name, Probability group_probability);
131 const std::string& trial_name() const { return trial_name_; }
140 // If the group's name is empty, a string version containing the group number
142 const std::string& group_name();
168 const std::string& trial_name,
170 const std::string& default_group_name,
204 FieldTrial(const std::string& trial_name,
206 const std::string& default_group_name,
211 std::string default_group_name() const { return default_group_name_; }
218 void SetGroupChoice(const std::string& group_name, int number);
234 std::string group_name_internal() const { return group_name_; }
237 const std::string trial_name_;
244 const std::string default_group_name_;
263 std::string group_name_;
313 virtual void OnFieldTrialGroupFinalized(const std::string& trial_name,
314 const std::string& group_name) = 0;
350 const std::string& trial_name,
352 const std::string& default_group_name,
367 const std::string& trial_name,
369 const std::string& default_group_name,
379 static FieldTrial* Find(const std::string& name);
383 static int FindValue(const std::string& name);
386 // empty string if the trial does not exist.
387 static std::string FindFullName(const std::string& name);
390 static bool TrialExists(const std::string& name);
395 // The resulting string contains the name and group name pairs of all
398 // to separate all names and to terminate the string. This string is parsed
400 static void StatesToString(std::string* output);
409 // Use a state string (re: StatesToString()) to augment the current list of
411 // for each trial, force them to have the same group string. This is commonly
419 const std::string& prior_trials,
421 const std::set<std::string>& ignored_trial_names);
424 // the FieldTrial, force FieldTrial to have the same group string as
428 // the same |name| but has different finalized group string (|group_name|).
429 static FieldTrial* CreateFieldTrial(const std::string& name,
430 const std::string& group_name);
448 typedef std::map<std::string, FieldTrial*> RegistrationMap;
456 FieldTrial* PreLockedFind(const std::string& name);