Header:
plang/factor/boolean.hpp
Class:
boolean : factor

    bool is built-in data type represents boolean (true or false). In C++ code boost::shared_ptr<boolean> is class corresponding to bool. boolean has bool type member named val which holds value of that object.

Members
val
boolean value

Methods

constructors

bool()

bool(T& x)
operators


bool operator &&(T& x)

bool operator ||(T& x)

bool operator ==(T& x)

bool operator !=(T& x)

int operator =(T& x)

bool operator !()
casts


operator bool()

operator unsigned int()

operator int()

operator float()

operator double()

operator string()

bool()
default constructor, set val to 0

effects

val=0


template<class T> bool(T& x)
constructors includes copy constructor, set val to x

parameters
T& x
T must be castable to bool

effects
val=bool(x)