MeshLib C Docs
Loading...
Searching...
No Matches
MRIOFilters.h File Reference
#include <MRCMisc/common.h>
#include <MRCMisc/exports.h>
#include <stdbool.h>
#include <stddef.h>

Go to the source code of this file.

Typedefs

typedef struct MR_std_optional_MR_IOFilter MR_std_optional_MR_IOFilter
 
typedef struct MR_std_string MR_std_string
 
typedef struct MR_std_vector_MR_IOFilter MR_std_vector_MR_IOFilter
 
typedef struct MR_IOFilter MR_IOFilter
 Generated from class MR::IOFilter.
 

Functions

MRC_API const MR_std_stringMR_IOFilter_Get_name (const MR_IOFilter *_this)
 
MRC_API void MR_IOFilter_Set_name (MR_IOFilter *_this, const char *value, const char *value_end)
 
MRC_API MR_std_stringMR_IOFilter_GetMutable_name (MR_IOFilter *_this)
 
MRC_API const MR_std_stringMR_IOFilter_Get_extensions (const MR_IOFilter *_this)
 
MRC_API void MR_IOFilter_Set_extensions (MR_IOFilter *_this, const char *value, const char *value_end)
 
MRC_API MR_std_stringMR_IOFilter_GetMutable_extensions (MR_IOFilter *_this)
 
MRC_API MR_IOFilterMR_IOFilter_DefaultConstruct (void)
 
MRC_API MR_IOFilterMR_IOFilter_DefaultConstructArray (size_t num_elems)
 
MRC_API const MR_IOFilterMR_IOFilter_OffsetPtr (const MR_IOFilter *ptr, ptrdiff_t i)
 Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.
 
MRC_API MR_IOFilterMR_IOFilter_OffsetMutablePtr (MR_IOFilter *ptr, ptrdiff_t i)
 Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.
 
MRC_API MR_IOFilterMR_IOFilter_ConstructFromAnother (MR_PassBy _other_pass_by, MR_IOFilter *_other)
 
MRC_API MR_IOFilterMR_IOFilter_Construct (const char *_name, const char *_name_end, const char *_ext, const char *_ext_end)
 
MRC_API void MR_IOFilter_Destroy (const MR_IOFilter *_this)
 Destroys a heap-allocated instance of MR_IOFilter. Does nothing if the pointer is null.
 
MRC_API void MR_IOFilter_DestroyArray (const MR_IOFilter *_this)
 Destroys a heap-allocated array of MR_IOFilter. Does nothing if the pointer is null.
 
MRC_API MR_IOFilterMR_IOFilter_AssignFromAnother (MR_IOFilter *_this, MR_PassBy _other_pass_by, MR_IOFilter *_other)
 
MRC_API bool MR_IOFilter_isSupportedExtension (const MR_IOFilter *_this, const MR_std_string *ext)
 
MRC_API MR_std_vector_MR_IOFilterMR_bitor_std_vector_MR_IOFilter (const MR_std_vector_MR_IOFilter *a, const MR_std_vector_MR_IOFilter *b)
 
MRC_API MR_std_optional_MR_IOFilterMR_findFilter (const MR_std_vector_MR_IOFilter *filters, const MR_std_string *extension)
 

Typedef Documentation

◆ MR_IOFilter

typedef struct MR_IOFilter MR_IOFilter

Generated from class MR::IOFilter.

◆ MR_std_optional_MR_IOFilter

◆ MR_std_string

typedef struct MR_std_string MR_std_string

◆ MR_std_vector_MR_IOFilter

Function Documentation

◆ MR_bitor_std_vector_MR_IOFilter()

MRC_API MR_std_vector_MR_IOFilter * MR_bitor_std_vector_MR_IOFilter ( const MR_std_vector_MR_IOFilter * a,
const MR_std_vector_MR_IOFilter * b )

returns union of input filters Generated from function MR::operator|. Parameter a can not be null. It is a single object. Parameter b can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_std_vector_MR_IOFilter_Destroy() to free it when you're done using it.

◆ MR_findFilter()

MRC_API MR_std_optional_MR_IOFilter * MR_findFilter ( const MR_std_vector_MR_IOFilter * filters,
const MR_std_string * extension )

find a corresponding filter for a given extension Generated from function MR::findFilter. Parameter filters can not be null. It is a single object. Parameter extension can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_std_optional_MR_IOFilter_Destroy() to free it when you're done using it.

◆ MR_IOFilter_AssignFromAnother()

MRC_API MR_IOFilter * MR_IOFilter_AssignFromAnother ( MR_IOFilter * _this,
MR_PassBy _other_pass_by,
MR_IOFilter * _other )

Generated from a method of class MR::IOFilter named operator=. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_IOFilter_Construct()

MRC_API MR_IOFilter * MR_IOFilter_Construct ( const char * _name,
const char * _name_end,
const char * _ext,
const char * _ext_end )

Generated from a constructor of class MR::IOFilter. Parameter _name can not be null. If _name_end is null, then _name is assumed to be null-terminated. Parameter _ext can not be null. If _ext_end is null, then _ext is assumed to be null-terminated. Never returns null. Returns an instance allocated on the heap! Must call MR_IOFilter_Destroy() to free it when you're done using it.

◆ MR_IOFilter_ConstructFromAnother()

MRC_API MR_IOFilter * MR_IOFilter_ConstructFromAnother ( MR_PassBy _other_pass_by,
MR_IOFilter * _other )

Generated from a constructor of class MR::IOFilter. Never returns null. Returns an instance allocated on the heap! Must call MR_IOFilter_Destroy() to free it when you're done using it.

◆ MR_IOFilter_DefaultConstruct()

MRC_API MR_IOFilter * MR_IOFilter_DefaultConstruct ( void )

Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_IOFilter_Destroy() to free it when you're done using it.

◆ MR_IOFilter_DefaultConstructArray()

MRC_API MR_IOFilter * MR_IOFilter_DefaultConstructArray ( size_t num_elems)

Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_IOFilter_DestroyArray(). Use MR_IOFilter_OffsetMutablePtr() and MR_IOFilter_OffsetPtr() to access the array elements.

◆ MR_IOFilter_Destroy()

MRC_API void MR_IOFilter_Destroy ( const MR_IOFilter * _this)

Destroys a heap-allocated instance of MR_IOFilter. Does nothing if the pointer is null.

◆ MR_IOFilter_DestroyArray()

MRC_API void MR_IOFilter_DestroyArray ( const MR_IOFilter * _this)

Destroys a heap-allocated array of MR_IOFilter. Does nothing if the pointer is null.

◆ MR_IOFilter_Get_extensions()

MRC_API const MR_std_string * MR_IOFilter_Get_extensions ( const MR_IOFilter * _this)

Returns a pointer to a member variable of class MR::IOFilter named extensions. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_IOFilter_Get_name()

MRC_API const MR_std_string * MR_IOFilter_Get_name ( const MR_IOFilter * _this)

Returns a pointer to a member variable of class MR::IOFilter named name. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_IOFilter_GetMutable_extensions()

MRC_API MR_std_string * MR_IOFilter_GetMutable_extensions ( MR_IOFilter * _this)

Returns a mutable pointer to a member variable of class MR::IOFilter named extensions. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_IOFilter_GetMutable_name()

MRC_API MR_std_string * MR_IOFilter_GetMutable_name ( MR_IOFilter * _this)

Returns a mutable pointer to a member variable of class MR::IOFilter named name. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_IOFilter_isSupportedExtension()

MRC_API bool MR_IOFilter_isSupportedExtension ( const MR_IOFilter * _this,
const MR_std_string * ext )

Generated from a method of class MR::IOFilter named isSupportedExtension. Parameter _this can not be null. It is a single object. Parameter ext can not be null. It is a single object.

◆ MR_IOFilter_OffsetMutablePtr()

MRC_API MR_IOFilter * MR_IOFilter_OffsetMutablePtr ( MR_IOFilter * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.

◆ MR_IOFilter_OffsetPtr()

MRC_API const MR_IOFilter * MR_IOFilter_OffsetPtr ( const MR_IOFilter * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.

◆ MR_IOFilter_Set_extensions()

MRC_API void MR_IOFilter_Set_extensions ( MR_IOFilter * _this,
const char * value,
const char * value_end )

Modifies a member variable of class MR::IOFilter named extensions. Parameter _this can not be null. It is a single object. Parameter value can not be null. If value_end is null, then value is assumed to be null-terminated.

◆ MR_IOFilter_Set_name()

MRC_API void MR_IOFilter_Set_name ( MR_IOFilter * _this,
const char * value,
const char * value_end )

Modifies a member variable of class MR::IOFilter named name. Parameter _this can not be null. It is a single object. Parameter value can not be null. If value_end is null, then value is assumed to be null-terminated.