Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: class Model
Note: This documentation is automatically generated.
Method |
Add | Return type: T Arguments: std::function<T(Model*)> f |
Create | Return type: T* |
Get | Return type: T Arguments: std::function<T(const Model&)> f |
Get | Return type: const T* |
GetOrCreate | Return type: T* |
Model | |
~Model | |
Model | Return type: explicit Arguments: std::string name |
Mutable | Return type: T* |
Name | Return type: const std::string& |
Register | Return type: void Arguments: T* non_owned_class |
TakeOwnership | Return type: T* Arguments: T* t |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-06 UTC.
[null,null,["Last updated 2024-08-06 UTC."],[],["The `Model` class in C++ provides methods for managing data and objects. Key actions include: `Add` to add data using a function; `Create` and `GetOrCreate` to manage object creation; `Get` to retrieve data or const pointers; `Mutable` to retrieve mutable pointers; `Register` to register objects; `TakeOwnership` to transfer ownership. It also supports constructor (`Model`), destructor (`~Model`), and the ability to set and retrieve a name via the `Name` method.\n"],null,[]]