Skip to content

Commit

Permalink
Work on pimpl_my_class doc
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Dec 14, 2023
1 parent 4dbadfe commit 9a2f7d4
Show file tree
Hide file tree
Showing 37 changed files with 1,256 additions and 1,143 deletions.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ srcmlcpp and litgen License (v1.00)
Copyright (c) 2022-2023 Pascal Thomet

This document is a legal agreement ("License") between you ("Licensee") and
Thom Consulting ("Licensor") that governs your use of srcmlcpp and its associated tools, such as litgen ("Software").
Thom Consulting ("Licensor") that governs your use of litgen and its associated tools, such as srcmlcpp ("Software").

1. LICENSE MODELS

Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
![Pip](https://github.com/pthom/litgen/workflows/ci_build_and_test/badge.svg)


litgen, aka \"Literate Generator\", an automatic python bindings generator for humans who like nice code and APIs, based on srcML (https://srcml.org)
litgen, also known as Literate Generator, is an automatic python bindings generator for humans who like nice code and APIs.

_litgen is not ready to be used outside its nest yet! Expect refactorings at a rapid pace!_
It can be used to bind C++ libraries into documented and discoverable python modules using pybind11.

[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/pthom/litgen/HEAD?labpath=packages%2Flitgen%2Flitgen-book%2F)
It can also be used as C++ transformation/refactoring tool.

[See documentation](https://pthom.github.io/litgen/)
2 changes: 1 addition & 1 deletion docs/litgen_book/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 0f54fe0f8640c68fa5ba6bcec04199d9
config: e4847679c7ec31a452437f13192233ff
tags: 645f666f9bcd5a90fca523b33c5a78b7
6 changes: 3 additions & 3 deletions docs/litgen_book/00_00_intro.html
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
<ul class="nav bd-sidenav">
<li class="toctree-l1"><a class="reference internal" href="20_00_00_cpp_intro.html">srcmlcpp: C++ code parsing</a></li>
<li class="toctree-l1"><a class="reference internal" href="20_05_00_cpp_simple_transformations.html">Simple C++ code transformations</a></li>
<li class="toctree-l1"><a class="reference internal" href="20_10_00_pimpl_my_class.html">PImpl my class: autogenerate PImpl boilerplate</a></li>
<li class="toctree-l1"><a class="reference internal" href="20_10_00_pimpl_my_class.html">Pimpl my class: autogenerate PImpl boilerplate</a></li>
<li class="toctree-l1"><a class="reference internal" href="20_15_00_pimpl_online.html">Online PImpl generation</a></li>
</ul>

Expand Down Expand Up @@ -532,7 +532,7 @@ <h1>Table of contents<a class="headerlink" href="#table-of-contents" title="Perm
<ul>
<li class="toctree-l1"><a class="reference internal" href="20_00_00_cpp_intro.html">srcmlcpp: C++ code parsing</a></li>
<li class="toctree-l1"><a class="reference internal" href="20_05_00_cpp_simple_transformations.html">Simple C++ code transformations</a></li>
<li class="toctree-l1"><a class="reference internal" href="20_10_00_pimpl_my_class.html">PImpl my class: autogenerate PImpl boilerplate</a></li>
<li class="toctree-l1"><a class="reference internal" href="20_10_00_pimpl_my_class.html">Pimpl my class: autogenerate PImpl boilerplate</a></li>
<li class="toctree-l1"><a class="reference internal" href="20_15_00_pimpl_online.html">Online PImpl generation</a></li>
</ul>
</div>
Expand Down Expand Up @@ -627,7 +627,7 @@ <h1>Table of contents<a class="headerlink" href="#table-of-contents" title="Perm

<p class="copyright">

© Copyright 2022.
© Copyright 2023.
<br/>

</p>
Expand Down
4 changes: 2 additions & 2 deletions docs/litgen_book/01_05_00_install_or_online.html
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
<ul class="nav bd-sidenav">
<li class="toctree-l1"><a class="reference internal" href="20_00_00_cpp_intro.html">srcmlcpp: C++ code parsing</a></li>
<li class="toctree-l1"><a class="reference internal" href="20_05_00_cpp_simple_transformations.html">Simple C++ code transformations</a></li>
<li class="toctree-l1"><a class="reference internal" href="20_10_00_pimpl_my_class.html">PImpl my class: autogenerate PImpl boilerplate</a></li>
<li class="toctree-l1"><a class="reference internal" href="20_10_00_pimpl_my_class.html">Pimpl my class: autogenerate PImpl boilerplate</a></li>
<li class="toctree-l1"><a class="reference internal" href="20_15_00_pimpl_online.html">Online PImpl generation</a></li>
</ul>

Expand Down Expand Up @@ -488,7 +488,7 @@ <h1>Installation or online usage<a class="headerlink" href="#installation-or-onl

<p class="copyright">

© Copyright 2022.
© Copyright 2023.
<br/>

</p>
Expand Down
54 changes: 27 additions & 27 deletions docs/litgen_book/01_05_05_online.html
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
<ul class="nav bd-sidenav">
<li class="toctree-l1"><a class="reference internal" href="20_00_00_cpp_intro.html">srcmlcpp: C++ code parsing</a></li>
<li class="toctree-l1"><a class="reference internal" href="20_05_00_cpp_simple_transformations.html">Simple C++ code transformations</a></li>
<li class="toctree-l1"><a class="reference internal" href="20_10_00_pimpl_my_class.html">PImpl my class: autogenerate PImpl boilerplate</a></li>
<li class="toctree-l1"><a class="reference internal" href="20_10_00_pimpl_my_class.html">Pimpl my class: autogenerate PImpl boilerplate</a></li>
<li class="toctree-l1"><a class="reference internal" href="20_15_00_pimpl_online.html">Online PImpl generation</a></li>
</ul>

Expand Down Expand Up @@ -257,7 +257,7 @@



<li><a href="https://mybinder.org/v2/gh/pthom/litgen/main?urlpath=lab/tree/packages/litgen/litgen-book/01_05_05_online.ipynb" target="_blank"
<li><a href="https://mybinder.org/v2/gh/pthom/litgen/main?urlpath=lab/tree/litgen-book/01_05_05_online.ipynb" target="_blank"
class="btn btn-sm dropdown-item"
title="Launch onBinder"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand Down Expand Up @@ -558,7 +558,7 @@ <h1>Use litgen online<a class="headerlink" href="#use-litgen-online" title="Perm
</style>

<script>
function copy_code_1702590480842_062() {
function copy_code_1702592880142_741() {
let code = `#################### <generated_from:BoxedTypes> ####################
class BoxedBool:
value: bool
Expand Down Expand Up @@ -628,10 +628,10 @@ <h1>Use litgen online<a class="headerlink" href="#use-litgen-online" title="Perm
navigator.clipboard.writeText(code);
}
</script>
<button class="collapsible_header" id="btn_1702590480842_062_2" >Corresponding python decls (stub)</button>
<div class="collapsible_content" id="content_1702590480842_062_2">
<button class="collapsible_header" id="btn_1702592880142_741_2" >Corresponding python decls (stub)</button>
<div class="collapsible_content" id="content_1702592880142_741_2">
<div>
<button onclick="copy_code_1702590480842_062()" align="right">copy &#x270d;</button>
<button onclick="copy_code_1702592880142_741()" align="right">copy &#x270d;</button>
</div>
<style>pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
Expand Down Expand Up @@ -773,10 +773,10 @@ <h1>Use litgen online<a class="headerlink" href="#use-litgen-online" title="Perm
</div>

<script>
var button = document.getElementById("btn_1702590480842_062_2");
var button = document.getElementById("btn_1702592880142_741_2");
button.addEventListener("click", function() {
this.classList.toggle("collapsible_header_opened");
var content = document.getElementById("content_1702590480842_062_2");
var content = document.getElementById("content_1702592880142_741_2");
if (content.style.maxHeight){
content.style.maxHeight = null;
} else {
Expand All @@ -786,9 +786,9 @@ <h1>Use litgen online<a class="headerlink" href="#use-litgen-online" title="Perm
</script>

<script>
var collapsible_header = document.getElementById("btn_1702590480842_062_2");
var collapsible_header = document.getElementById("btn_1702592880142_741_2");
collapsible_header.classList.toggle("collapsible_header_opened");
var collapsible_content = document.getElementById("content_1702590480842_062_2");
var collapsible_content = document.getElementById("content_1702592880142_741_2");
collapsible_content.style.maxHeight = "80em";
</script>
<br/>
Expand Down Expand Up @@ -837,7 +837,7 @@ <h1>Use litgen online<a class="headerlink" href="#use-litgen-online" title="Perm
</style>

<script>
function copy_code_1702590480825_353() {
function copy_code_1702592880125_823() {
let code = `//////////////////// <generated_from:BoxedTypes> ////////////////////
auto pyClassBoxedBool =
py::class_<BoxedBool>
Expand Down Expand Up @@ -915,10 +915,10 @@ <h1>Use litgen online<a class="headerlink" href="#use-litgen-online" title="Perm
navigator.clipboard.writeText(code);
}
</script>
<button class="collapsible_header" id="btn_1702590480825_353_0" >pybind11 C++ binding code</button>
<div class="collapsible_content" id="content_1702590480825_353_0">
<button class="collapsible_header" id="btn_1702592880125_823_0" >pybind11 C++ binding code</button>
<div class="collapsible_content" id="content_1702592880125_823_0">
<div>
<button onclick="copy_code_1702590480825_353()" align="right">copy &#x270d;</button>
<button onclick="copy_code_1702592880125_823()" align="right">copy &#x270d;</button>
</div>
<style>pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
Expand Down Expand Up @@ -1068,10 +1068,10 @@ <h1>Use litgen online<a class="headerlink" href="#use-litgen-online" title="Perm
</div>

<script>
var button = document.getElementById("btn_1702590480825_353_0");
var button = document.getElementById("btn_1702592880125_823_0");
button.addEventListener("click", function() {
this.classList.toggle("collapsible_header_opened");
var content = document.getElementById("content_1702590480825_353_0");
var content = document.getElementById("content_1702592880125_823_0");
if (content.style.maxHeight){
content.style.maxHeight = null;
} else {
Expand All @@ -1081,9 +1081,9 @@ <h1>Use litgen online<a class="headerlink" href="#use-litgen-online" title="Perm
</script>

<script>
var collapsible_header = document.getElementById("btn_1702590480825_353_0");
var collapsible_header = document.getElementById("btn_1702592880125_823_0");
collapsible_header.classList.toggle("collapsible_header_opened");
var collapsible_content = document.getElementById("content_1702590480825_353_0");
var collapsible_content = document.getElementById("content_1702592880125_823_0");
collapsible_content.style.maxHeight = "80em";
</script>
<br/>
Expand Down Expand Up @@ -1132,7 +1132,7 @@ <h1>Use litgen online<a class="headerlink" href="#use-litgen-online" title="Perm
</style>

<script>
function copy_code_1702590480825_9158() {
function copy_code_1702592880126_401() {
let code = `struct BoxedBool
{
bool value;
Expand All @@ -1143,10 +1143,10 @@ <h1>Use litgen online<a class="headerlink" href="#use-litgen-online" title="Perm
navigator.clipboard.writeText(code);
}
</script>
<button class="collapsible_header" id="btn_1702590480825_9158_1" >C++ glue code</button>
<div class="collapsible_content" id="content_1702590480825_9158_1">
<button class="collapsible_header" id="btn_1702592880126_401_1" >C++ glue code</button>
<div class="collapsible_content" id="content_1702592880126_401_1">
<div>
<button onclick="copy_code_1702590480825_9158()" align="right">copy &#x270d;</button>
<button onclick="copy_code_1702592880126_401()" align="right">copy &#x270d;</button>
</div>
<style>pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
Expand Down Expand Up @@ -1229,10 +1229,10 @@ <h1>Use litgen online<a class="headerlink" href="#use-litgen-online" title="Perm
</div>

<script>
var button = document.getElementById("btn_1702590480825_9158_1");
var button = document.getElementById("btn_1702592880126_401_1");
button.addEventListener("click", function() {
this.classList.toggle("collapsible_header_opened");
var content = document.getElementById("content_1702590480825_9158_1");
var content = document.getElementById("content_1702592880126_401_1");
if (content.style.maxHeight){
content.style.maxHeight = null;
} else {
Expand All @@ -1242,9 +1242,9 @@ <h1>Use litgen online<a class="headerlink" href="#use-litgen-online" title="Perm
</script>

<script>
var collapsible_header = document.getElementById("btn_1702590480825_9158_1");
var collapsible_header = document.getElementById("btn_1702592880126_401_1");
collapsible_header.classList.toggle("collapsible_header_opened");
var collapsible_content = document.getElementById("content_1702590480825_9158_1");
var collapsible_content = document.getElementById("content_1702592880126_401_1");
collapsible_content.style.maxHeight = "80em";
</script>
</div></div>
Expand Down Expand Up @@ -1324,7 +1324,7 @@ <h1>Use litgen online<a class="headerlink" href="#use-litgen-online" title="Perm

<p class="copyright">

© Copyright 2022.
© Copyright 2023.
<br/>

</p>
Expand Down
4 changes: 2 additions & 2 deletions docs/litgen_book/01_05_10_install.html
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
<ul class="nav bd-sidenav">
<li class="toctree-l1"><a class="reference internal" href="20_00_00_cpp_intro.html">srcmlcpp: C++ code parsing</a></li>
<li class="toctree-l1"><a class="reference internal" href="20_05_00_cpp_simple_transformations.html">Simple C++ code transformations</a></li>
<li class="toctree-l1"><a class="reference internal" href="20_10_00_pimpl_my_class.html">PImpl my class: autogenerate PImpl boilerplate</a></li>
<li class="toctree-l1"><a class="reference internal" href="20_10_00_pimpl_my_class.html">Pimpl my class: autogenerate PImpl boilerplate</a></li>
<li class="toctree-l1"><a class="reference internal" href="20_15_00_pimpl_online.html">Online PImpl generation</a></li>
</ul>

Expand Down Expand Up @@ -582,7 +582,7 @@ <h3>Install litgen without checking out the code<a class="headerlink" href="#ins

<p class="copyright">

© Copyright 2022.
© Copyright 2023.
<br/>

</p>
Expand Down
Loading

0 comments on commit 9a2f7d4

Please sign in to comment.