#include <assert.h>
#include "Boole.h"
#include "String.h"
Go to the source code of this file.
◆ _Class
◆ _Boole()
Definition at line 125 of file Boole.c.
125 {
128
131 .name = "Boole",
133 .instanceSize =
sizeof(
Boole),
134 .interfaceOffset = offsetof(
Boole, interface),
135 .interfaceSize = sizeof(BooleInterface),
138 });
139 });
140
141 return clazz;
142}
static void destroy(Class *clazz)
static void initialize(Class *clazz)
Class * _initialize(const ClassDef *def)
Initializes the given Class.
#define do_once(once, block)
Executes the given block at most one time.
A wrapper for placing boolean primitives into collections, etc.
ClassDefs are passed to _initialize via an archetype to initialize a Class.
The runtime representation of a Class.
Class * _Object(void)
The Object archetype.
◆ copy()
◆ description()
- See also
- Object::description(const Object *)
Definition at line 44 of file Boole.c.
44 {
45
47
49}
#define alloc(type)
Allocate and initialize and instance of type.
String * initWithCharacters(String *self, const char *chars)
Initializes this String by copying chars.
◆ destroy()
static void destroy |
( |
Class * |
clazz | ) |
|
|
static |
- See also
- Class::destroy(Class *)
Definition at line 115 of file Boole.c.
115 {
116
119}
ident release(ident obj)
Atomically decrement the given Object's reference count. If the resulting reference count is 0,...
◆ False()
static Boole * False |
( |
void |
| ) |
|
|
static |
Definition at line 59 of file Boole.c.
59 {
60
62
66 });
67
69}
_Bool value
The backing _Bool.
Condition * init(Condition *self)
Initializes this Condition.
◆ initialize()
static void initialize |
( |
Class * |
clazz | ) |
|
|
static |
- See also
- Class::initialize(Class *)
Definition at line 102 of file Boole.c.
102 {
103
106
110}
Boole * valueof(_Bool value)
ident interface
The interface of the Class.
Object * copy(const Object *self)
Creates a shallow copy of this Object.
String * description(const Object *self)
◆ True()
static Boole * True |
( |
void |
| ) |
|
|
static |
◆ valueof()
static Boole * valueof |
( |
_Bool |
value | ) |
|
|
static |
◆ _False
◆ _True