MySQL 9.0.0
Source Code Documentation
Bool3 Class Reference

A type for SQL-like 3-valued Booleans: true/false/unknown. More...

#include <item.h>

Public Member Functions

bool is_true () const
 
bool is_unknown () const
 
bool is_false () const
 

Static Public Member Functions

static const Bool3 false3 ()
 
static const Bool3 unknown3 ()
 
static const Bool3 true3 ()
 

Private Types

enum  value { v_FALSE , v_UNKNOWN , v_TRUE }
 

Private Member Functions

 Bool3 (value v)
 This is private; instead, use false3()/etc. More...
 

Private Attributes

value m_val
 

Detailed Description

A type for SQL-like 3-valued Booleans: true/false/unknown.

Member Enumeration Documentation

◆ value

enum Bool3::value
private
Enumerator
v_FALSE 
v_UNKNOWN 
v_TRUE 

Constructor & Destructor Documentation

◆ Bool3()

Bool3::Bool3 ( value  v)
inlineprivate

This is private; instead, use false3()/etc.

Member Function Documentation

◆ false3()

static const Bool3 Bool3::false3 ( )
inlinestatic
Returns
an instance set to "FALSE"

◆ is_false()

bool Bool3::is_false ( ) const
inline

◆ is_true()

bool Bool3::is_true ( ) const
inline

◆ is_unknown()

bool Bool3::is_unknown ( ) const
inline

◆ true3()

static const Bool3 Bool3::true3 ( )
inlinestatic
Returns
an instance set to "TRUE"

◆ unknown3()

static const Bool3 Bool3::unknown3 ( )
inlinestatic
Returns
an instance set to "UNKNOWN"

Member Data Documentation

◆ m_val

value Bool3::m_val
private

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