doc/api/ruby/classes/VPI/Handle.src/M000467.html in ruby-vpi-20.0.0 vs doc/api/ruby/classes/VPI/Handle.src/M000467.html in ruby-vpi-21.0.0

- old
+ new

@@ -3,16 +3,26 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> - <title>/ (VPI::Handle)</title> + <title>get_value (VPI::Handle)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/ruby-vpi/core/handle.rb, line 223</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-operator">/</span> <span class="ruby-identifier">aRelativePath</span> - <span class="ruby-identifier">access_child</span>(<span class="ruby-identifier">aRelativePath</span>) + <pre><span class="ruby-comment cmt"># File lib/ruby-vpi/core/handle.rb, line 144</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_value</span> <span class="ruby-identifier">aFormat</span> = <span class="ruby-constant">VpiIntVal</span> + <span class="ruby-identifier">fmt</span> = <span class="ruby-identifier">resolve_prop_type</span>(<span class="ruby-identifier">aFormat</span>) + <span class="ruby-ivar">@size</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">vpi_get</span>(<span class="ruby-constant">VpiSize</span>, <span class="ruby-keyword kw">self</span>) + + <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">fmt</span> <span class="ruby-operator">==</span> <span class="ruby-constant">VpiIntVal</span> <span class="ruby-keyword kw">and</span> <span class="ruby-ivar">@size</span> <span class="ruby-operator">&gt;</span> <span class="ruby-constant">INTEGER_BITS</span> + <span class="ruby-identifier">fmt</span> = <span class="ruby-constant">VpiBinStrVal</span> + <span class="ruby-identifier">val</span> = <span class="ruby-identifier">get_value_wrapper</span>(<span class="ruby-identifier">fmt</span>) + <span class="ruby-identifier">val</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">fmt</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/[^01]/</span>, <span class="ruby-value str">'0'</span>).<span class="ruby-identifier">to_i</span>(<span class="ruby-value">2</span>) + <span class="ruby-keyword kw">else</span> + <span class="ruby-identifier">val</span> = <span class="ruby-identifier">get_value_wrapper</span>(<span class="ruby-identifier">fmt</span>) + <span class="ruby-identifier">val</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">fmt</span>) + <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">end</span></pre> </body> </html> \ No newline at end of file