libnebular-extra.templates.hpp File Reference

LibNebular, "extra" template implementations. More...

#include "config.h"
#include "libnebular.hpp"
#include "libnebular-plugin.hpp"
#include <sstream>
Include dependency graph for libnebular-extra.templates.hpp:
This graph shows which files directly or indirectly include this file:

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.

Detailed Description

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.

Author:
Leonid Sadikov ( leonius@inbox.ru )
Date:
Created: 08 May 2011

Intented for standalone inclusion, unlike other ".templates.hpp" files.

Templates here are instantiated in binary modules, so inclusion of this header is optional.

Note:
Code is based not only on User API, but also on Plugin API.

Definition in file libnebular-extra.templates.hpp.

Generated on Sun May 29 18:23:53 2011 for libnebular by  doxygen 1.6.3