Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::math_opt::NonStreamableSolverInitArgumentsValue Class Reference

#include <non_streamable_solver_init_arguments.h>

Public Member Functions

 NonStreamableSolverInitArgumentsValue ()=default
 Initializes with no value.
 
 NonStreamableSolverInitArgumentsValue (const NonStreamableSolverInitArguments &non_streamable)
 Initializes with the provided value, cloning it.
 
 NonStreamableSolverInitArgumentsValue (const NonStreamableSolverInitArgumentsValue &other)
 Clones other.get() if not nullptr.
 
NonStreamableSolverInitArgumentsValueoperator= (const NonStreamableSolverInitArgumentsValue &other)
 Clones other.get() if not nullptr.
 
 NonStreamableSolverInitArgumentsValue (NonStreamableSolverInitArgumentsValue &&other)=default
 Steals other.get() and resets it to nullptr.
 
NonStreamableSolverInitArgumentsValueoperator= (NonStreamableSolverInitArgumentsValue &&other)=default
 Steals other.get() and resets it to nullptr.
 
const NonStreamableSolverInitArgumentsget () const
 Return a pointer on the value; nullptr if unset (default value).
 

Detailed Description

Value-like class holding an optional NonStreamableSolverInitArguments. On copy it clones it.

NonStreamableSolverInitArgumentsValue::get() gives access the pointed arguments. The implicit constructor from NonStreamableSolverInitArguments is used to build new instance.

Definition at line 142 of file non_streamable_solver_init_arguments.h.

Constructor & Destructor Documentation

◆ NonStreamableSolverInitArgumentsValue() [1/4]

operations_research::math_opt::NonStreamableSolverInitArgumentsValue::NonStreamableSolverInitArgumentsValue ( )
default

Initializes with no value.

◆ NonStreamableSolverInitArgumentsValue() [2/4]

operations_research::math_opt::NonStreamableSolverInitArgumentsValue::NonStreamableSolverInitArgumentsValue ( const NonStreamableSolverInitArguments & non_streamable)

Initializes with the provided value, cloning it.

Definition at line 30 of file non_streamable_solver_init_arguments.cc.

◆ NonStreamableSolverInitArgumentsValue() [3/4]

operations_research::math_opt::NonStreamableSolverInitArgumentsValue::NonStreamableSolverInitArgumentsValue ( const NonStreamableSolverInitArgumentsValue & other)

Clones other.get() if not nullptr.

Definition at line 34 of file non_streamable_solver_init_arguments.cc.

◆ NonStreamableSolverInitArgumentsValue() [4/4]

operations_research::math_opt::NonStreamableSolverInitArgumentsValue::NonStreamableSolverInitArgumentsValue ( NonStreamableSolverInitArgumentsValue && other)
default

Steals other.get() and resets it to nullptr.

Member Function Documentation

◆ get()

const NonStreamableSolverInitArguments * operations_research::math_opt::NonStreamableSolverInitArgumentsValue::get ( ) const
inline

Return a pointer on the value; nullptr if unset (default value).

Definition at line 168 of file non_streamable_solver_init_arguments.h.

◆ operator=() [1/2]

NonStreamableSolverInitArgumentsValue & operations_research::math_opt::NonStreamableSolverInitArgumentsValue::operator= ( const NonStreamableSolverInitArgumentsValue & other)

Clones other.get() if not nullptr.

Assignment to self is possible.

Definition at line 39 of file non_streamable_solver_init_arguments.cc.

◆ operator=() [2/2]

NonStreamableSolverInitArgumentsValue & operations_research::math_opt::NonStreamableSolverInitArgumentsValue::operator= ( NonStreamableSolverInitArgumentsValue && other)
default

Steals other.get() and resets it to nullptr.


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