documented new C++ support

This commit is contained in:
Araq 2015-01-28 10:52:13 +01:00
commit dbe71c715e
8 changed files with 185 additions and 29 deletions

View file

@ -12,7 +12,7 @@
## by Adam Langley.
type
NodeObj[T] = object {.pure, final, acyclic.}
NodeObj[T] = object {.acyclic.}
byte: int ## byte index of the difference
otherbits: char
case isLeaf: bool
@ -23,11 +23,10 @@ type
val: T
Node[T] = ref NodeObj[T]
CritBitTree*[T] = object {.
pure, final.} ## The crit bit tree can either be used
## as a mapping from strings to
## some type ``T`` or as a set of
## strings if ``T`` is void.
CritBitTree*[T] = object ## The crit bit tree can either be used
## as a mapping from strings to
## some type ``T`` or as a set of
## strings if ``T`` is void.
root: Node[T]
count: int

View file

@ -8,7 +8,7 @@
#
## The ``intsets`` module implements an efficient int set implemented as a
## sparse bit set.
## `sparse bit set`:idx:.
## **Note**: Since Nim currently does not allow the assignment operator to
## be overloaded, ``=`` for int sets performs some rather meaningless shallow
## copy; use ``assign`` to get a deep copy.

View file

@ -7,7 +7,7 @@
# distribution, for details about the copyright.
#
## Implementation of a queue. The underlying implementation uses a ``seq``.
## Implementation of a `queue`:idx:. The underlying implementation uses a ``seq``.
## Note: For inter thread communication use
## a `TChannel <channels.html>`_ instead.

View file

@ -7,7 +7,8 @@
# distribution, for details about the copyright.
#
## The ``sets`` module implements an efficient hash set and ordered hash set.
## The ``sets`` module implements an efficient `hash set`:idx: and
## ordered hash set.
##
## Hash sets are different from the `built in set type
## <manual.html#set-type>`_. Sets allow you to store any value that can be

View file

@ -7,7 +7,8 @@
# distribution, for details about the copyright.
#
## The ``tables`` module implements variants of an efficient hash table that is
## The ``tables`` module implements variants of an efficient `hash table`:idx:
## (also often named `dictionary`:idx: in other programming languages) that is
## a mapping from keys to values. ``Table`` is the usual hash table,
## ``OrderedTable`` is like ``Table`` but remembers insertion order
## and ``CountTable`` is a mapping from a key to its number of occurances.