Objectively 1.0.0
Ultra-lightweight object oriented framework for GNU C.
Data Structures | Functions
IndexPath.h File Reference

Index paths represent the path to an element or node within a tree or graph structure. More...

#include <Objectively/Object.h>

Go to the source code of this file.

Data Structures

struct  IndexPath
 Index paths represent the path to an element or node within a tree or graph structure. More...
 

Functions

OBJECTIVELY_EXPORT Class_IndexPath (void)
 

Detailed Description

Index paths represent the path to an element or node within a tree or graph structure.

Definition in file IndexPath.h.

Function Documentation

◆ _IndexPath()

OBJECTIVELY_EXPORT Class * _IndexPath ( void  )

Definition at line 180 of file IndexPath.c.

180 {
181 static Class *clazz;
182 static Once once;
183
184 do_once(&once, {
185 clazz = _initialize(&(const ClassDef) {
186 .name = "IndexPath",
187 .superclass = _Object(),
188 .instanceSize = sizeof(IndexPath),
189 .interfaceOffset = offsetof(IndexPath, interface),
190 .interfaceSize = sizeof(IndexPathInterface),
192 });
193 });
194
195 return clazz;
196}
Class * _initialize(const ClassDef *def)
Initializes the given Class.
Definition: Class.c:91
static void initialize(Class *clazz)
Definition: IndexPath.c:163
long Once
The Once type.
Definition: Once.h:37
#define do_once(once, block)
Executes the given block at most one time.
Definition: Once.h:43
ClassDefs are passed to _initialize via an archetype to initialize a Class.
Definition: Class.h:41
The runtime representation of a Class.
Definition: Class.h:95
Index paths represent the path to an element or node within a tree or graph structure.
Definition: IndexPath.h:40
Class * _Object(void)
The Object archetype.
Definition: Object.c:136