📄 classforthvm_1_1wordheader.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>ForthVM::WordHeader Class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.1 --><div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div><div class="nav"><a class="el" href="classForthVM.html">ForthVM</a>::<a class="el" href="classForthVM_1_1WordHeader.html">WordHeader</a></div><h1>ForthVM::WordHeader Class Reference</h1><a href="classForthVM_1_1WordHeader-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>Representation of a forth word's header in the dictionary. <p><p>Definition at line <a class="el" href="forth_8cpp-source.html#l00325">325</a> of file <a class="el" href="forth_8cpp-source.html">forth.cpp</a>.<table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__forth.html#ga0">CELL</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classForthVM_1_1WordHeader.html#a0">CFA</a> ()</td></tr><tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__forth.html#ga0">CELL</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classForthVM_1_1WordHeader.html#o0">Previous</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__forth.html#ga2">CHAR</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classForthVM_1_1WordHeader.html#o1">NameLength</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__forth.html#ga2">CHAR</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classForthVM_1_1WordHeader.html#o2">Name</a> [1]</td></tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="a0" doxytag="ForthVM::WordHeader::CFA"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="group__forth.html#ga0">CELL</a>* ForthVM::WordHeader::CFA </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Calculate the word's Code Field Address (CFA). <dl compact><dt><b>Returns:</b></dt><dd>The word's CFA.</dd></dl><p>Definition at line <a class="el" href="forth_8cpp-source.html#l00345">345</a> of file <a class="el" href="forth_8cpp-source.html">forth.cpp</a>. </td> </tr></table><hr><h2>Member Data Documentation</h2><a class="anchor" name="o0" doxytag="ForthVM::WordHeader::Previous"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="group__forth.html#ga0">CELL</a> <a class="el" href="classForthVM_1_1WordHeader.html#o0">ForthVM::WordHeader::Previous</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Link to the previous word in the wordlist, this is an address offset from 'this'. E.g. to get a pointer to the previous word: <div class="fragment"><pre class="fragment"> WordHeader* word = a_word; WordHeader* previous_word = (WordHeader*)((<a class="code" href="group__forth.html#ga0">CELL</a>)a_word+<a class="code" href="classForthVM_1_1WordHeader.html#o0">Previous</a>);</pre></div> If <a class="el" href="classForthVM_1_1WordHeader.html#o0">Previous</a> equals zero then the end of the wordlist has been reached and the this header isn't associated with a word definition. <p>Definition at line <a class="el" href="forth_8cpp-source.html#l00328">328</a> of file <a class="el" href="forth_8cpp-source.html">forth.cpp</a>. </td> </tr></table><a class="anchor" name="o1" doxytag="ForthVM::WordHeader::NameLength"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="group__forth.html#ga2">CHAR</a> <a class="el" href="classForthVM_1_1WordHeader.html#o1">ForthVM::WordHeader::NameLength</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Length of the word's name. This also includes flag values from <a class="el" href="classForthVM.html#y12">WordFlags</a>. To mask out these flags, AND the value with <a class="el" href="group__forth__imp.html#ga5">NameLengthMask</a>. <p>Definition at line <a class="el" href="forth_8cpp-source.html#l00336">336</a> of file <a class="el" href="forth_8cpp-source.html">forth.cpp</a>. </td> </tr></table><a class="anchor" name="o2" doxytag="ForthVM::WordHeader::Name"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="group__forth.html#ga2">CHAR</a> <a class="el" href="classForthVM_1_1WordHeader.html#o2">ForthVM::WordHeader::Name</a>[1] </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The first character of the name. Any subsequent characters follow immediately after this one. <p>Definition at line <a class="el" href="forth_8cpp-source.html#l00338">338</a> of file <a class="el" href="forth_8cpp-source.html">forth.cpp</a>. </td> </tr></table><hr>The documentation for this class was generated from the following file:<ul><li>forth/<a class="el" href="forth_8cpp-source.html">forth.cpp</a></ul><HR><ADDRESS STYLE="align: right;"><SMALL>Generated by <A HREF="http://www.doxygen.org/index.html"><IMG SRC="doxygen.png" ALT="doxygen" ALIGN="middle" BORDER="0"></A> 1.4.1</SMALL></ADDRESS></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -