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 a way to manage and interact with optimization models."],["It offers methods for adding, creating, getting, and modifying model components."],["Users can register and take ownership of elements within the model."],["The class includes constructors for initialization and a destructor."],["Methods like `Add`, `Get`, and `Mutable` allow flexible manipulation of model data."]]],[]]