LibNebular, "extra" template implementations. More...
#include "config.h"
#include "libnebular.hpp"
#include "libnebular-plugin.hpp"
#include <sstream>
Go to the source code of this file.
Namespaces | |
namespace | libnebular |
All ⟨libnebular⟩ identifiers which are exposed to public. | |
namespace | libnebular::bits |
Routines to work with integers as with "bit vectors". | |
Functions | |
template<typename BitContainer > | |
Integer | libnebular::bits::getContigLength (BitContainer a) |
Length of contiguous bits. | |
template<typename BitContainer > | |
Integer | libnebular::bits::getHighestBitIndex (BitContainer a) |
Index of highest bit. | |
template<typename BitContainer > | |
bool | libnebular::bits::areContig (BitContainer a) |
Are bits in being contiguous. | |
template<typename BitContainer > | |
bool | libnebular::bits::areSubsetOf (BitContainer a, BitContainer b) |
Are bits in a being subset of bits in b . | |
template<typename BitContainer > | |
BitContainer | libnebular::bits::generateContig (Integer length) |
Generate integer with length contiguous bits starting from offset 0. |
LibNebular, "extra" template implementations.
Copyright (C) 2011 Leonid Sadikov ⟨ leonius@inbox.ru ⟩
This file is part of LibNebular.
LibNebular is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 3 as published by the Free Software Foundation.
See "COPYING.LESSER" and "COPYING" in distribution or ⟨http://www.gnu.org/licenses/⟩ for full license text.
Intented for standalone inclusion, unlike other ".templates.hpp" files.
Templates here are instantiated in binary modules, so inclusion of this header is optional.
Definition in file libnebular-extra.templates.hpp.