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
 

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)
 
MRC_API MR_IOFilterMR_IOFilter_OffsetMutablePtr (MR_IOFilter *ptr, ptrdiff_t i)
 
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 char *ext, const char *ext_end)
 
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 char *extension, const char *extension_end)
 

Typedef Documentation

◆ MR_IOFilter

typedef struct MR_IOFilter MR_IOFilter

Generated from class MR::IOFilter. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).

◆ 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 char * extension,
const char * extension_end )

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. If extension_end is null, then extension is assumed to be null-terminated. 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 method MR::IOFilter::operator=. Parameter _this can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it had previously.

◆ 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 constructor MR::IOFilter::IOFilter. Parameter _name can not be null. If _name_end is null, then _name is assumed to be null-terminated. The reference to the parameter _name might be preserved in the constructed object. Parameter _ext can not be null. If _ext_end is null, then _ext is assumed to be null-terminated. The reference to the parameter _ext might be preserved in the constructed object. 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 constructor MR::IOFilter::IOFilter. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. 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 char * ext,
const char * ext_end )

Generated from method MR::IOFilter::isSupportedExtension. Parameter _this can not be null. It is a single object. Parameter ext can not be null. If ext_end is null, then ext is assumed to be null-terminated.

◆ 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. The reference to the parameter ptr might be preserved in the return value.

◆ 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. The reference to the parameter ptr might be preserved in the return value.

◆ 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. The reference to the parameter value might be preserved in this object in element extensions. When this function is called, this object will drop object references it had previously in extensions.

◆ 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. The reference to the parameter value might be preserved in this object in element name. When this function is called, this object will drop object references it had previously in name.