Chemical Data Processing Library Python API - Version 1.2.0
Classes | Functions
CDPL.Util Package Reference

Contains general purpose algorithms, containers, functors and other classes. More...

Classes

class  BZip2IOStream
 
class  BZip2IStream
 
class  BZip2OStream
 
class  BitSet
 A dynamic bitset class. More...
 
class  BitSetArray
 An array of Util.BitSet objects. More...
 
class  BronKerboschAlgorithm
 Implementation of the Bron-Kerbosch clique-detection algorithm [BKA]. More...
 
class  DArray
 An array of double precision floating-point numbers. More...
 
class  DG2DCoordinatesGenerator
 
class  DG3DCoordinatesGenerator
 
class  GZipIOStream
 
class  GZipIStream
 
class  GZipOStream
 
class  LArray
 An array of unsigned integers of type long. 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  SArray
 An array of std::string objects. More...
 
class  STArray
 An array of unsigned integers of type std::size_t. More...
 
class  STPair
 A pair of unsigned integers of type std::size_t. More...
 
class  STPairArray
 An array of pairs of unsigned integers of type std::size_t. More...
 
class  UIArray
 An array of unsigned integers. More...
 

Functions

None fold (BitSet bs, int num_times)
 Folds the bitset bs the specified number of times. More...
 
None forEach (object seq, object func)
 
None forEachPair (object seq1, object seq2, object func)
 
bool checkIfSameFile (str path1, str path2)
 
str genCheckedTempFilePath (str dir='', str ptn='%%%%-%%%%-%%%%-%%%%')
 
bool fileExists (str path)
 

Detailed Description

Contains general purpose algorithms, containers, functors and other classes.

Function Documentation

◆ fold()

None CDPL.Util.fold ( BitSet  bs,
int  num_times 
)

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].

Parameters
bsThe bitset to fold.
num_timesThe number of times the bitset has to be folded.

◆ forEach()

None CDPL.Util.forEach ( object  seq,
object  func 
)
Parameters
seq
func

◆ forEachPair()

None CDPL.Util.forEachPair ( object  seq1,
object  seq2,
object  func 
)
Parameters
seq1
seq2
func

◆ checkIfSameFile()

bool CDPL.Util.checkIfSameFile ( str  path1,
str  path2 
)
Parameters
path1
path2
Returns

◆ genCheckedTempFilePath()

str CDPL.Util.genCheckedTempFilePath ( str   dir = '',
str   ptn = '%%%%-%%%%-%%%%-%%%%' 
)
Parameters
dir
ptn
Returns

◆ fileExists()

bool CDPL.Util.fileExists ( str  path)
Parameters
path
Returns