|
|
|
|
|
|
|
|
|
|
|
|||||||
#include <stlsoft_zero.h>
Public Methods | |
| ZERO_v () | |
| Default constructor. | |
| operator ss_sint8_t const () const | |
| A zero (of type ss_sint8_t). | |
| operator ss_uint8_t const () const | |
| A zero (of type ss_uint8_t). | |
| operator ss_sint16_t const () const | |
| A zero (of type ss_sint16_t). | |
| operator ss_uint16_t const () const | |
| A zero (of type ss_uint16_t). | |
| operator ss_sint32_t const () const | |
| A zero (of type ss_sint32_t). | |
| operator ss_uint32_t const () const | |
| A zero (of type ss_uint32_t). | |
| operator float const () const | |
| A zero (of type float). | |
| operator double const () const | |
| A zero (of type double). | |
| operator long double const () const | |
| A zero (of type long double). | |
Static Public Methods | |
| ZERO_v | create () |
| Static creation. | |
This class can act as a replacement for the ZERO macro, by being validly assigned to or equated with pointer types only, as in
int i = ZERO; // error int *p = ZERO; // OK
if(i == ZERO) {} // error if(ZERO == i) {} // error
if(p == ZERO) {} // OK if(ZERO == p) {} // OK
When used via inclusion of the file stlsoft_zerodef.h, the macro ZERO is redefined as ZERO_v(), such that expressions containing ZERO will be valid against pointers only.
|
|
Default constructor.
|
|
|
Static creation.
|
|
|
A zero (of type double).
|
|
|
A zero (of type float).
|
|
|
A zero (of type long double).
|
|
|
A zero (of type ss_sint16_t).
|
|
|
A zero (of type ss_sint32_t).
|
|
|
A zero (of type ss_sint8_t).
|
|
|
A zero (of type ss_uint16_t).
|
|
|
A zero (of type ss_uint32_t).
|
|
|
A zero (of type ss_uint8_t).
|
|
|
| STLSoft Libraries documentation © Synesis Software Pty Ltd, 2001-2004 |