Public Types | Public Member Functions | Static Public Attributes

ts::config::detail::PseudoBool Struct Reference

Class to provide a "pseudo bool" value. More...

#include <TsValue.h>

Public Types

typedef bool(PseudoBool::* Type )() const
 The type itself.

Public Member Functions

bool operator! () const
 A method to use for the true value.

Static Public Attributes

static Type const TRUE = &detail::PseudoBool::operator !
 The true equivalent.
static Type const FALSE = 0
 The false equivalent.

Detailed Description

Class to provide a "pseudo bool" value.

This is used as the return type for the positive logical operator (the converse of operator! ). This makes a class directly usable in logical expressions. It is like a pointer but not convertible to anything else, and so avoiding any undesirable automatic conversions and the resulting ambiguities.

Definition at line 48 of file TsValue.h.


Member Typedef Documentation

typedef bool(PseudoBool::* ts::config::detail::PseudoBool::Type)() const

The type itself.

Definition at line 49 of file TsValue.h.


Member Function Documentation

bool ts::config::detail::PseudoBool::operator! (  )  const

A method to use for the true value.

Definition at line 46 of file TsValue.cc.


Field Documentation

detail::PseudoBool::Type const ts::config::detail::PseudoBool::TRUE = &detail::PseudoBool::operator ! [static]

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