Monado OpenXR Runtime
u_deque.h File Reference

Expose std::deque to C. More...

#include "util/u_time.h"
#include <stddef.h>
Include dependency graph for u_deque.h:

Go to the source code of this file.

Data Structures

struct  u_deque_timepoint_ns
 

Macros

#define U_DEQUE_DECLARATION(TYPE)
 

Functions

struct u_deque_timepoint_ns u_deque_timepoint_ns_create (void)
 
void u_deque_timepoint_ns_push_back (struct u_deque_timepoint_ns ud, timepoint_ns e)
 
bool u_deque_timepoint_ns_pop_front (struct u_deque_timepoint_ns ud, timepoint_ns *e)
 
timepoint_ns u_deque_timepoint_ns_at (struct u_deque_timepoint_ns ud, size_t i)
 
size_t u_deque_timepoint_ns_size (struct u_deque_timepoint_ns wrap)
 
void u_deque_timepoint_ns_destroy (struct u_deque_timepoint_ns *ud)
 

Detailed Description

Expose std::deque to C.

Author
Mateo de Mayo mateo.nosp@m..dem.nosp@m.ayo@c.nosp@m.olla.nosp@m.bora..nosp@m.com

Macro Definition Documentation

◆ U_DEQUE_DECLARATION

#define U_DEQUE_DECLARATION (   TYPE)
Value:
struct u_deque_##TYPE \
{ \
void *ptr; \
}; \
struct u_deque_##TYPE u_deque_##TYPE##_create(void); \
void u_deque_##TYPE##_push_back(struct u_deque_##TYPE ud, TYPE e); \
bool u_deque_##TYPE##_pop_front(struct u_deque_##TYPE ud, TYPE *e); \
TYPE u_deque_##TYPE##_at(struct u_deque_##TYPE ud, size_t i); \
size_t u_deque_##TYPE##_size(struct u_deque_##TYPE wrap); \
void u_deque_##TYPE##_destroy(struct u_deque_##TYPE *ud);