MeshLib C Docs
Loading...
Searching...
No Matches
std_vector_int.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/common.h>
4#include <MRCMisc/exports.h>
5
6#include <stdbool.h>
7#include <stddef.h>
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13
17
21
25
29
34
38
42
45
48
51
54
58
62
66
70
74
78
82
86
89MRC_API void MR_std_vector_int_Reserve(MR_std_vector_int *_this, size_t new_capacity);
90
94
98MRC_API const int *MR_std_vector_int_At(const MR_std_vector_int *_this, size_t i);
99
104
108
112
116
120
124
128
132
136
139MRC_API void MR_std_vector_int_Insert(MR_std_vector_int *_this, size_t position, int new_elem);
140
144
149
154
159
164
169
174
179
184
189
194
199
204
209
214
218
223
228
233
236
239
242
245
250
254
259
264
269
272
275
278
281
286
290
294
298
303
308
312
316
320
325
326#ifdef __cplusplus
327} // extern "C"
328#endif
struct MR_std_vector_int MR_std_vector_int
Definition MRIntersectionContour.h:15
MR_PassBy
Definition common.h:19
#define MRC_API
Definition exports.h:11
size_t size() const
MRC_API int * MR_std_vector_int_MutableData(MR_std_vector_int *_this)
MRC_API size_t MR_std_vector_int_Capacity(const MR_std_vector_int *_this)
MRC_API void MR_std_vector_int_PushBack(MR_std_vector_int *_this, int new_elem)
MRC_API bool MR_std_vector_int_IsEmpty(const MR_std_vector_int *_this)
struct MR_std_vector_int_const_iterator MR_std_vector_int_const_iterator
Definition std_vector_int.h:20
MRC_API bool MR_std_vector_int_IsMutableBegin(MR_std_vector_int *_this, const MR_std_vector_int_iterator *iter)
MRC_API MR_std_vector_int_const_iterator * MR_std_vector_int_End(const MR_std_vector_int *_this)
MRC_API void MR_std_vector_int_Reserve(MR_std_vector_int *_this, size_t new_capacity)
MRC_API MR_std_vector_int_iterator * MR_std_vector_int_iterator_ConstructFromAnother(const MR_std_vector_int_iterator *other)
MRC_API void MR_std_vector_int_Resize(MR_std_vector_int *_this, size_t new_size)
MRC_API bool MR_std_vector_int_IsBegin(const MR_std_vector_int *_this, const MR_std_vector_int_const_iterator *iter)
MRC_API MR_std_vector_int_const_iterator * MR_std_vector_int_const_iterator_OffsetMutablePtr(MR_std_vector_int_const_iterator *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API void MR_std_vector_int_const_iterator_OffsetBy(MR_std_vector_int_const_iterator *_this, ptrdiff_t delta)
MRC_API MR_std_vector_int * MR_std_vector_int_ConstructFromAnother(MR_PassBy other_pass_by, MR_std_vector_int *other)
MRC_API MR_std_vector_int_iterator * MR_std_vector_int_iterator_DefaultConstruct(void)
MRC_API MR_std_vector_int_const_iterator * MR_std_vector_int_const_iterator_FromMutable(const MR_std_vector_int_iterator *iter)
MRC_API void MR_std_vector_int_iterator_OffsetBy(MR_std_vector_int_iterator *_this, ptrdiff_t delta)
MRC_API MR_std_vector_int_const_iterator * MR_std_vector_int_const_iterator_ConstructFromAnother(const MR_std_vector_int_const_iterator *other)
MRC_API void MR_std_vector_int_AssignFromRange(MR_std_vector_int *_this, const int *ptr, size_t size)
MRC_API bool MR_std_vector_int_IsMutableEnd(MR_std_vector_int *_this, const MR_std_vector_int_iterator *iter)
MRC_API void MR_std_vector_int_iterator_Incr(MR_std_vector_int_iterator *_this)
MRC_API void MR_std_vector_int_iterator_Destroy(const MR_std_vector_int_iterator *_this)
Destroys a heap-allocated instance of MR_std_vector_int_iterator. Does nothing if the pointer is null...
MRC_API MR_std_vector_int_iterator * MR_std_vector_int_MutableBegin(MR_std_vector_int *_this)
MRC_API const MR_std_vector_int * MR_std_vector_int_OffsetPtr(const MR_std_vector_int *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API MR_std_vector_int_iterator * MR_std_vector_int_iterator_DefaultConstructArray(size_t num_elems)
MRC_API ptrdiff_t MR_std_vector_int_ToIndex(const MR_std_vector_int *_this, const MR_std_vector_int_const_iterator *iter)
MRC_API void MR_std_vector_int_iterator_Decr(MR_std_vector_int_iterator *_this)
MRC_API const int * MR_std_vector_int_Back(const MR_std_vector_int *_this)
MRC_API bool MR_std_vector_int_IsEnd(const MR_std_vector_int *_this, const MR_std_vector_int_const_iterator *iter)
MRC_API const int * MR_std_vector_int_Data(const MR_std_vector_int *_this)
MRC_API void MR_std_vector_int_EraseAtMutableIter(MR_std_vector_int *_this, const MR_std_vector_int_iterator *position)
MRC_API MR_std_vector_int * MR_std_vector_int_DefaultConstructArray(size_t num_elems)
MRC_API MR_std_vector_int * MR_std_vector_int_OffsetMutablePtr(MR_std_vector_int *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API ptrdiff_t MR_std_vector_int_MutableToIndex(const MR_std_vector_int *_this, const MR_std_vector_int_iterator *iter)
MRC_API MR_std_vector_int_const_iterator * MR_std_vector_int_const_iterator_DefaultConstruct(void)
MRC_API const int * MR_std_vector_int_const_iterator_Deref(const MR_std_vector_int_const_iterator *_this)
MRC_API MR_std_vector_int_iterator * MR_std_vector_int_MutableEnd(MR_std_vector_int *_this)
MRC_API void MR_std_vector_int_AssignFromAnother(MR_std_vector_int *_this, MR_PassBy other_pass_by, MR_std_vector_int *other)
MRC_API void MR_std_vector_int_Clear(MR_std_vector_int *_this)
MRC_API void MR_std_vector_int_PopBack(MR_std_vector_int *_this)
MRC_API const MR_std_vector_int_iterator * MR_std_vector_int_iterator_OffsetPtr(const MR_std_vector_int_iterator *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API void MR_std_vector_int_iterator_AssignFromAnother(MR_std_vector_int_iterator *_this, const MR_std_vector_int_iterator *other)
MRC_API void MR_std_vector_int_Erase(MR_std_vector_int *_this, size_t position)
MRC_API const int * MR_std_vector_int_Front(const MR_std_vector_int *_this)
MRC_API void MR_std_vector_int_Insert(MR_std_vector_int *_this, size_t position, int new_elem)
MRC_API int * MR_std_vector_int_iterator_Deref(const MR_std_vector_int_iterator *_this)
MRC_API void MR_std_vector_int_InsertAtMutableIter(MR_std_vector_int *_this, const MR_std_vector_int_iterator *position, int new_elem)
MRC_API const MR_std_vector_int_const_iterator * MR_std_vector_int_const_iterator_OffsetPtr(const MR_std_vector_int_const_iterator *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API void MR_std_vector_int_InsertAtIter(MR_std_vector_int *_this, const MR_std_vector_int_const_iterator *position, int new_elem)
MRC_API void MR_std_vector_int_ResizeWithDefaultValue(MR_std_vector_int *_this, size_t new_size, int value)
MRC_API int * MR_std_vector_int_MutableBack(MR_std_vector_int *_this)
MRC_API void MR_std_vector_int_ShrinkToFit(MR_std_vector_int *_this)
MRC_API void MR_std_vector_int_const_iterator_DestroyArray(const MR_std_vector_int_const_iterator *_this)
Destroys a heap-allocated array of MR_std_vector_int_const_iterator. Does nothing if the pointer is n...
MRC_API MR_std_vector_int_const_iterator * MR_std_vector_int_Begin(const MR_std_vector_int *_this)
MRC_API void MR_std_vector_int_const_iterator_Incr(MR_std_vector_int_const_iterator *_this)
MRC_API const int * MR_std_vector_int_At(const MR_std_vector_int *_this, size_t i)
MRC_API ptrdiff_t MR_std_vector_int_const_iterator_Distance(const MR_std_vector_int_const_iterator *a, const MR_std_vector_int_const_iterator *b)
MRC_API void MR_std_vector_int_const_iterator_Decr(MR_std_vector_int_const_iterator *_this)
MRC_API void MR_std_vector_int_DestroyArray(const MR_std_vector_int *_this)
Destroys a heap-allocated array of MR_std_vector_int. Does nothing if the pointer is null.
MRC_API void MR_std_vector_int_iterator_DestroyArray(const MR_std_vector_int_iterator *_this)
Destroys a heap-allocated array of MR_std_vector_int_iterator. Does nothing if the pointer is null.
MRC_API MR_std_vector_int * MR_std_vector_int_ConstructFromRange(const int *ptr, size_t size)
MRC_API size_t MR_std_vector_int_Size(const MR_std_vector_int *_this)
MRC_API MR_std_vector_int_const_iterator * MR_std_vector_int_const_iterator_DefaultConstructArray(size_t num_elems)
MRC_API void MR_std_vector_int_const_iterator_Destroy(const MR_std_vector_int_const_iterator *_this)
Destroys a heap-allocated instance of MR_std_vector_int_const_iterator. Does nothing if the pointer i...
MRC_API void MR_std_vector_int_const_iterator_AssignFromAnother(MR_std_vector_int_const_iterator *_this, const MR_std_vector_int_const_iterator *other)
MRC_API void MR_std_vector_int_Destroy(const MR_std_vector_int *_this)
Destroys a heap-allocated instance of MR_std_vector_int. Does nothing if the pointer is null.
MRC_API ptrdiff_t MR_std_vector_int_iterator_Distance(const MR_std_vector_int_iterator *a, const MR_std_vector_int_iterator *b)
struct MR_std_vector_int_iterator MR_std_vector_int_iterator
Definition std_vector_int.h:24
MRC_API void MR_std_vector_int_EraseAtIter(MR_std_vector_int *_this, const MR_std_vector_int_const_iterator *position)
MRC_API int * MR_std_vector_int_MutableFront(MR_std_vector_int *_this)
MRC_API int * MR_std_vector_int_MutableAt(MR_std_vector_int *_this, size_t i)
MRC_API MR_std_vector_int * MR_std_vector_int_DefaultConstruct(void)
MRC_API MR_std_vector_int_iterator * MR_std_vector_int_iterator_OffsetMutablePtr(MR_std_vector_int_iterator *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...