3 [
"VERB_code_2.2",
"index.html", [
4 [
"Todo List",
"todo.html", null ],
5 [
"Namespaces", null, [
6 [
"Namespace List",
"namespaces.html",
"namespaces" ],
7 [
"Namespace Members",
"namespacemembers.html", [
8 [
"All",
"namespacemembers.html", null ],
9 [
"Functions",
"namespacemembers_func.html", null ],
10 [
"Variables",
"namespacemembers_vars.html", null ]
14 [
"Class List",
"annotated.html",
"annotated" ],
15 [
"Class Hierarchy",
"hierarchy.html",
"hierarchy" ],
16 [
"Class Members",
"functions.html", [
17 [
"All",
"functions.html",
"functions_dup" ],
18 [
"Functions",
"functions_func.html", null ],
19 [
"Variables",
"functions_vars.html", null ]
23 [
"File List",
"files.html",
"files" ],
24 [
"File Members",
"globals.html", [
25 [
"All",
"globals.html", null ],
26 [
"Functions",
"globals_func.html", null ],
27 [
"Variables",
"globals_vars.html", null ],
28 [
"Typedefs",
"globals_type.html", null ],
29 [
"Macros",
"globals_defs.html", null ]
37 "_additional_sources_and_losses_8cpp.html",
38 "class_grid.html#a846df308970fb4fccf6d0f7f0a944faf",
40 "various_functions_8h.html#a39875c2042f035db0b6f2423c8b5bb4a"
43 var SYNCONMSG =
'click to disable panel synchronisation';
44 var SYNCOFFMSG =
'click to enable panel synchronisation';
45 var navTreeSubIndices =
new Array();
47 function getData(varName)
49 var i = varName.lastIndexOf(
'/');
50 var n = i>=0 ? varName.substring(i+1) : varName;
51 return eval(n.replace(/\-/g,
'_'));
54 function stripPath(uri)
56 return uri.substring(uri.lastIndexOf(
'/')+1);
59 function stripPath2(uri)
61 var i = uri.lastIndexOf(
'/');
62 var s = uri.substring(i+1);
63 var
m = uri.substring(0,i+1).match(/\/d\w\/d\w\w\/$/);
64 return m ? uri.substring(i-6) : s;
67 function localStorageSupported()
70 return 'localStorage' in window && window[
'localStorage'] !== null && window.localStorage.getItem;
78 function storeLink(link)
80 if (!$(
"#nav-sync").hasClass(
'sync') && localStorageSupported()) {
81 window.localStorage.setItem(
'navpath',link);
87 if (localStorageSupported()) {
88 window.localStorage.setItem(
'navpath',
'');
94 if (localStorageSupported()) {
95 return window.localStorage.getItem(
'navpath');
101 function getScript(scriptName,func,show)
103 var head = document.getElementsByTagName(
"head")[0];
104 var script = document.createElement(
'script');
105 script.id = scriptName;
106 script.type =
'text/javascript';
107 script.onload = func;
108 script.src = scriptName+
'.js';
109 if ($.browser.msie && $.browser.version<=8) {
111 script.onreadystatechange =
function() {
112 if (script.readyState==
'complete' || script.readyState==
'loaded') {
113 func();
if (show) showRoot();
117 head.appendChild(script);
120 function createIndent(o,domNode,node,level)
124 while (n.parentNode) { level++; n=n.parentNode; }
125 var imgNode = document.createElement(
"img");
126 imgNode.style.paddingLeft=(16*level).toString()+
'px';
130 if (node.childrenData) {
131 node.plus_img = imgNode;
132 node.expandToggle = document.createElement(
"a");
133 node.expandToggle.href =
"javascript:void(0)";
134 node.expandToggle.onclick =
function() {
136 $(node.getChildrenUL()).slideUp(
"fast");
137 node.plus_img.src = node.relpath+
"ftv2pnode.png";
138 node.expanded =
false;
140 expandNode(o, node,
false,
false);
143 node.expandToggle.appendChild(imgNode);
144 domNode.appendChild(node.expandToggle);
145 imgNode.src = node.relpath+
"ftv2pnode.png";
147 imgNode.src = node.relpath+
"ftv2node.png";
148 domNode.appendChild(imgNode);
152 var animationInProgress =
false;
154 function gotoAnchor(anchor,aname,updateLocation)
156 var pos, docContent = $(
'#doc-content');
157 if (anchor.parent().attr(
'class')==
'memItemLeft' ||
158 anchor.parent().attr(
'class')==
'fieldtype' ||
159 anchor.parent().is(
':header'))
161 pos = anchor.parent().position().top;
162 }
else if (anchor.position()) {
163 pos = anchor.position().top;
166 var dist = Math.abs(Math.min(
167 pos-docContent.offset().top,
168 docContent[0].scrollHeight-
169 docContent.height()-docContent.scrollTop()));
170 animationInProgress=
true;
172 scrollTop: pos + docContent.scrollTop() - docContent.offset().top
173 },Math.max(50,Math.min(500,dist)),
function(){
174 if (updateLocation) window.location.href=aname;
175 animationInProgress=
false;
180 function newNode(o, po, text, link, childrenData, lastNode)
182 var node =
new Object();
183 node.children = Array();
184 node.childrenData = childrenData;
185 node.depth = po.depth + 1;
186 node.relpath = po.relpath;
187 node.isLast = lastNode;
189 node.li = document.createElement(
"li");
190 po.getChildrenUL().appendChild(node.li);
191 node.parentNode = po;
193 node.itemDiv = document.createElement(
"div");
194 node.itemDiv.className =
"item";
196 node.labelSpan = document.createElement(
"span");
197 node.labelSpan.className =
"label";
199 createIndent(o,node.itemDiv,node,0);
200 node.itemDiv.appendChild(node.labelSpan);
201 node.li.appendChild(node.itemDiv);
203 var a = document.createElement(
"a");
204 node.labelSpan.appendChild(a);
205 node.label = document.createTextNode(text);
206 node.expanded =
false;
207 a.appendChild(node.label);
210 if (link.substring(0,1)==
'^') {
211 url = link.substring(1);
214 url = node.relpath+link;
216 a.className = stripPath(link.replace(
'#',
':'));
217 if (link.indexOf(
'#')!=-1) {
218 var aname =
'#'+link.split(
'#')[1];
219 var srcPage = stripPath($(location).attr(
'pathname'));
220 var targetPage = stripPath(link.split(
'#')[0]);
221 a.href = srcPage!=targetPage ? url :
"javascript:void(0)";
222 a.onclick =
function(){
224 if (!$(a).parent().parent().hasClass(
'selected'))
226 $(
'.item').removeClass(
'selected');
227 $(
'.item').removeAttr(
'id');
228 $(a).parent().parent().addClass(
'selected');
229 $(a).parent().parent().attr(
'id',
'selected');
231 var anchor = $(aname);
232 gotoAnchor(anchor,aname,
true);
236 a.onclick =
function() { storeLink(link); }
239 if (childrenData != null)
241 a.className =
"nolink";
242 a.href =
"javascript:void(0)";
243 a.onclick = node.expandToggle.onclick;
247 node.childrenUL = null;
248 node.getChildrenUL =
function() {
249 if (!node.childrenUL) {
250 node.childrenUL = document.createElement(
"ul");
251 node.childrenUL.className =
"children_ul";
252 node.childrenUL.style.display =
"none";
253 node.li.appendChild(node.childrenUL);
255 return node.childrenUL;
263 var headerHeight = $(
"#top").height();
264 var footerHeight = $(
"#nav-path").height();
265 var windowHeight = $(window).height() - headerHeight - footerHeight;
268 var navtree=$(
'#nav-tree');
269 navtree.scrollTo(
'#selected',0,{offset:-windowHeight/2});
271 setTimeout(arguments.callee, 0);
276 function expandNode(o, node, imm, showRoot)
278 if (node.childrenData && !node.expanded) {
279 if (typeof(node.childrenData)===
'string') {
280 var varName = node.childrenData;
281 getScript(node.relpath+varName,
function(){
282 node.childrenData = getData(varName);
283 expandNode(o, node, imm, showRoot);
286 if (!node.childrenVisited) {
288 }
if (imm || ($.browser.msie && $.browser.version>8)) {
290 $(node.getChildrenUL()).show();
292 $(node.getChildrenUL()).slideDown(
"fast");
295 node.plus_img.src = node.relpath+
"ftv2mlastnode.png";
297 node.plus_img.src = node.relpath+
"ftv2mnode.png";
299 node.expanded =
true;
304 function glowEffect(n,duration)
306 n.addClass(
'glow').delay(duration).queue(
function(next){
307 $(
this).removeClass(
'glow');next();
311 function highlightAnchor()
313 var aname = $(location).attr(
'hash');
314 var anchor = $(aname);
315 if (anchor.parent().attr(
'class')==
'memItemLeft'){
316 var rows = $(
'.memberdecls tr[class$="'+
317 window.location.hash.substring(1)+
'"]');
318 glowEffect(rows.children(),300);
319 }
else if (anchor.parents().slice(2).prop(
'tagName')==
'TR') {
320 glowEffect(anchor.parents(
'div.memitem'),1000);
321 }
else if (anchor.parent().attr(
'class')==
'fieldtype'){
322 glowEffect(anchor.parent().parent(),1000);
323 }
else if (anchor.parent().is(
":header")) {
324 glowEffect(anchor.parent(),1000);
326 glowEffect(anchor.next(),1000);
328 gotoAnchor(anchor,aname,
false);
331 function selectAndHighlight(hash,n)
335 var link=stripPath($(location).attr(
'pathname'))+
':'+hash.substring(1);
336 a=$(
'.item a[class$="'+link+
'"]');
339 a.parent().parent().addClass(
'selected');
340 a.parent().parent().attr(
'id',
'selected');
343 $(n.itemDiv).addClass(
'selected');
344 $(n.itemDiv).attr(
'id',
'selected');
346 if ($(
'#nav-tree-contents .item:first').hasClass(
'selected')) {
347 $(
'#nav-sync').css(
'top',
'30px');
349 $(
'#nav-sync').css(
'top',
'5px');
354 function showNode(o, node, index, hash)
356 if (node && node.childrenData) {
357 if (typeof(node.childrenData)===
'string') {
358 var varName = node.childrenData;
359 getScript(node.relpath+varName,
function(){
360 node.childrenData = getData(varName);
361 showNode(o,node,index,hash);
364 if (!node.childrenVisited) {
367 $(node.getChildrenUL()).show();
369 node.plus_img.src = node.relpath+
"ftv2mlastnode.png";
371 node.plus_img.src = node.relpath+
"ftv2mnode.png";
373 node.expanded =
true;
374 var n = node.children[o.breadcrumbs[index]];
375 if (index+1<o.breadcrumbs.length) {
376 showNode(o,n,index+1,hash);
378 if (typeof(n.childrenData)===
'string') {
379 var varName = n.childrenData;
380 getScript(n.relpath+varName,
function(){
381 n.childrenData = getData(varName);
383 showNode(o,node,index,hash);
386 var rootBase = stripPath(o.toroot.replace(/\..+$/,
''));
387 if (rootBase==
"index" || rootBase==
"pages" || rootBase==
"search") {
388 expandNode(o, n,
true,
true);
390 selectAndHighlight(hash,n);
395 selectAndHighlight(hash);
399 function getNode(o, po)
401 po.childrenVisited =
true;
402 var l = po.childrenData.length-1;
403 for (var i in po.childrenData) {
404 var nodeData = po.childrenData[i];
405 po.children[i] = newNode(o, po, nodeData[0], nodeData[1], nodeData[2],
410 function gotoNode(o,subIndex,root,hash,relpath)
412 var nti = navTreeSubIndices[subIndex][root+hash];
413 o.breadcrumbs = $.extend(
true, [], nti ? nti : navTreeSubIndices[subIndex][root]);
414 if (!o.breadcrumbs && root!=NAVTREE[0][1]) {
415 navTo(o,NAVTREE[0][1],
"",relpath);
416 $(
'.item').removeClass(
'selected');
417 $(
'.item').removeAttr(
'id');
420 o.breadcrumbs.unshift(0);
421 showNode(o, o.node, 0, hash);
425 function navTo(o,root,hash,relpath)
427 var link = cachedLink();
429 var parts = link.split(
'#');
431 if (parts.length>1) hash =
'#'+parts[1];
434 if (hash.match(/^#l\d+$/)) {
435 var anchor=$(
'a[name='+hash.substring(1)+
']');
436 glowEffect(anchor.parent(),1000);
442 while (NAVTREEINDEX[i+1]<=url) i++;
443 if (i==-1) { i=0; root=NAVTREE[0][1]; }
444 if (navTreeSubIndices[i]) {
445 gotoNode(o,i,root,hash,relpath)
447 getScript(relpath+
'navtreeindex'+i,
function(){
448 navTreeSubIndices[i] = eval(
'NAVTREEINDEX'+i);
449 if (navTreeSubIndices[i]) {
450 gotoNode(o,i,root,hash,relpath);
456 function showSyncOff(n,relpath)
458 n.html(
'<img src="'+relpath+
'sync_off.png" title="'+SYNCOFFMSG+
'"/>');
461 function showSyncOn(n,relpath)
463 n.html(
'<img src="'+relpath+
'sync_on.png" title="'+SYNCONMSG+
'"/>');
466 function toggleSyncButton(relpath)
468 var navSync = $(
'#nav-sync');
469 if (navSync.hasClass(
'sync')) {
470 navSync.removeClass(
'sync');
471 showSyncOff(navSync,relpath);
472 storeLink(stripPath2($(location).attr(
'pathname'))+$(location).attr(
'hash'));
474 navSync.addClass(
'sync');
475 showSyncOn(navSync,relpath);
480 function initNavTree(toroot,relpath)
482 var o =
new Object();
484 o.node =
new Object();
485 o.node.li = document.getElementById(
"nav-tree-contents");
486 o.node.childrenData = NAVTREE;
487 o.node.children =
new Array();
488 o.node.childrenUL = document.createElement(
"ul");
489 o.node.getChildrenUL =
function() {
return o.node.childrenUL; };
490 o.node.li.appendChild(o.node.childrenUL);
492 o.node.relpath = relpath;
493 o.node.expanded =
false;
494 o.node.isLast =
true;
495 o.node.plus_img = document.createElement(
"img");
496 o.node.plus_img.src = relpath+
"ftv2pnode.png";
497 o.node.plus_img.width = 16;
498 o.node.plus_img.height = 22;
500 if (localStorageSupported()) {
501 var navSync = $(
'#nav-sync');
503 showSyncOff(navSync,relpath);
504 navSync.removeClass(
'sync');
506 showSyncOn(navSync,relpath);
508 navSync.click(
function(){ toggleSyncButton(relpath); });
511 navTo(o,toroot,window.location.hash,relpath);
513 $(window).bind(
'hashchange',
function(){
514 if (window.location.hash && window.location.hash.length>1){
516 if ($(location).attr(
'hash')){
517 var clslink=stripPath($(location).attr(
'pathname'))+
':'+
518 $(location).attr(
'hash').substring(1);
519 a=$(
'.item a[class$="'+clslink+
'"]');
521 if (a==null || !$(a).parent().parent().hasClass(
'selected')){
522 $(
'.item').removeClass(
'selected');
523 $(
'.item').removeAttr(
'id');
525 var link=stripPath2($(location).attr(
'pathname'));
526 navTo(o,link,$(location).attr(
'hash'),relpath);
527 }
else if (!animationInProgress) {
528 $(
'#doc-content').scrollTop(0);
529 $(
'.item').removeClass(
'selected');
530 $(
'.item').removeAttr(
'id');
531 navTo(o,toroot,window.location.hash,relpath);
535 $(window).load(showRoot);
static const double m
mass of electron in grams