MeshLib C# Docs
Loading...
Searching...
No Matches
MR.Misc Class Reference

Classes

class  _InOpt
 This is used for optional parameters with default arguments. Usage: More...
 
struct  _Moved
 A wrapper for T that indicates that it's a temporary object, or should be treated as such. If you're calling a function that returns this, you can safely convert this to T. If you're calling a function that takes this as a parameter, use the Move() function to create this wrapper. More...
 
struct  _MoveRef
 This is a tag type for passing rvalue references. Don't construct directly, prefer the MoveRef constant. More...
 
class  Box
 Stores a single heap-allocated value with a stable address, or a user-provided non-owning pointer. This is used for class fields of pointer types to mutable non-classes. Usage: More...
 
class  Const_Box
 Stores a single heap-allocated value with a stable address, or a user-provided non-owning pointer. This is used for class fields of pointer types to const non-classes. Usage: More...
 
class  ConstRef
 A reference to a C object. This is sometimes used to return optional references, since ref can't be nullable. Or to return references from operators, since those can't return refs. This object itself isn't nullable, we return ConstRef<T>? when nullability is needed. More...
 
class  InOut
 This is used for optional in/out parameters, since ref can't be nullable. More...
 
class  KeepAliveHolder
 This is the base classes that keep other classes alive. This is generic to keep static fields separate. More...
 
struct  NullOptType
 The type of NullOpt, see that for more details. More...
 
class  Object
 This is the base class for all our classes. More...
 
class  Ref
 A reference to a C object. This is sometimes used to return optional references, since ref can't be nullable. Or to return references from operators, since those can't return refs. This object itself isn't nullable, we return Ref<T>? when nullability is needed. More...
 
class  SharedObject
 This is the base class for those of our classes that are backed by std.shared_ptr. More...
 
class  UnexpectedResultException
 This is thrown when the underlying C++ function returns an error via expected<>. More...
 

Static Public Member Functions

static _Moved< T > Move< T > (T new_value)
 Wraps the object in a wrapper that indicates that it should be treated as a temporary object. This can be used with _ByValue_... function parameters, to indicate that the argument should be moved. See those structs for a longer explanation.
 

Static Public Attributes

static _MoveRef MoveRef = default
 This is a tag value. Pass it to functions having a _MoveRef parameter. This indicates that the reference parameter immediately following it is an rvalue reference.
 
static NullOptType NullOpt
 This can be passed into _ByValueOptOpt_... parameters to indicate that you want to pass no object, as opposed to using the default argument provided by the function.
 

The documentation for this class was generated from the following file: