39#ifndef BLOCXX_BOOL_HPP_INCLUDE_GUARD_
40#define BLOCXX_BOOL_HPP_INCLUDE_GUARD_
41#include "blocxx/BLOCXX_config.h"
56class BLOCXX_COMMON_API
Bool
86 bool operator== (
const bool arg)
const {
return m_val == arg; }
100 bool operator!= (
const bool arg)
const {
return m_val != arg; }
111 operator bool()
const {
return m_val; }
116 bool operator !()
const {
return !
m_val; }
126 void writeObject(std::streambuf & ostrm)
const;
131 void readObject(std::streambuf & istrm);
138 friend bool operator< (
const Bool& b1,
const Bool& b2)
150 return b1 != b2.
m_val;
Array<> wraps std::vector<> in COWReference<> adding ref counting and copy on write capability.
The Bool class is an abstraction for the boolean data type.
Bool(volatile const void *)
Bool()
Create an Bool object initialized to false.
Bool(const Bool &arg)
Copy constructor.
friend bool operator!=(bool b1, Bool b2)
Not equal operator (friend function)
Bool(bool val)
Create an Bool object initialized to a given boolean value.
This String class is an abstract data type that represents as NULL terminated string of characters.
ostream & operator<<(ostream &ostrm, const Bool &arg)
BLOCXX_EXPORT_TEMPLATE(BLOCXX_COMMON_API, Array, Bool)