2019-06-13 15:36:14 +02:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
< title > OR-Tools< / title >
< meta http-equiv = "Content-Type" content = "text/html;" / >
< meta charset = "utf-8" / >
<!-- <link rel='stylesheet' type='text/css' href="https://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic"/> -->
2019-06-20 23:08:48 +02:00
< link rel = "stylesheet" type = "text/css" href = "ortools.css" title = "default" media = "screen,print" / >
2019-06-13 15:36:14 +02:00
< script type = "text/javascript" src = "jquery.js" > < / script >
< script type = "text/javascript" src = "dynsections.js" > < / script >
< / head >
< body >
< div id = "banner-container" >
< div id = "banner" >
2019-06-29 18:18:08 +02:00
< span id = "sfml" > OR-Tools 7.2< / span >
2019-06-13 15:36:14 +02:00
< / div >
< / div >
2019-06-29 18:18:08 +02:00
< link rel = "icon" href = "https://developers.google.com/optimization/images/orLogo.png" >
2019-06-13 15:36:14 +02:00
< div id = "content" >
<!-- Generated by Doxygen 1.8.15 -->
< div id = "navrow1" class = "tabs" >
< ul class = "tablist" >
< li > < a href = "index.html" > < span > Main  Page< / span > < / a > < / li >
< li > < a href = "pages.html" > < span > Related  Pages< / span > < / a > < / li >
< li > < a href = "namespaces.html" > < span > Namespaces< / span > < / a > < / li >
< li class = "current" > < a href = "annotated.html" > < span > Classes< / span > < / a > < / li >
< / ul >
< / div >
2019-07-12 13:25:23 -07:00
< / 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">
2019-06-13 15:36:14 +02:00
< / div >
< / div >
2019-07-12 13:25:23 -07:00
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3& dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classutil_1_1SVector.html','');});
/* @license-end */
< / script >
< div id = "doc-content" >
2019-06-13 15:36:14 +02:00
< div class = "header" >
< div class = "summary" >
< a href = "#pub-methods" > Public Member Functions< / a > |
< a href = "classutil_1_1SVector-members.html" > List of all members< / a > < / div >
< div class = "headertitle" >
< div class = "title" > util::SVector< T > Class Template Reference< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
2019-07-12 13:25:23 -07:00
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
< div class = "textblock" > < h3 > template< typename T> < br / >
class util::SVector< T > < / h3 >
2019-06-13 15:36:14 +02:00
2019-07-12 13:25:23 -07:00
< p > Forward declaration. < / p >
< p > A vector-like class where valid indices are in [- size_, size_) and reserved indices for future growth are in [- capacity_, capacity_).< / p >
< p > It is used to hold arc related information for graphs with reverse arcs. It supports only up to 2^31-1 elements, for compactness. If you ever need more, consider using templates for the size/capacity integer types.< / p >
< p > Sample usage:< / p >
< p > SVector< int> v; v.grow(left_value, right_value); v.resize(10); v.clear(); v.swap(new_v); std:swap(v[i], v[~i]); < / p >
2019-06-13 15:36:14 +02:00
2019-07-12 13:25:23 -07:00
< p class = "definition" > Definition at line < a class = "el" href = "graph_8h_source.html#l00174" > 174< / a > of file < a class = "el" href = "graph_8h_source.html" > graph.h< / a > .< / p >
< / div > < table class = "memberdecls" >
2019-06-13 15:36:14 +02:00
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pub-methods" > < / a >
Public Member Functions< / h2 > < / td > < / tr >
< tr class = "memitem:ac342b96ebd12c4cc505567c0d5342fd6" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classutil_1_1SVector.html#ac342b96ebd12c4cc505567c0d5342fd6" > SVector< / a > ()< / td > < / tr >
< tr class = "separator:ac342b96ebd12c4cc505567c0d5342fd6" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aa05f6afa9ff06e13079eff039632f0cb" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classutil_1_1SVector.html#aa05f6afa9ff06e13079eff039632f0cb" > ~SVector< / a > ()< / td > < / tr >
< tr class = "separator:aa05f6afa9ff06e13079eff039632f0cb" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a4ca50715f87be0dd9925dd46e2810436" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classutil_1_1SVector.html#a4ca50715f87be0dd9925dd46e2810436" > SVector< / a > (const < a class = "el" href = "classutil_1_1SVector.html" > SVector< / a > & other)< / td > < / tr >
< tr class = "memdesc:a4ca50715f87be0dd9925dd46e2810436" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Copy constructor and assignment operator. < a href = "#a4ca50715f87be0dd9925dd46e2810436" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a4ca50715f87be0dd9925dd46e2810436" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:afc485e5858e15ce8ec376ca7640ede1e" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "classutil_1_1SVector.html" > SVector< / a > &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classutil_1_1SVector.html#afc485e5858e15ce8ec376ca7640ede1e" > operator=< / a > (const < a class = "el" href = "classutil_1_1SVector.html" > SVector< / a > & other)< / td > < / tr >
< tr class = "separator:afc485e5858e15ce8ec376ca7640ede1e" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:abba34108f60eb020d0cc94ea8bd24c8f" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classutil_1_1SVector.html#abba34108f60eb020d0cc94ea8bd24c8f" > SVector< / a > (< a class = "el" href = "classutil_1_1SVector.html" > SVector< / a > & & other)< / td > < / tr >
< tr class = "memdesc:abba34108f60eb020d0cc94ea8bd24c8f" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Move constructor and move assignment operator. < a href = "#abba34108f60eb020d0cc94ea8bd24c8f" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:abba34108f60eb020d0cc94ea8bd24c8f" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a9e1927755201f418ac04ac1ad4b4660d" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "classutil_1_1SVector.html" > SVector< / a > &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classutil_1_1SVector.html#a9e1927755201f418ac04ac1ad4b4660d" > operator=< / a > (< a class = "el" href = "classutil_1_1SVector.html" > SVector< / a > & & other)< / td > < / tr >
< tr class = "separator:a9e1927755201f418ac04ac1ad4b4660d" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a6270e7d8614fca867c7f935b7a3e9cd3" > < td class = "memItemLeft" align = "right" valign = "top" > T &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classutil_1_1SVector.html#a6270e7d8614fca867c7f935b7a3e9cd3" > operator[]< / a > (int n)< / td > < / tr >
< tr class = "separator:a6270e7d8614fca867c7f935b7a3e9cd3" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a01c346b7779b313b6ff1099a10946ed0" > < td class = "memItemLeft" align = "right" valign = "top" > const T &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classutil_1_1SVector.html#a01c346b7779b313b6ff1099a10946ed0" > operator[]< / a > (int n) const< / td > < / tr >
< tr class = "separator:a01c346b7779b313b6ff1099a10946ed0" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:af0059304ee5c601207e97b1c742d5e84" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classutil_1_1SVector.html#af0059304ee5c601207e97b1c742d5e84" > resize< / a > (int n)< / td > < / tr >
< tr class = "separator:af0059304ee5c601207e97b1c742d5e84" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a06ed1003be01209763bb15e923399fc7" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classutil_1_1SVector.html#a06ed1003be01209763bb15e923399fc7" > clear< / a > ()< / td > < / tr >
< tr class = "separator:a06ed1003be01209763bb15e923399fc7" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a25fc0f822d7e2a5eedab230ed56be07f" > < td class = "memItemLeft" align = "right" valign = "top" > T *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classutil_1_1SVector.html#a25fc0f822d7e2a5eedab230ed56be07f" > data< / a > () const< / td > < / tr >
< tr class = "separator:a25fc0f822d7e2a5eedab230ed56be07f" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:acee1cc8d243acbdad8d30f97c5d54a5f" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classutil_1_1SVector.html#acee1cc8d243acbdad8d30f97c5d54a5f" > swap< / a > (< a class = "el" href = "classutil_1_1SVector.html" > SVector< / a > < T > & x)< / td > < / tr >
< tr class = "separator:acee1cc8d243acbdad8d30f97c5d54a5f" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a287f9791ba2e68e137d53fc038bbe432" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classutil_1_1SVector.html#a287f9791ba2e68e137d53fc038bbe432" > reserve< / a > (int n)< / td > < / tr >
< tr class = "separator:a287f9791ba2e68e137d53fc038bbe432" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ac34dbebcbd795b04b51dbfd96292d671" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classutil_1_1SVector.html#ac34dbebcbd795b04b51dbfd96292d671" > grow< / a > (const T & left=T(), const T & right=T())< / td > < / tr >
< tr class = "memdesc:ac34dbebcbd795b04b51dbfd96292d671" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > NOTE(user): This doesn't currently support movable-only objects, but we could fix that. < a href = "#ac34dbebcbd795b04b51dbfd96292d671" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:ac34dbebcbd795b04b51dbfd96292d671" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:afaad0723c70ab98c88d4a0441e1f98e4" > < td class = "memItemLeft" align = "right" valign = "top" > int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classutil_1_1SVector.html#afaad0723c70ab98c88d4a0441e1f98e4" > size< / a > () const< / td > < / tr >
< tr class = "separator:afaad0723c70ab98c88d4a0441e1f98e4" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a5d3d8b4f10e9d40e85fbd54d04c33611" > < td class = "memItemLeft" align = "right" valign = "top" > int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classutil_1_1SVector.html#a5d3d8b4f10e9d40e85fbd54d04c33611" > capacity< / a > () const< / td > < / tr >
< tr class = "separator:a5d3d8b4f10e9d40e85fbd54d04c33611" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:add718a46fe9ba1db673f69b2c02ec2a2" > < td class = "memItemLeft" align = "right" valign = "top" > int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classutil_1_1SVector.html#add718a46fe9ba1db673f69b2c02ec2a2" > max_size< / a > () const< / td > < / tr >
< tr class = "separator:add718a46fe9ba1db673f69b2c02ec2a2" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a36d88784d1f797dcf76845c47d74a4da" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classutil_1_1SVector.html#a36d88784d1f797dcf76845c47d74a4da" > clear_and_dealloc< / a > ()< / td > < / tr >
< tr class = "separator:a36d88784d1f797dcf76845c47d74a4da" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
2019-07-12 13:25:23 -07:00
< h2 class = "groupheader" > Constructor & Destructor Documentation< / h2 >
2019-06-13 15:36:14 +02:00
< a id = "ac342b96ebd12c4cc505567c0d5342fd6" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ac342b96ebd12c4cc505567c0d5342fd6" > ◆ < / a > < / span > SVector() < span class = "overload" > [1/3]< / span > < / h2 >
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
template< typename T> < / div >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "classutil_1_1SVector.html" > util::SVector< / a > < T > ::< a class = "el" href = "classutil_1_1SVector.html" > SVector< / a > < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "graph_8h_source.html#l00774" > 774< / a > of file < a class = "el" href = "graph_8h_source.html" > graph.h< / a > .< / p >
< / div >
< / div >
< a id = "aa05f6afa9ff06e13079eff039632f0cb" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#aa05f6afa9ff06e13079eff039632f0cb" > ◆ < / a > < / span > ~SVector()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
template< typename T> < / div >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "classutil_1_1SVector.html" > util::SVector< / a > < T > ::~< a class = "el" href = "classutil_1_1SVector.html" > SVector< / a > < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "graph_8h_source.html#l00776" > 776< / a > of file < a class = "el" href = "graph_8h_source.html" > graph.h< / a > .< / p >
< / div >
< / div >
< a id = "a4ca50715f87be0dd9925dd46e2810436" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a4ca50715f87be0dd9925dd46e2810436" > ◆ < / a > < / span > SVector() < span class = "overload" > [2/3]< / span > < / h2 >
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
template< typename T> < / div >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "classutil_1_1SVector.html" > util::SVector< / a > < T > ::< a class = "el" href = "classutil_1_1SVector.html" > SVector< / a > < / td >
< td > (< / td >
< td class = "paramtype" > const < a class = "el" href = "classutil_1_1SVector.html" > SVector< / a > < T > &   < / td >
< td class = "paramname" > < em > other< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Copy constructor and assignment operator. < / p >
< p class = "definition" > Definition at line < a class = "el" href = "graph_8h_source.html#l00779" > 779< / a > of file < a class = "el" href = "graph_8h_source.html" > graph.h< / a > .< / p >
< / div >
< / div >
< a id = "abba34108f60eb020d0cc94ea8bd24c8f" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#abba34108f60eb020d0cc94ea8bd24c8f" > ◆ < / a > < / span > SVector() < span class = "overload" > [3/3]< / span > < / h2 >
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
template< typename T> < / div >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "classutil_1_1SVector.html" > util::SVector< / a > < T > ::< a class = "el" href = "classutil_1_1SVector.html" > SVector< / a > < / td >
< td > (< / td >
< td class = "paramtype" > < a class = "el" href = "classutil_1_1SVector.html" > SVector< / a > < T > & &   < / td >
< td class = "paramname" > < em > other< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Move constructor and move assignment operator. < / p >
< p class = "definition" > Definition at line < a class = "el" href = "graph_8h_source.html#l00801" > 801< / a > of file < a class = "el" href = "graph_8h_source.html" > graph.h< / a > .< / p >
< / div >
< / div >
< h2 class = "groupheader" > Member Function Documentation< / h2 >
< a id = "a5d3d8b4f10e9d40e85fbd54d04c33611" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a5d3d8b4f10e9d40e85fbd54d04c33611" > ◆ < / a > < / span > capacity()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
template< typename T> < / div >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > int < a class = "el" href = "classutil_1_1SVector.html" > util::SVector< / a > < T > ::capacity < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > const< / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "graph_8h_source.html#l00892" > 892< / a > of file < a class = "el" href = "graph_8h_source.html" > graph.h< / a > .< / p >
< / div >
< / div >
< a id = "a06ed1003be01209763bb15e923399fc7" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a06ed1003be01209763bb15e923399fc7" > ◆ < / a > < / span > clear()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
template< typename T> < / div >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > void < a class = "el" href = "classutil_1_1SVector.html" > util::SVector< / a > < T > ::clear < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "graph_8h_source.html#l00840" > 840< / a > of file < a class = "el" href = "graph_8h_source.html" > graph.h< / a > .< / p >
< / div >
< / div >
< a id = "a36d88784d1f797dcf76845c47d74a4da" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a36d88784d1f797dcf76845c47d74a4da" > ◆ < / a > < / span > clear_and_dealloc()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
template< typename T> < / div >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > void < a class = "el" href = "classutil_1_1SVector.html" > util::SVector< / a > < T > ::clear_and_dealloc < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "graph_8h_source.html#l00896" > 896< / a > of file < a class = "el" href = "graph_8h_source.html" > graph.h< / a > .< / p >
< / div >
< / div >
< a id = "a25fc0f822d7e2a5eedab230ed56be07f" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a25fc0f822d7e2a5eedab230ed56be07f" > ◆ < / a > < / span > data()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
template< typename T> < / div >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > T* < a class = "el" href = "classutil_1_1SVector.html" > util::SVector< / a > < T > ::data < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > const< / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "graph_8h_source.html#l00842" > 842< / a > of file < a class = "el" href = "graph_8h_source.html" > graph.h< / a > .< / p >
< / div >
< / div >
< a id = "ac34dbebcbd795b04b51dbfd96292d671" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ac34dbebcbd795b04b51dbfd96292d671" > ◆ < / a > < / span > grow()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
template< typename T> < / div >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > void < a class = "el" href = "classutil_1_1SVector.html" > util::SVector< / a > < T > ::grow < / td >
< td > (< / td >
< td class = "paramtype" > const T &   < / td >
< td class = "paramname" > < em > left< / em > = < code > T()< / code > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const T &   < / td >
< td class = "paramname" > < em > right< / em > = < code > T()< / code >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > NOTE(user): This doesn't currently support movable-only objects, but we could fix that. < / p >
< p > We have to copy the elements because they are allowed to be element of *this. < / p >
< p class = "definition" > Definition at line < a class = "el" href = "graph_8h_source.html#l00873" > 873< / a > of file < a class = "el" href = "graph_8h_source.html" > graph.h< / a > .< / p >
< / div >
< / div >
< a id = "add718a46fe9ba1db673f69b2c02ec2a2" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#add718a46fe9ba1db673f69b2c02ec2a2" > ◆ < / a > < / span > max_size()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
template< typename T> < / div >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > int < a class = "el" href = "classutil_1_1SVector.html" > util::SVector< / a > < T > ::max_size < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > const< / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "graph_8h_source.html#l00894" > 894< / a > of file < a class = "el" href = "graph_8h_source.html" > graph.h< / a > .< / p >
< / div >
< / div >
< a id = "afc485e5858e15ce8ec376ca7640ede1e" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#afc485e5858e15ce8ec376ca7640ede1e" > ◆ < / a > < / span > operator=() < span class = "overload" > [1/2]< / span > < / h2 >
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
template< typename T> < / div >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "classutil_1_1SVector.html" > SVector< / a > & < a class = "el" href = "classutil_1_1SVector.html" > util::SVector< / a > < T > ::operator= < / td >
< td > (< / td >
< td class = "paramtype" > const < a class = "el" href = "classutil_1_1SVector.html" > SVector< / a > < T > &   < / td >
< td class = "paramname" > < em > other< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > NOTE(user): Alternatively, our capacity could inherit from the other vector's capacity, which can be (much) greater than its size.< / p >
< p > Perform the actual copy of the payload. < / p >
< p class = "definition" > Definition at line < a class = "el" href = "graph_8h_source.html#l00780" > 780< / a > of file < a class = "el" href = "graph_8h_source.html" > graph.h< / a > .< / p >
< / div >
< / div >
< a id = "a9e1927755201f418ac04ac1ad4b4660d" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a9e1927755201f418ac04ac1ad4b4660d" > ◆ < / a > < / span > operator=() < span class = "overload" > [2/2]< / span > < / h2 >
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
template< typename T> < / div >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "classutil_1_1SVector.html" > SVector< / a > & < a class = "el" href = "classutil_1_1SVector.html" > util::SVector< / a > < T > ::operator= < / td >
< td > (< / td >
< td class = "paramtype" > < a class = "el" href = "classutil_1_1SVector.html" > SVector< / a > < T > & &   < / td >
< td class = "paramname" > < em > other< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > NOTE(user): We could just < a class = "el" href = "classutil_1_1SVector.html#acee1cc8d243acbdad8d30f97c5d54a5f" > swap()< / a > and let the other's destruction take care of the clean-up, but it is probably less bug-prone to perform the destruction immediately. < / p >
< p class = "definition" > Definition at line < a class = "el" href = "graph_8h_source.html#l00802" > 802< / a > of file < a class = "el" href = "graph_8h_source.html" > graph.h< / a > .< / p >
< / div >
< / div >
< a id = "a6270e7d8614fca867c7f935b7a3e9cd3" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a6270e7d8614fca867c7f935b7a3e9cd3" > ◆ < / a > < / span > operator[]() < span class = "overload" > [1/2]< / span > < / h2 >
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
template< typename T> < / div >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > T& < a class = "el" href = "classutil_1_1SVector.html" > util::SVector< / a > < T > ::operator[] < / td >
< td > (< / td >
< td class = "paramtype" > int  < / td >
< td class = "paramname" > < em > n< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "graph_8h_source.html#l00811" > 811< / a > of file < a class = "el" href = "graph_8h_source.html" > graph.h< / a > .< / p >
< / div >
< / div >
< a id = "a01c346b7779b313b6ff1099a10946ed0" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a01c346b7779b313b6ff1099a10946ed0" > ◆ < / a > < / span > operator[]() < span class = "overload" > [2/2]< / span > < / h2 >
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
template< typename T> < / div >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > const T& < a class = "el" href = "classutil_1_1SVector.html" > util::SVector< / a > < T > ::operator[] < / td >
< td > (< / td >
< td class = "paramtype" > int  < / td >
< td class = "paramname" > < em > n< / em > < / td > < td > )< / td >
< td > const< / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "graph_8h_source.html#l00817" > 817< / a > of file < a class = "el" href = "graph_8h_source.html" > graph.h< / a > .< / p >
< / div >
< / div >
< a id = "a287f9791ba2e68e137d53fc038bbe432" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a287f9791ba2e68e137d53fc038bbe432" > ◆ < / a > < / span > reserve()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
template< typename T> < / div >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > void < a class = "el" href = "classutil_1_1SVector.html" > util::SVector< / a > < T > ::reserve < / td >
< td > (< / td >
< td class = "paramtype" > int  < / td >
< td class = "paramname" > < em > n< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2019-07-12 13:25:23 -07:00
< dl class = "todo" > < dt > < b > < a class = "el" href = "todo.html#_todo000021" > Todo:< / a > < / b > < / dt > < dd > (user): in C++17 we could use std::uninitialized_move instead of this loop. < / dd > < / dl >
2019-06-13 15:36:14 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "graph_8h_source.html#l00850" > 850< / a > of file < a class = "el" href = "graph_8h_source.html" > graph.h< / a > .< / p >
< / div >
< / div >
< a id = "af0059304ee5c601207e97b1c742d5e84" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#af0059304ee5c601207e97b1c742d5e84" > ◆ < / a > < / span > resize()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
template< typename T> < / div >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > void < a class = "el" href = "classutil_1_1SVector.html" > util::SVector< / a > < T > ::resize < / td >
< td > (< / td >
< td class = "paramtype" > int  < / td >
< td class = "paramname" > < em > n< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "graph_8h_source.html#l00823" > 823< / a > of file < a class = "el" href = "graph_8h_source.html" > graph.h< / a > .< / p >
< / div >
< / div >
< a id = "afaad0723c70ab98c88d4a0441e1f98e4" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#afaad0723c70ab98c88d4a0441e1f98e4" > ◆ < / a > < / span > size()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
template< typename T> < / div >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > int < a class = "el" href = "classutil_1_1SVector.html" > util::SVector< / a > < T > ::size < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > const< / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "graph_8h_source.html#l00890" > 890< / a > of file < a class = "el" href = "graph_8h_source.html" > graph.h< / a > .< / p >
< / div >
< / div >
< a id = "acee1cc8d243acbdad8d30f97c5d54a5f" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#acee1cc8d243acbdad8d30f97c5d54a5f" > ◆ < / a > < / span > swap()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
template< typename T> < / div >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > void < a class = "el" href = "classutil_1_1SVector.html" > util::SVector< / a > < T > ::swap < / td >
< td > (< / td >
< td class = "paramtype" > < a class = "el" href = "classutil_1_1SVector.html" > SVector< / a > < T > &   < / td >
< td class = "paramname" > < em > x< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "graph_8h_source.html#l00844" > 844< / a > of file < a class = "el" href = "graph_8h_source.html" > graph.h< / a > .< / p >
< / div >
< / div >
< hr / > The documentation for this class was generated from the following file:< ul >
< li > < a class = "el" href = "graph_8h_source.html" > graph.h< / a > < / li >
< / ul >
< / div > <!-- contents -->
2019-07-12 13:25:23 -07:00
< / div > <!-- doc - content -->
2019-06-13 15:36:14 +02:00
< / div >
< div id = "footer-container" >
< div id = "footer" >
< / div >
< / div >
< / body >
< / html >