2020-09-01 16:00:33 +02:00
<!-- HTML header for doxygen 1.8.18 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
< meta http-equiv = "X-UA-Compatible" content = "IE=9" / >
2021-01-26 11:28:50 +01:00
< meta name = "generator" content = "Doxygen 1.9.1" / >
2020-09-01 16:00:33 +02:00
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
< title > OR-Tools: cp_model_utils.cc File Reference< / title >
< link href = "tabs.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "jquery.js" > < / script >
< script type = "text/javascript" src = "dynsections.js" > < / script >
< link href = "navtree.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "resize.js" > < / script >
< script type = "text/javascript" src = "navtreedata.js" > < / script >
< script type = "text/javascript" src = "navtree.js" > < / script >
< link href = "search/search.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "search/searchdata.js" > < / script >
< script type = "text/javascript" src = "search/search.js" > < / script >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
< link href = "styleSheet.tmp.css" rel = "stylesheet" type = "text/css" / >
< / head >
< body >
< div id = "top" > <!-- do not remove this div, it is closed by doxygen! -->
< div id = "titlearea" >
< table cellspacing = "0" cellpadding = "0" >
< tbody >
< tr style = "height: 56px;" >
< td id = "projectlogo" > < img alt = "Logo" src = "orLogo.png" / > < / td >
< td id = "projectalign" style = "padding-left: 0.5em;" >
< div id = "projectname" > OR-Tools
2021-04-27 23:00:03 +02:00
  < span id = "projectnumber" > 9.0< / span >
2020-09-01 16:00:33 +02:00
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
2021-01-26 11:28:50 +01:00
<!-- Generated by Doxygen 1.9.1 -->
2020-09-01 16:00:33 +02:00
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3& dn=gpl-2.0.txt GPL-v2 */
2021-01-26 11:28:50 +01:00
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
2020-09-01 16:00:33 +02:00
/* @license-end */
< / script >
< script type = "text/javascript" src = "menudata.js" > < / script >
< script type = "text/javascript" src = "menu.js" > < / script >
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3& dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */< / script >
< div id = "main-nav" > < / div >
< / div > <!-- top -->
< div id = "side-nav" class = "ui-resizable side-nav-resizable" >
< div id = "nav-tree" >
< div id = "nav-tree-contents" >
< div id = "nav-sync" class = "sync" > < / div >
< / div >
< / div >
< div id = "splitbar" style = "-moz-user-select:none;"
class="ui-resizable-handle">
< / div >
< / div >
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3& dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('cp__model__utils_8cc.html',''); initResizable(); });
/* @license-end */
< / script >
< div id = "doc-content" >
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
< / div >
<!-- iframe showing the search results (closed by default) -->
< div id = "MSearchResultsWindow" >
< iframe src = "javascript:void(0)" frameborder = "0"
name="MSearchResults" id="MSearchResults">
< / iframe >
< / div >
< div class = "header" >
< div class = "summary" >
< a href = "#namespaces" > Namespaces< / a > |
< a href = "#define-members" > Macros< / a > |
< a href = "#func-members" > Functions< / a > < / div >
< div class = "headertitle" >
< div class = "title" > cp_model_utils.cc File Reference< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
< p > < a href = "cp__model__utils_8cc_source.html" > Go to the source code of this file.< / a > < / p >
< table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "namespaces" > < / a >
Namespaces< / h2 > < / td > < / tr >
< tr class = "memitem:namespaceoperations__research" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research.html" > operations_research< / a > < / td > < / tr >
2021-04-27 23:00:03 +02:00
< tr class = "memdesc:namespaceoperations__research" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Collection of objects used to extend the < a class = "el" href = "classoperations__research_1_1_constraint.html" title = "A constraint is the main modeling object." > Constraint< / a > < a class = "el" href = "classoperations__research_1_1_solver.html" title = "Solver Class." > Solver< / a > library. < br / > < / td > < / tr >
2020-09-01 16:00:33 +02:00
< tr class = "separator:" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:namespaceoperations__research_1_1sat" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research_1_1sat.html" > operations_research::sat< / a > < / td > < / tr >
< tr class = "separator:" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "define-members" > < / a >
Macros< / h2 > < / td > < / tr >
< tr class = "memitem:a51c0d834a80b9dcd99d5f8d4eff92db2" > < td class = "memItemLeft" align = "right" valign = "top" > #define  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "cp__model__utils_8cc.html#a51c0d834a80b9dcd99d5f8d4eff92db2" > APPLY_TO_SINGULAR_FIELD< / a > (ct_name, field_name)< / td > < / tr >
< tr class = "separator:a51c0d834a80b9dcd99d5f8d4eff92db2" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a970e04df3f6acfdbf5bfb4e2335e15eb" > < td class = "memItemLeft" align = "right" valign = "top" > #define  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "cp__model__utils_8cc.html#a970e04df3f6acfdbf5bfb4e2335e15eb" > APPLY_TO_REPEATED_FIELD< / a > (ct_name, field_name)< / td > < / tr >
< tr class = "separator:a970e04df3f6acfdbf5bfb4e2335e15eb" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "func-members" > < / a >
Functions< / h2 > < / td > < / tr >
< tr class = "memitem:a22efb1995471e34caa35927a9032f5f3" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research_1_1sat.html#a22efb1995471e34caa35927a9032f5f3" > SetToNegatedLinearExpression< / a > (const LinearExpressionProto & input_expr, LinearExpressionProto *output_negated_expr)< / td > < / tr >
< tr class = "separator:a22efb1995471e34caa35927a9032f5f3" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aba8e3465fc58d3b287e05451d5230bae" > < td class = "memItemLeft" align = "right" valign = "top" > IndexReferences  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research_1_1sat.html#aba8e3465fc58d3b287e05451d5230bae" > GetReferencesUsedByConstraint< / a > (const ConstraintProto & < a class = "el" href = "demon__profiler_8cc.html#a05da18ca9c7b657a4a6ea24e07c9b695" > ct< / a > )< / td > < / tr >
< tr class = "separator:aba8e3465fc58d3b287e05451d5230bae" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a6d4dc38d28f20c0c1bbbe71fff0803e7" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research_1_1sat.html#a6d4dc38d28f20c0c1bbbe71fff0803e7" > ApplyToAllLiteralIndices< / a > (const std::function< void(int *)> & f, ConstraintProto *< a class = "el" href = "demon__profiler_8cc.html#a05da18ca9c7b657a4a6ea24e07c9b695" > ct< / a > )< / td > < / tr >
< tr class = "separator:a6d4dc38d28f20c0c1bbbe71fff0803e7" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ab5f94367fbf4ab2c03bd6bef412c41f7" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research_1_1sat.html#ab5f94367fbf4ab2c03bd6bef412c41f7" > ApplyToAllVariableIndices< / a > (const std::function< void(int *)> & f, ConstraintProto *< a class = "el" href = "demon__profiler_8cc.html#a05da18ca9c7b657a4a6ea24e07c9b695" > ct< / a > )< / td > < / tr >
< tr class = "separator:ab5f94367fbf4ab2c03bd6bef412c41f7" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a81b6165b5a5412969f351d0d343166b9" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research_1_1sat.html#a81b6165b5a5412969f351d0d343166b9" > ApplyToAllIntervalIndices< / a > (const std::function< void(int *)> & f, ConstraintProto *< a class = "el" href = "demon__profiler_8cc.html#a05da18ca9c7b657a4a6ea24e07c9b695" > ct< / a > )< / td > < / tr >
< tr class = "separator:a81b6165b5a5412969f351d0d343166b9" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:acf5b1cbffc494f14e8b87c672d5dda5f" > < td class = "memItemLeft" align = "right" valign = "top" > std::string  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research_1_1sat.html#acf5b1cbffc494f14e8b87c672d5dda5f" > ConstraintCaseName< / a > (ConstraintProto::ConstraintCase constraint_case)< / td > < / tr >
< tr class = "separator:acf5b1cbffc494f14e8b87c672d5dda5f" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a1d467595ed8fe5b85dc95328ee1c2770" > < td class = "memItemLeft" align = "right" valign = "top" > std::vector< int >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research_1_1sat.html#a1d467595ed8fe5b85dc95328ee1c2770" > UsedVariables< / a > (const ConstraintProto & < a class = "el" href = "demon__profiler_8cc.html#a05da18ca9c7b657a4a6ea24e07c9b695" > ct< / a > )< / td > < / tr >
< tr class = "separator:a1d467595ed8fe5b85dc95328ee1c2770" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a217ba4c51953c701a68d6572d79801f1" > < td class = "memItemLeft" align = "right" valign = "top" > std::vector< int >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research_1_1sat.html#a217ba4c51953c701a68d6572d79801f1" > UsedIntervals< / a > (const ConstraintProto & < a class = "el" href = "demon__profiler_8cc.html#a05da18ca9c7b657a4a6ea24e07c9b695" > ct< / a > )< / td > < / tr >
< tr class = "separator:a217ba4c51953c701a68d6572d79801f1" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2021-04-27 23:00:03 +02:00
< tr class = "memitem:a10826704577008404187a36808daa739" > < td class = "memItemLeft" align = "right" valign = "top" > int64_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research_1_1sat.html#a10826704577008404187a36808daa739" > ComputeInnerObjective< / a > (const CpObjectiveProto & objective, const CpSolverResponse & < a class = "el" href = "cp__model__solver_8cc.html#abcd33b18ce6d5a90a4ba5c37cfa58829" > response< / a > )< / td > < / tr >
< tr class = "separator:a10826704577008404187a36808daa739" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2020-09-01 16:00:33 +02:00
< / table >
< h2 class = "groupheader" > Macro Definition Documentation< / h2 >
< a id = "a970e04df3f6acfdbf5bfb4e2335e15eb" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a970e04df3f6acfdbf5bfb4e2335e15eb" > ◆ < / a > < / span > APPLY_TO_REPEATED_FIELD< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define APPLY_TO_REPEATED_FIELD< / td >
< td > (< / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > ct_name, < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > field_name  < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< b > Value:< / b > < div class = "fragment" > < div class = "line" > { \< / div >
< div class = "line" > for (< span class = "keywordtype" > int< / span > & r : *< a class = "code" href = "demon__profiler_8cc.html#a05da18ca9c7b657a4a6ea24e07c9b695" > ct< / a > -> mutable_##ct_name()-> mutable_##field_name()) f(& r); \< / div >
< div class = "line" > }< / div >
2021-04-27 23:00:03 +02:00
< div class = "ttc" id = "ademon__profiler_8cc_html_a05da18ca9c7b657a4a6ea24e07c9b695" > < div class = "ttname" > < a href = "demon__profiler_8cc.html#a05da18ca9c7b657a4a6ea24e07c9b695" > ct< / a > < / div > < div class = "ttdeci" > const Constraint * ct< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "demon__profiler_8cc_source.html#l00043" > demon_profiler.cc:43< / a > < / div > < / div >
2020-09-01 16:00:33 +02:00
< / div > <!-- fragment -->
2021-04-27 23:00:03 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "cp__model__utils_8cc_source.html#l00163" > 163< / a > of file < a class = "el" href = "cp__model__utils_8cc_source.html" > cp_model_utils.cc< / a > .< / p >
2020-09-01 16:00:33 +02:00
< / div >
< / div >
< a id = "a51c0d834a80b9dcd99d5f8d4eff92db2" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a51c0d834a80b9dcd99d5f8d4eff92db2" > ◆ < / a > < / span > APPLY_TO_SINGULAR_FIELD< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define APPLY_TO_SINGULAR_FIELD< / td >
< td > (< / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > ct_name, < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > field_name  < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< b > Value:< / b > < div class = "fragment" > < div class = "line" > { \< / div >
< div class = "line" > int temp = < a class = "code" href = "demon__profiler_8cc.html#a05da18ca9c7b657a4a6ea24e07c9b695" > ct< / a > -> mutable_##ct_name()-> field_name(); \< / div >
< div class = "line" > f(& temp); \< / div >
< div class = "line" > ct-> mutable_##ct_name()-> set_##field_name(temp); \< / div >
< div class = "line" > }< / div >
< / div > <!-- fragment -->
2021-04-27 23:00:03 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "cp__model__utils_8cc_source.html#l00156" > 156< / a > of file < a class = "el" href = "cp__model__utils_8cc_source.html" > cp_model_utils.cc< / a > .< / p >
2020-09-01 16:00:33 +02:00
< / div >
< / div >
< / div > <!-- contents -->
< / div > <!-- doc - content -->
<!-- HTML footer for doxygen 1.8.18 -->
<!-- start footer part -->
< div id = "nav-path" class = "navpath" > <!-- id is needed for treeview function! -->
< ul >
< li class = "navelem" > < a class = "el" href = "dir_a7cc1eeded8f693d0da6c729bc88c45a.html" > ortools< / a > < / li > < li class = "navelem" > < a class = "el" href = "dir_dddac007a45022d9da6ea1dee012c3b9.html" > sat< / a > < / li > < li class = "navelem" > < a class = "el" href = "cp__model__utils_8cc.html" > cp_model_utils.cc< / a > < / li >
< li class = "footer" > Generated by
< a href = "http://www.doxygen.org/index.html" >
2021-01-26 11:28:50 +01:00
< img class = "footer" src = "doxygen.png" alt = "doxygen" / > < / a > 1.9.1 < / li >
2020-09-01 16:00:33 +02:00
< / ul >
< / div >
< / body >
< / html >