39 #ifndef BLOCXX_BOOL_HPP_INCLUDE_GUARD_ 40 #define BLOCXX_BOOL_HPP_INCLUDE_GUARD_ 41 #include "blocxx/BLOCXX_config.h" 56 class BLOCXX_COMMON_API
Bool 68 Bool(
bool val) : m_val(val) {}
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; }
126 void writeObject(std::streambuf & ostrm)
const;
131 void readObject(std::streambuf & istrm);
150 return b1 != b2.
m_val;
157 Bool(
volatile const void*);
158 Bool(
volatile void*);
169 BLOCXX_COMMON_API std::ostream&
operator << (std::ostream& ostrm,
const Bool& arg);
Array<> wraps std::vector<> in COWReference<> adding ref counting and copy on write capability.
Bool()
Create an Bool object initialized to false.
BLOCXX_EXPORT_TEMPLATE(BLOCXX_COMMON_API, Array, Bool)
friend bool operator!=(bool b1, Bool b2)
Not equal operator (friend function)
The Bool class is an abstraction for the boolean data type.
bool operator !() const
Negation operator.
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.
bool operator==(const Array< T > &x, const Array< T > &y)
ostream & operator<<(ostream &ostrm, const Bool &arg)
Insert the string representation of a Bool object into a given stream.
bool operator!=(const Char16 &arg, int v)
bool operator<(const Array< T > &x, const Array< T > &y)
Bool(const Bool &arg)
Copy constructor.