2015-10-08 14:55:01 -04: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 >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
< meta http-equiv = "X-UA-Compatible" content = "IE=9" / >
2016-11-07 15:21:37 -05:00
< meta name = "generator" content = "Doxygen 1.8.12" / >
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
2015-10-08 14:55:01 -04:00
< title > Crashpad: crashpad::TSimpleStringDictionary< KeySize, ValueSize, NumEntries > Class Template 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 = "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" / >
2016-11-08 14:26:59 -05:00
< link href = "crashpad_doxygen.css" rel = "stylesheet" type = "text/css" / >
2015-10-08 14:55:01 -04:00
< / 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;" >
2016-01-06 16:09:15 -05:00
< td id = "projectalign" style = "padding-left: 0.5em;" >
2015-10-08 14:55:01 -04:00
< div id = "projectname" > Crashpad
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
2016-11-07 15:21:37 -05:00
<!-- Generated by Doxygen 1.8.12 -->
2015-10-08 14:55:01 -04:00
< script type = "text/javascript" >
var searchBox = new SearchBox("searchBox", "search",false,'Search');
< / script >
2016-11-07 15:21:37 -05:00
< script type = "text/javascript" src = "menudata.js" > < / script >
< script type = "text/javascript" src = "menu.js" > < / script >
< script type = "text/javascript" >
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
< / script >
< div id = "main-nav" > < / div >
2015-10-08 14:55:01 -04:00
<!-- 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 id = "nav-path" class = "navpath" >
< ul >
< li class = "navelem" > < a class = "el" href = "namespacecrashpad.html" > crashpad< / a > < / li > < li class = "navelem" > < a class = "el" href = "classcrashpad_1_1TSimpleStringDictionary.html" > TSimpleStringDictionary< / a > < / li > < / ul >
< / div >
< / div > <!-- top -->
< div class = "header" >
< div class = "summary" >
< a href = "#nested-classes" > Classes< / a > |
< a href = "#pub-methods" > Public Member Functions< / a > |
< a href = "classcrashpad_1_1TSimpleStringDictionary-members.html" > List of all members< / a > < / div >
< div class = "headertitle" >
< div class = "title" > crashpad::TSimpleStringDictionary< KeySize, ValueSize, NumEntries > Class Template Reference< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
< p > A map/dictionary collection implementation using a fixed amount of storage, so that it does not perform any dynamic allocations for its operations.
< a href = "classcrashpad_1_1TSimpleStringDictionary.html#details" > More...< / a > < / p >
< p > < code > #include " client/simple_string_dictionary.h" < / code > < / p >
< table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "nested-classes" > < / a >
Classes< / h2 > < / td > < / tr >
< tr class = "memitem:" > < td class = "memItemLeft" align = "right" valign = "top" > struct   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structcrashpad_1_1TSimpleStringDictionary_1_1Entry.html" > Entry< / a > < / td > < / tr >
< tr class = "memdesc:" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > A single entry in the map. < a href = "structcrashpad_1_1TSimpleStringDictionary_1_1Entry.html#details" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:" > < td class = "memItemLeft" align = "right" valign = "top" > class   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcrashpad_1_1TSimpleStringDictionary_1_1Iterator.html" > Iterator< / a > < / td > < / tr >
< tr class = "memdesc:" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > An iterator to traverse all of the active entries in a < a class = "el" href = "classcrashpad_1_1TSimpleStringDictionary.html" title = "A map/dictionary collection implementation using a fixed amount of storage, so that it does not perfo..." > TSimpleStringDictionary< / a > . < a href = "classcrashpad_1_1TSimpleStringDictionary_1_1Iterator.html#details" > More...< / a > < br / > < / 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 = "pub-methods" > < / a >
Public Member Functions< / h2 > < / td > < / tr >
2016-11-07 15:21:37 -05:00
< tr class = "memitem:ac5434ad1d05fbe7959372e030ac66e49" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "ac5434ad1d05fbe7959372e030ac66e49" > < / a >
2015-10-08 14:55:01 -04:00
  < / td > < td class = "memItemRight" valign = "bottom" > < b > TSimpleStringDictionary< / b > (const < a class = "el" href = "classcrashpad_1_1TSimpleStringDictionary.html" > TSimpleStringDictionary< / a > & other)< / td > < / tr >
< tr class = "separator:ac5434ad1d05fbe7959372e030ac66e49" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2016-11-07 15:21:37 -05:00
< tr class = "memitem:aed1ad111853dd30f04e192ee1aa9b4c3" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "aed1ad111853dd30f04e192ee1aa9b4c3" > < / a >
2015-10-08 14:55:01 -04:00
< a class = "el" href = "classcrashpad_1_1TSimpleStringDictionary.html" > TSimpleStringDictionary< / a > &   < / td > < td class = "memItemRight" valign = "bottom" > < b > operator=< / b > (const < a class = "el" href = "classcrashpad_1_1TSimpleStringDictionary.html" > TSimpleStringDictionary< / a > & other)< / td > < / tr >
< tr class = "separator:aed1ad111853dd30f04e192ee1aa9b4c3" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2016-11-07 15:21:37 -05:00
< tr class = "memitem:a606dc2d68cdb216a2f4e364786f0390e" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "a606dc2d68cdb216a2f4e364786f0390e" > < / a >
size_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcrashpad_1_1TSimpleStringDictionary.html#a606dc2d68cdb216a2f4e364786f0390e" > GetCount< / a > () const< / td > < / tr >
< tr class = "memdesc:a606dc2d68cdb216a2f4e364786f0390e" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Returns the number of active key/value pairs. The upper limit for this is < em > NumEntries< / em > . < br / > < / td > < / tr >
< tr class = "separator:a606dc2d68cdb216a2f4e364786f0390e" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a7d1d60ab45f8c9ec8b996bdd225e6447" > < td class = "memItemLeft" align = "right" valign = "top" > const char *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcrashpad_1_1TSimpleStringDictionary.html#a7d1d60ab45f8c9ec8b996bdd225e6447" > GetValueForKey< / a > (const char *key) const< / td > < / tr >
< tr class = "memdesc:a7d1d60ab45f8c9ec8b996bdd225e6447" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Given < em > key< / em > , returns its corresponding value. < a href = "#a7d1d60ab45f8c9ec8b996bdd225e6447" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a7d1d60ab45f8c9ec8b996bdd225e6447" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2015-10-08 14:55:01 -04:00
< tr class = "memitem:af629aa5f484ece193a03425c3e302576" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcrashpad_1_1TSimpleStringDictionary.html#af629aa5f484ece193a03425c3e302576" > SetKeyValue< / a > (const char *key, const char *value)< / td > < / tr >
< tr class = "memdesc:af629aa5f484ece193a03425c3e302576" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Stores < em > value< / em > into < em > key< / em > , replacing the existing value if < em > key< / em > is already present. < a href = "#af629aa5f484ece193a03425c3e302576" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:af629aa5f484ece193a03425c3e302576" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ad50991fd8714c8bef7820482c7729efb" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcrashpad_1_1TSimpleStringDictionary.html#ad50991fd8714c8bef7820482c7729efb" > RemoveKey< / a > (const char *key)< / td > < / tr >
< tr class = "memdesc:ad50991fd8714c8bef7820482c7729efb" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Removes < em > key< / em > from the map. < a href = "#ad50991fd8714c8bef7820482c7729efb" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:ad50991fd8714c8bef7820482c7729efb" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pub-static-attribs" > < / a >
Static Public Attributes< / h2 > < / td > < / tr >
< tr > < td colspan = "2" > < div class = "groupHeader" > < / div > < / td > < / tr >
2016-11-07 15:21:37 -05:00
< tr class = "memitem:acafb62dfc7bd68d9744124779b84a926" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "acafb62dfc7bd68d9744124779b84a926" > < / a >
2015-10-08 14:55:01 -04:00
static const size_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcrashpad_1_1TSimpleStringDictionary.html#acafb62dfc7bd68d9744124779b84a926" > key_size< / a > = KeySize< / td > < / tr >
< tr class = "memdesc:acafb62dfc7bd68d9744124779b84a926" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Constant and publicly accessible versions of the template parameters. < br / > < / td > < / tr >
< tr class = "separator:acafb62dfc7bd68d9744124779b84a926" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2016-11-07 15:21:37 -05:00
< tr class = "memitem:a1176a981ba33d55f9b0a5f22e7fe4171" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "a1176a981ba33d55f9b0a5f22e7fe4171" > < / a >
2015-10-08 14:55:01 -04:00
static const size_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcrashpad_1_1TSimpleStringDictionary.html#a1176a981ba33d55f9b0a5f22e7fe4171" > value_size< / a > = ValueSize< / td > < / tr >
< tr class = "memdesc:a1176a981ba33d55f9b0a5f22e7fe4171" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Constant and publicly accessible versions of the template parameters. < br / > < / td > < / tr >
< tr class = "separator:a1176a981ba33d55f9b0a5f22e7fe4171" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2016-11-07 15:21:37 -05:00
< tr class = "memitem:a7b3e25235f37f2ea7d0d05e37da6df13" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "a7b3e25235f37f2ea7d0d05e37da6df13" > < / a >
2015-10-08 14:55:01 -04:00
static const size_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcrashpad_1_1TSimpleStringDictionary.html#a7b3e25235f37f2ea7d0d05e37da6df13" > num_entries< / a > = NumEntries< / td > < / tr >
< tr class = "memdesc:a7b3e25235f37f2ea7d0d05e37da6df13" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Constant and publicly accessible versions of the template parameters. < br / > < / td > < / tr >
< tr class = "separator:a7b3e25235f37f2ea7d0d05e37da6df13" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
< div class = "textblock" > < h3 > template< size_t KeySize = 256, size_t ValueSize = 256, size_t NumEntries = 64> < br / >
class crashpad::TSimpleStringDictionary< KeySize, ValueSize, NumEntries > < / h3 >
< p > A map/dictionary collection implementation using a fixed amount of storage, so that it does not perform any dynamic allocations for its operations. < / p >
< p > The actual map storage (< a class = "el" href = "structcrashpad_1_1TSimpleStringDictionary_1_1Entry.html" title = "A single entry in the map. " > TSimpleStringDictionary::Entry< / a > ) is guaranteed to be POD, so that it can be transmitted over various IPC mechanisms.< / p >
< p > The template parameters control the amount of storage used for the key, value, and map. The < em > KeySize< / em > and < em > ValueSize< / em > are measured in bytes, not glyphs, and include space for a trailing < code > NUL< / code > byte. This gives space for < code > KeySize - 1< / code > and < code > ValueSize - 1< / code > characters in an entry. < em > NumEntries< / em > is the total number of entries that will fit in the map. < / p >
< / div > < h2 class = "groupheader" > Member Function Documentation< / h2 >
2016-11-07 15:21:37 -05:00
< a id = "a7d1d60ab45f8c9ec8b996bdd225e6447" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a7d1d60ab45f8c9ec8b996bdd225e6447" > § < / a > < / span > GetValueForKey()< / h2 >
2015-10-08 14:55:01 -04:00
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
template< size_t KeySize = 256, size_t ValueSize = 256, size_t NumEntries = 64> < / div >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > const char* < a class = "el" href = "classcrashpad_1_1TSimpleStringDictionary.html" > crashpad::TSimpleStringDictionary< / a > < KeySize, ValueSize, NumEntries > ::GetValueForKey < / td >
< td > (< / td >
< td class = "paramtype" > const char *  < / td >
< td class = "paramname" > < em > key< / 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 > Given < em > key< / em > , returns its corresponding value. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramdir" > [in]< / td > < td class = "paramname" > key< / td > < td > The key to look up. This must not be < code > nullptr< / code > .< / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > Returns< / dt > < dd > The corresponding value for < em > key< / em > , or if < em > key< / em > is not found, < code > nullptr< / code > . < / dd > < / dl >
< / div >
< / div >
2016-11-07 15:21:37 -05:00
< a id = "ad50991fd8714c8bef7820482c7729efb" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ad50991fd8714c8bef7820482c7729efb" > § < / a > < / span > RemoveKey()< / h2 >
2015-10-08 14:55:01 -04:00
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
template< size_t KeySize = 256, size_t ValueSize = 256, size_t NumEntries = 64> < / div >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > void < a class = "el" href = "classcrashpad_1_1TSimpleStringDictionary.html" > crashpad::TSimpleStringDictionary< / a > < KeySize, ValueSize, NumEntries > ::RemoveKey < / td >
< td > (< / td >
< td class = "paramtype" > const char *  < / td >
< td class = "paramname" > < em > key< / 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 > Removes < em > key< / em > from the map. < / p >
< p > If < em > key< / em > is not found, this is a no-op.< / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramdir" > [in]< / td > < td class = "paramname" > key< / td > < td > The key of the entry to remove. This must not be < code > nullptr< / code > . < / td > < / tr >
< / table >
< / dd >
< / dl >
< / div >
< / div >
2016-11-07 15:21:37 -05:00
< a id = "af629aa5f484ece193a03425c3e302576" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#af629aa5f484ece193a03425c3e302576" > § < / a > < / span > SetKeyValue()< / h2 >
2015-10-08 14:55:01 -04:00
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
template< size_t KeySize = 256, size_t ValueSize = 256, size_t NumEntries = 64> < / div >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > void < a class = "el" href = "classcrashpad_1_1TSimpleStringDictionary.html" > crashpad::TSimpleStringDictionary< / a > < KeySize, ValueSize, NumEntries > ::SetKeyValue < / td >
< td > (< / td >
< td class = "paramtype" > const char *  < / td >
< td class = "paramname" > < em > key< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const char *  < / td >
< td class = "paramname" > < em > value< / em >   < / 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 > Stores < em > value< / em > into < em > key< / em > , replacing the existing value if < em > key< / em > is already present. < / p >
< p > If < em > key< / em > is not yet in the map and the map is already full (containing < em > NumEntries< / em > active entries), this operation silently fails.< / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramdir" > [in]< / td > < td class = "paramname" > key< / td > < td > The key to store. This must not be < code > nullptr< / code > . < / td > < / tr >
< tr > < td class = "paramdir" > [in]< / td > < td class = "paramname" > value< / td > < td > The value to store. If < code > nullptr< / code > , < em > key< / em > is removed from the map. < / td > < / tr >
< / table >
< / dd >
< / dl >
< / div >
< / div >
< hr / > The documentation for this class was generated from the following file:< ul >
< li > client/simple_string_dictionary.h< / li >
< / ul >
< / div > <!-- contents -->
<!-- start footer part -->
< hr class = "footer" / > < address class = "footer" > < small >
Generated by   < a href = "http://www.doxygen.org/index.html" >
< img class = "footer" src = "doxygen.png" alt = "doxygen" / >
2016-11-07 15:21:37 -05:00
< / a > 1.8.12
2015-10-08 14:55:01 -04:00
< / small > < / address >
< / body >
< / html >