<!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"/> <meta name="generator" content="Doxygen 1.8.15"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>Crypto++: CallStack Class 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="doxygen.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="projectalign" style="padding-left: 0.5em;"> <div id="projectname">Crypto++  <span id="projectnumber">7.0</span> </div> <div id="projectbrief">Free C++ class library of cryptographic schemes</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.15 --> <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('',false,false,'search.php','Search'); }); /* @license-end */</script> <div id="main-nav"></div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="class_call_stack-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">CallStack Class Reference</div> </div> </div><!--header--> <div class="contents"> <div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;"> <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for CallStack:</div> <div id="dynsection-0-summary" class="dynsummary" style="display:block;"> </div> <div id="dynsection-0-content" class="dyncontent" style="display:none;"> <div class="center"> <img src="class_call_stack.png" usemap="#CallStack_map" alt=""/> <map id="CallStack_map" name="CallStack_map"> <area href="class_call_stack_with_nr.html" alt="CallStackWithNr" shape="rect" coords="0,56,105,80"/> <area href="class_call_stack_with_str.html" alt="CallStackWithStr" shape="rect" coords="115,56,220,80"/> </map> </div></div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:aa8f2eeebae64afe0dd9a0d3a88731441"><td class="memItemLeft" align="right" valign="top"><a id="aa8f2eeebae64afe0dd9a0d3a88731441"></a>  </td><td class="memItemRight" valign="bottom"><b>CallStack</b> (char const *i, <a class="el" href="class_call_stack.html">CallStack</a> const *p)</td></tr> <tr class="separator:aa8f2eeebae64afe0dd9a0d3a88731441"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a84710e4124132926faadf2580e4bc452"><td class="memItemLeft" align="right" valign="top"><a id="a84710e4124132926faadf2580e4bc452"></a> <a class="el" href="class_call_stack.html">CallStack</a> const * </td><td class="memItemRight" valign="bottom"><b>Prev</b> () const</td></tr> <tr class="separator:a84710e4124132926faadf2580e4bc452"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:adf8d5d77013825c39aa0b3c818722481"><td class="memItemLeft" align="right" valign="top"><a id="adf8d5d77013825c39aa0b3c818722481"></a> virtual std::string </td><td class="memItemRight" valign="bottom"><b>Format</b> () const</td></tr> <tr class="separator:adf8d5d77013825c39aa0b3c818722481"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>A simple unidirectional linked list with m_prev == 0 to indicate the final entry. The aim of this implementation is to provide a very lightweight and practical tracing mechanism with a low performance impact. Functions and methods supporting this call-stack mechanism would take a parameter of the form "CallStack const& callStack", and would pass this parameter to subsequent functions they call using the construct:</p> <p>SubFunc(arg1, arg2, <a class="el" href="class_call_stack.html">CallStack</a>("my func at place such and such", &callStack));</p> <p>The advantage of this approach is that it is easy to use and should be very efficient, involving no allocation from the heap, just a linked list of stack objects containing pointers to static ASCIIZ strings (or possibly additional but simple data if derived). </p> <p class="definition">Definition at line <a class="el" href="wait_8h_source.html#l00124">124</a> of file <a class="el" href="wait_8h_source.html">wait.h</a>.</p> </div><hr/>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="wait_8h_source.html">wait.h</a></li> <li><a class="el" href="wait_8cpp_source.html">wait.cpp</a></li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Wed Nov 27 2019 15:03:59 for Crypto++ by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.15 </small></address> </body> </html>