Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
net_instaweb::BoolOrError Class Reference

#include "file_system.h"

Public Member Functions

 BoolOrError (bool t_or_f)
 
 BoolOrError (const BoolOrError &src)
 Intended to be passed by value; explicitly support copy & assign.
 
BoolOrErroroperator= (const BoolOrError &src)
 
bool is_false () const
 
bool is_true () const
 
bool is_error () const
 
void set_error ()
 
void set (bool t_or_f)
 

Detailed Description

Three-way return type for distinguishing Errors from boolean answer.

This is physically just an enum, but is wrapped in a class to prevent accidental usage in an if- or ternary-condition without explicitly indicating whether you are looking for true, false, or error.


The documentation for this class was generated from the following file: