Chemical Data Processing Library C++ API - Version 1.1.1
|
Contains general purpose algorithms, containers, functors and other classes. More...
Classes | |
class | Array |
A dynamic array class providing amortized constant time access to arbitrary elements. More... | |
class | BronKerboschAlgorithm |
Implementation of the Bron-Kerbosch clique-detection algorithm [BKA]. More... | |
class | CompoundDataReader |
CompoundDataReader. More... | |
class | CompressedDataReader |
CompressedDataReader. More... | |
class | CompressedDataWriter |
CompressedDataWriter. More... | |
class | CompressedIOStream |
struct | CompressionAlgoTraits |
struct | CompressionAlgoTraits< BZIP2 > |
struct | CompressionAlgoTraits< GZIP > |
class | CompressionOStream |
class | CompressionStreamBase |
class | DecompressionIStream |
class | DefaultDataInputHandler |
DefaultDataInputHandler. More... | |
class | DefaultDataOutputHandler |
DefaultDataOutputHandler. More... | |
struct | Dereferencer |
An unary functor for the dereferenciation of pointers without null pointer checking. More... | |
class | DGCoordinatesGenerator |
Generic implementation for generation of coordinates that fulfill user-provided point distance constraints [ASPE]. More... | |
class | DGCoordinatesGenerator< 3, T > |
Specialized implementation for the generation of 3D coordinates that fulfill user-provided point distance and volume constraints [ASPE]. More... | |
class | DGCoordinatesGeneratorBase |
Base for classes dedicated to the generation of coordinates that fulfill user-provided point distance (and volume) constraints [ASPE]. More... | |
class | FileDataReader |
FileDataReader. More... | |
class | FileDataWriter |
FileDataWriter. More... | |
class | FileRemover |
class | IndexedElementIterator |
A STL compatible random access iterator for container elements accessible by index. More... | |
class | IndirectArray |
A dynamic array class for the storage of object pointers with an indirected query interface. More... | |
class | Map |
A unique sorted associative container that maps keys to values. More... | |
struct | MapDefaultValue |
struct | MapDefaultValue< ValueType, false > |
class | MultiFormatDataReader |
MultiFormatDataReader. More... | |
class | MultiFormatDataWriter |
MultiFormatDataWriter. More... | |
class | MultiMap |
A multiple sorted associative container that maps keys to values. More... | |
struct | MultiMapDefaultValue |
struct | MultiMapDefaultValue< ValueType, false > |
struct | NullCheckDereferencer |
An unary functor for the dereferenciation of pointers with null pointer checking. More... | |
class | ObjectPool |
A data structure that caches instances of type T up to a user specified amount. More... | |
class | ObjectStack |
ObjectStack. More... | |
class | PropertyValue |
An unary functor that retrieves the value of a given property from the Base::PropertyContainer instance provided as argument. More... | |
class | PropertyValueProduct |
A binary functor that calculates the product of two property values retrieved from a pair of Base::PropertyContainer instances passed as argument. More... | |
class | StreamDataReader |
A helper class that implements Base::DataReader for std::istream based data readers. More... | |
Typedefs | |
typedef Array< unsigned int > | UIArray |
An array of unsigned integers. More... | |
typedef Array< std::size_t > | STArray |
An array of unsigned integers of type std::size_t . More... | |
typedef Array< long > | LArray |
An array of unsigned integers of type long . More... | |
typedef std::pair< std::size_t, std::size_t > | STPair |
A pair of unsigned integers of type std::size_t . More... | |
typedef Array< STPair > | STPairArray |
An array of pairs of unsigned integers of type std::size_t . More... | |
typedef Array< double > | DArray |
An array of double precision floating-point numbers. More... | |
typedef Array< std::string > | SArray |
An array of std::string objects. More... | |
typedef Array< BitSet > | BitSetArray |
An array of Util::BitSet objects. More... | |
typedef boost::dynamic_bitset | BitSet |
A dynamic bitset class. More... | |
typedef DecompressionIStream< GZIP > | GZipIStream |
typedef DecompressionIStream< BZIP2 > | BZip2IStream |
typedef CompressionOStream< GZIP > | GZipOStream |
typedef CompressionOStream< BZIP2 > | BZip2OStream |
typedef CompressedIOStream< GZIP > | GZipIOStream |
typedef CompressedIOStream< BZIP2 > | BZip2IOStream |
typedef DGCoordinatesGenerator< 3, double > | DG3DCoordinatesGenerator |
Enumerations | |
enum | CompressionAlgo { GZIP, BZIP2 } |
Functions | |
template<typename ValueType > | |
bool | operator== (const Array< ValueType > &array1, const Array< ValueType > &array2) |
Equality comparison operator. More... | |
template<typename ValueType > | |
bool | operator!= (const Array< ValueType > &array1, const Array< ValueType > &array2) |
Inequality comparison operator. More... | |
template<typename ValueType > | |
bool | operator<= (const Array< ValueType > &array1, const Array< ValueType > &array2) |
Less or equal comparison operator. More... | |
template<typename ValueType > | |
bool | operator>= (const Array< ValueType > &array1, const Array< ValueType > &array2) |
Greater or equal comparison operator. More... | |
template<typename ValueType > | |
bool | operator< (const Array< ValueType > &array1, const Array< ValueType > &array2) |
Less than comparison operator. More... | |
template<typename ValueType > | |
bool | operator> (const Array< ValueType > &array1, const Array< ValueType > &array2) |
Greater than comparison operator. More... | |
void | fold (BitSet &bs, std::size_t num_times) |
Folds the bitset bs the specified number of times. More... | |
CDPL_UTIL_API std::string | genCheckedTempFilePath (const std::string &dir="", const std::string &ptn="%%%%-%%%%-%%%%-%%%%") |
CDPL_UTIL_API bool | checkIfSameFile (const std::string &path1, const std::string &path2) |
CDPL_UTIL_API bool | fileExists (const std::string &path) |
template<typename Key , typename Value , bool AllowDefValues, typename KeyCompFunc > | |
bool | operator== (const Map< Key, Value, AllowDefValues, KeyCompFunc > &map1, const Map< Key, Value, AllowDefValues, KeyCompFunc > &map2) |
Equality comparison operator. More... | |
template<typename Key , typename Value , bool AllowDefValues, typename KeyCompFunc > | |
bool | operator!= (const Map< Key, Value, AllowDefValues, KeyCompFunc > &map1, const Map< Key, Value, AllowDefValues, KeyCompFunc > &map2) |
Inequality comparison operator. More... | |
template<typename Key , typename Value , bool AllowDefValues, typename KeyCompFunc > | |
bool | operator<= (const Map< Key, Value, AllowDefValues, KeyCompFunc > &map1, const Map< Key, Value, AllowDefValues, KeyCompFunc > &map2) |
Less or equal comparison operator. More... | |
template<typename Key , typename Value , bool AllowDefValues, typename KeyCompFunc > | |
bool | operator>= (const Map< Key, Value, AllowDefValues, KeyCompFunc > &map1, const Map< Key, Value, AllowDefValues, KeyCompFunc > &map2) |
Greater or equal comparison operator. More... | |
template<typename Key , typename Value , bool AllowDefValues, typename KeyCompFunc > | |
bool | operator< (const Map< Key, Value, AllowDefValues, KeyCompFunc > &map1, const Map< Key, Value, AllowDefValues, KeyCompFunc > &map2) |
Less than comparison operator. More... | |
template<typename Key , typename Value , bool AllowDefValues, typename KeyCompFunc > | |
bool | operator> (const Map< Key, Value, AllowDefValues, KeyCompFunc > &map1, const Map< Key, Value, AllowDefValues, KeyCompFunc > &map2) |
Greater than comparison operator. More... | |
template<typename Key , typename Value , bool AllowDefValues, typename KeyCompFunc > | |
bool | operator== (const MultiMap< Key, Value, AllowDefValues, KeyCompFunc > &map1, const MultiMap< Key, Value, AllowDefValues, KeyCompFunc > &map2) |
Equality comparison operator. More... | |
template<typename Key , typename Value , bool AllowDefValues, typename KeyCompFunc > | |
bool | operator!= (const MultiMap< Key, Value, AllowDefValues, KeyCompFunc > &map1, const MultiMap< Key, Value, AllowDefValues, KeyCompFunc > &map2) |
Inequality comparison operator. More... | |
template<typename Key , typename Value , bool AllowDefValues, typename KeyCompFunc > | |
bool | operator<= (const MultiMap< Key, Value, AllowDefValues, KeyCompFunc > &map1, const MultiMap< Key, Value, AllowDefValues, KeyCompFunc > &map2) |
Less or equal comparison operator. More... | |
template<typename Key , typename Value , bool AllowDefValues, typename KeyCompFunc > | |
bool | operator>= (const MultiMap< Key, Value, AllowDefValues, KeyCompFunc > &map1, const MultiMap< Key, Value, AllowDefValues, KeyCompFunc > &map2) |
Greater or equal comparison operator. More... | |
template<typename Key , typename Value , bool AllowDefValues, typename KeyCompFunc > | |
bool | operator< (const MultiMap< Key, Value, AllowDefValues, KeyCompFunc > &map1, const MultiMap< Key, Value, AllowDefValues, KeyCompFunc > &map2) |
Less than comparison operator. More... | |
template<typename Key , typename Value , bool AllowDefValues, typename KeyCompFunc > | |
bool | operator> (const MultiMap< Key, Value, AllowDefValues, KeyCompFunc > &map1, const MultiMap< Key, Value, AllowDefValues, KeyCompFunc > &map2) |
Greater than comparison operator. More... | |
template<typename InputIt1 , typename InputIt2 , typename BinaryFunc > | |
void | forEachPair (InputIt1 it1, InputIt1 end1, InputIt2 it2, BinaryFunc func) |
template<typename InputIt1 , typename InputIt2 , typename BinaryFunc > | |
void | forEachPair (InputIt1 it1, InputIt1 end1, InputIt2 it2, InputIt2 end2, BinaryFunc func) |
Contains general purpose algorithms, containers, functors and other classes.
typedef Array<unsigned int> CDPL::Util::UIArray |
An array of unsigned integers.
typedef Array<std::size_t> CDPL::Util::STArray |
An array of unsigned integers of type std::size_t
.
typedef Array<long> CDPL::Util::LArray |
An array of unsigned integers of type long
.
typedef std::pair<std::size_t, std::size_t> CDPL::Util::STPair |
A pair of unsigned integers of type std::size_t
.
typedef Array<STPair> CDPL::Util::STPairArray |
An array of pairs of unsigned integers of type std::size_t
.
typedef Array<double> CDPL::Util::DArray |
An array of double precision floating-point numbers.
typedef Array<std::string> CDPL::Util::SArray |
An array of std::string
objects.
typedef Array<BitSet> CDPL::Util::BitSetArray |
An array of Util::BitSet
objects.
typedef boost::dynamic_bitset CDPL::Util::BitSet |
A dynamic bitset class.
For further information see [BDBS].
bool CDPL::Util::operator== | ( | const Array< ValueType > & | array1, |
const Array< ValueType > & | array2 | ||
) |
Equality comparison operator.
array1 | The first array. |
array2 | The second array. |
true
if the sizes and elements of the arrays are equal, and false
otherwise. bool CDPL::Util::operator!= | ( | const Array< ValueType > & | array1, |
const Array< ValueType > & | array2 | ||
) |
Inequality comparison operator.
array1 | The first array. |
array2 | The second array. |
true
if the sizes or elements of the arrays are non-equal, and false
otherwise. bool CDPL::Util::operator<= | ( | const Array< ValueType > & | array1, |
const Array< ValueType > & | array2 | ||
) |
Less or equal comparison operator.
array1 | The first array. |
array2 | The second array. |
true
if array1 is lexicographically less than or equal to array2, and false
otherwise. bool CDPL::Util::operator>= | ( | const Array< ValueType > & | array1, |
const Array< ValueType > & | array2 | ||
) |
Greater or equal comparison operator.
array1 | The first array. |
array2 | The second array. |
true
if array1 is lexicographically greater than or equal to array2, and false
otherwise. bool CDPL::Util::operator< | ( | const Array< ValueType > & | array1, |
const Array< ValueType > & | array2 | ||
) |
Less than comparison operator.
array1 | The first array. |
array2 | The second array. |
true
if array1 is lexicographically less than array2, and false
otherwise. bool CDPL::Util::operator> | ( | const Array< ValueType > & | array1, |
const Array< ValueType > & | array2 | ||
) |
Greater than comparison operator.
array1 | The first array. |
array2 | The second array. |
true
if array1 is lexicographically greater than array2, and false
otherwise.
|
inline |
Folds the bitset bs the specified number of times.
Folding a bitset means that the lower and upper half of the bitset are combined by a logical OR operation to produce a new bitset which is half of the original size. This process is repeated the specified number of times. See also [DTPFP].
bs | The bitset to fold. |
num_times | The number of times the bitset has to be folded. |
CDPL_UTIL_API std::string CDPL::Util::genCheckedTempFilePath | ( | const std::string & | dir = "" , |
const std::string & | ptn = "%%%%-%%%%-%%%%-%%%%" |
||
) |
CDPL_UTIL_API bool CDPL::Util::checkIfSameFile | ( | const std::string & | path1, |
const std::string & | path2 | ||
) |
CDPL_UTIL_API bool CDPL::Util::fileExists | ( | const std::string & | path | ) |
bool CDPL::Util::operator== | ( | const Map< Key, Value, AllowDefValues, KeyCompFunc > & | map1, |
const Map< Key, Value, AllowDefValues, KeyCompFunc > & | map2 | ||
) |
Equality comparison operator.
map1 | The first map. |
map2 | The second map. |
true
if the sizes and elements of the maps are equal, and false
otherwise. bool CDPL::Util::operator!= | ( | const Map< Key, Value, AllowDefValues, KeyCompFunc > & | map1, |
const Map< Key, Value, AllowDefValues, KeyCompFunc > & | map2 | ||
) |
Inequality comparison operator.
map1 | The first map. |
map2 | The second map. |
true
if the sizes or elements of the maps are non-equal, and false
otherwise. bool CDPL::Util::operator<= | ( | const Map< Key, Value, AllowDefValues, KeyCompFunc > & | map1, |
const Map< Key, Value, AllowDefValues, KeyCompFunc > & | map2 | ||
) |
Less or equal comparison operator.
map1 | The first map. |
map2 | The second map. |
true
if map1 is lexicographically less than or equal to map2, and false
otherwise. bool CDPL::Util::operator>= | ( | const Map< Key, Value, AllowDefValues, KeyCompFunc > & | map1, |
const Map< Key, Value, AllowDefValues, KeyCompFunc > & | map2 | ||
) |
Greater or equal comparison operator.
map1 | The first map. |
map2 | The second map. |
true
if map1 is lexicographically greater than or equal to map2, and false
otherwise. bool CDPL::Util::operator< | ( | const Map< Key, Value, AllowDefValues, KeyCompFunc > & | map1, |
const Map< Key, Value, AllowDefValues, KeyCompFunc > & | map2 | ||
) |
Less than comparison operator.
map1 | The first map. |
map2 | The second map. |
true
if map1 is lexicographically less than map2, and false
otherwise. bool CDPL::Util::operator> | ( | const Map< Key, Value, AllowDefValues, KeyCompFunc > & | map1, |
const Map< Key, Value, AllowDefValues, KeyCompFunc > & | map2 | ||
) |
Greater than comparison operator.
map1 | The first map. |
map2 | The second map. |
true
if map1 is lexicographically greater than map2, and false
otherwise. bool CDPL::Util::operator== | ( | const MultiMap< Key, Value, AllowDefValues, KeyCompFunc > & | map1, |
const MultiMap< Key, Value, AllowDefValues, KeyCompFunc > & | map2 | ||
) |
Equality comparison operator.
map1 | The first map. |
map2 | The second map. |
true
if the sizes and elements of the maps are equal, and false
otherwise. bool CDPL::Util::operator!= | ( | const MultiMap< Key, Value, AllowDefValues, KeyCompFunc > & | map1, |
const MultiMap< Key, Value, AllowDefValues, KeyCompFunc > & | map2 | ||
) |
Inequality comparison operator.
map1 | The first map. |
map2 | The second map. |
true
if the sizes or elements of the maps are non-equal, and false
otherwise. bool CDPL::Util::operator<= | ( | const MultiMap< Key, Value, AllowDefValues, KeyCompFunc > & | map1, |
const MultiMap< Key, Value, AllowDefValues, KeyCompFunc > & | map2 | ||
) |
Less or equal comparison operator.
map1 | The first map. |
map2 | The second map. |
true
if map1 is lexicographically less than or equal to map2, and false
otherwise. bool CDPL::Util::operator>= | ( | const MultiMap< Key, Value, AllowDefValues, KeyCompFunc > & | map1, |
const MultiMap< Key, Value, AllowDefValues, KeyCompFunc > & | map2 | ||
) |
Greater or equal comparison operator.
map1 | The first map. |
map2 | The second map. |
true
if map1 is lexicographically greater than or equal to map2, and false
otherwise. bool CDPL::Util::operator< | ( | const MultiMap< Key, Value, AllowDefValues, KeyCompFunc > & | map1, |
const MultiMap< Key, Value, AllowDefValues, KeyCompFunc > & | map2 | ||
) |
Less than comparison operator.
map1 | The first map. |
map2 | The second map. |
true
if map1 is lexicographically less than map2, and false
otherwise. bool CDPL::Util::operator> | ( | const MultiMap< Key, Value, AllowDefValues, KeyCompFunc > & | map1, |
const MultiMap< Key, Value, AllowDefValues, KeyCompFunc > & | map2 | ||
) |
Greater than comparison operator.
map1 | The first map. |
map2 | The second map. |
true
if map1 is lexicographically greater than map2, and false
otherwise. void CDPL::Util::forEachPair | ( | InputIt1 | it1, |
InputIt1 | end1, | ||
InputIt2 | it2, | ||
BinaryFunc | func | ||
) |
void CDPL::Util::forEachPair | ( | InputIt1 | it1, |
InputIt1 | end1, | ||
InputIt2 | it2, | ||
InputIt2 | end2, | ||
BinaryFunc | func | ||
) |