Bifrost SDK
Bifrost SDK documentation
Amino::PtrDefaultFlag Struct Reference

Flag that may be passed when creating a Ptr, to make it contain a default value as its pointee. More...

#include <Ptr.h>

Detailed Description

Flag that may be passed when creating a Ptr, to make it contain a default value as its pointee.

This can be passed the Ptr constructor to create a Ptr to a default value for its pointee. The Ptr will therefore NOT be null when constructed with this flag. For example:

// which is equivalent to:
Amino::Ptr<MyClass> myClassPtr{Amino::makeDefaultPtr<MyClass>()};
// Note that PtrDefaultFlag is convenient to avoid repetition of 'MyClass'
Flag that may be passed when creating a Ptr, to make it contain a default value as its pointee.
Definition: Ptr.h:124
Smart pointers allowing custom user classes (opaque classes) to be used within Amino graphs.
Definition: Ptr.h:207
Warning
This can only be used on pointee types T that are "defaultable". That is, the type T is either:

Definition at line 124 of file Ptr.h.