Classes | Typedefs | Functions
Balau::Util Namespace Reference

Utility functions. More...

Classes

struct  App
 Utilities for accessing application information. More...
 
struct  Containers
 Utilities for containers. More...
 
struct  DateTime
 Date and time utilities simplified. More...
 
struct  Enums
 Utilities for enums. More...
 
struct  Files
 File utilities. More...
 
struct  GZip
 GZip compression utilities. More...
 
struct  Hashing
 Hashing utilities. More...
 
struct  Memory
 Utilities for memory. More...
 
struct  PrettyPrint
 Utilities for printing numeric values in different formats. More...
 
class  RandomNumberGenerator
 The random number generator implementation class. More...
 
class  Streams
 Utilities for streams. More...
 
struct  Strings
 Utilities for strings. More...
 
class  Unzipper
 Random access to the entries in a zip archive. More...
 
struct  User
 Utilities for accessing user information. More...
 
struct  Vectors
 Utilities for vectors. More...
 
struct  ZipEntryInfo
 Information about a zip archive entry (file or directory). More...
 
class  Zipper
 Transactional modification of entries in a new or existing zip archive. More...
 

Typedefs

template<typename T >
using Binomial = RandomNumberGenerator< T, std::binomial_distribution< T > >
 A discrete binomial distribution random number generator. More...
 
template<typename T >
using Cauchy = RandomNumberGenerator< T, std::cauchy_distribution< T > >
 A Cauchy distribution random number generator. More...
 
template<typename T >
using ChiSquared = RandomNumberGenerator< T, std::chi_squared_distribution< T > >
 A chi squared distribution random number generator. More...
 
template<typename T >
using Discrete = RandomNumberGenerator< T, std::discrete_distribution< T > >
 A discrete distribution random number generator. More...
 
template<typename T >
using Exponential = RandomNumberGenerator< T, std::exponential_distribution< T > >
 An exponential distribution random number generator. More...
 
template<typename T >
using ExtremeValue = RandomNumberGenerator< T, std::extreme_value_distribution< T > >
 An extreme value distribution random number generator. More...
 
template<typename T >
using FisherF = RandomNumberGenerator< T, std::fisher_f_distribution< T > >
 A Fisher F distribution random number generator. More...
 
template<typename T >
using Gamma = RandomNumberGenerator< T, std::gamma_distribution< T > >
 A gamma distribution random number generator. More...
 
template<typename T >
using Geometric = RandomNumberGenerator< T, std::geometric_distribution< T > >
 A geometric distribution random number generator. More...
 
template<typename T >
using LogNormal = RandomNumberGenerator< T, std::lognormal_distribution< T > >
 A log normal distribution random number generator. More...
 
template<typename T >
using NegativeBinomial = RandomNumberGenerator< T, std::negative_binomial_distribution< T > >
 A negative binomial distribution random number generator. More...
 
template<typename T >
using Normal = RandomNumberGenerator< T, std::normal_distribution< T > >
 A normal distribution random number generator. More...
 
using NormalDouble = RandomNumberGenerator< double, std::normal_distribution< double > >
 A normal distribution, double precision floating point random number generator. More...
 
using NormalFloat = RandomNumberGenerator< float, std::normal_distribution< float > >
 A normal distribution, single precision floating point random number generator. More...
 
template<typename T >
using PiecewiseConstant = RandomNumberGenerator< T, std::piecewise_constant_distribution< T > >
 A piecewise constant distribution random number generator. More...
 
template<typename T >
using PiecewiseLinear = RandomNumberGenerator< T, std::piecewise_linear_distribution< T > >
 A piecewise linear distribution random number generator. More...
 
template<typename T >
using Poisson = RandomNumberGenerator< T, std::poisson_distribution< T > >
 A Poisson distribution random number generator. More...
 
template<typename T >
using StudentT = RandomNumberGenerator< T, std::student_t_distribution< T > >
 A Student T distribution random number generator. More...
 
using UniformDouble = RandomNumberGenerator< double, std::uniform_real_distribution< double > >
 A uniform distribution, double precision floating point random number generator. More...
 
using UniformFloat = RandomNumberGenerator< float, std::uniform_real_distribution< float > >
 A uniform distribution, single precision floating point random number generator. More...
 
template<typename T >
using UniformInt = RandomNumberGenerator< T, std::uniform_int_distribution< T > >
 A uniform distribution, integer random number generator. More...
 
using UniformInt32 = RandomNumberGenerator< int, std::uniform_int_distribution< int > >
 A uniform distribution, 32 bit signed integer floating point random number generator. More...
 
using UniformInt64 = RandomNumberGenerator< long, std::uniform_int_distribution< long > >
 A uniform distribution, 64 bit signed integer floating point random number generator. More...
 
template<typename T >
using UniformReal = RandomNumberGenerator< T, std::uniform_real_distribution< T > >
 A uniform distribution, floating point random number generator. More...
 
using UniformUInt32 = RandomNumberGenerator< unsigned int, std::uniform_int_distribution< unsigned int > >
 A uniform distribution, 32 bit signed integer floating point random number generator. More...
 
using UniformUInt64 = RandomNumberGenerator< unsigned long long, std::uniform_int_distribution< unsigned long long > >
 A uniform distribution, 64 bit signed integer floating point random number generator. More...
 
template<typename T >
using Weibull = RandomNumberGenerator< T, std::weibull_distribution< T > >
 A Weibull distribution random number generator. More...
 

Functions

template<typename AllocatorT >
U8String< AllocatorT > toString (const ZipEntryInfo &info)
 Print the zip entry info as a UTF-8 string. More...
 

Detailed Description

Utility functions.


Class Documentation

◆ Balau::Util::ZipEntryInfo

struct Balau::Util::ZipEntryInfo

Information about a zip archive entry (file or directory).

This structure is equivalent to LibZip's zip_stat structure.

Class Members
long long compressedSize The compressed size of the entry.
unsigned short compressionMethod The compression method used.
unsigned int crc The CRC of the entry's data.
unsigned short encryptionMethod The encryption method used.
long long index The entry index within the archive.
time_point modificationTime The last modification time.
string name The name of the entry.
long long uncompressedSize The uncompressed size of the entry.

Typedef Documentation

◆ Binomial

using Binomial = RandomNumberGenerator<T, std::binomial_distribution<T> >

A discrete binomial distribution random number generator.

Template Parameters
Tthe integer type

◆ Cauchy

using Cauchy = RandomNumberGenerator<T, std::cauchy_distribution<T> >

A Cauchy distribution random number generator.

Template Parameters
Tthe floating point type

◆ ChiSquared

using ChiSquared = RandomNumberGenerator<T, std::chi_squared_distribution<T> >

A chi squared distribution random number generator.

Template Parameters
Tthe floating point type

◆ Discrete

using Discrete = RandomNumberGenerator<T, std::discrete_distribution<T> >

A discrete distribution random number generator.

Template Parameters
Tthe integer type

◆ Exponential

using Exponential = RandomNumberGenerator<T, std::exponential_distribution<T> >

An exponential distribution random number generator.

Template Parameters
Tthe floating point type

◆ ExtremeValue

using ExtremeValue = RandomNumberGenerator<T, std::extreme_value_distribution<T> >

An extreme value distribution random number generator.

Template Parameters
Tthe floating point type

◆ FisherF

using FisherF = RandomNumberGenerator<T, std::fisher_f_distribution<T> >

A Fisher F distribution random number generator.

Template Parameters
Tthe floating point type

◆ Gamma

using Gamma = RandomNumberGenerator<T, std::gamma_distribution<T> >

A gamma distribution random number generator.

Template Parameters
Tthe floating point type

◆ Geometric

using Geometric = RandomNumberGenerator<T, std::geometric_distribution<T> >

A geometric distribution random number generator.

Template Parameters
Tthe integer type

◆ LogNormal

using LogNormal = RandomNumberGenerator<T, std::lognormal_distribution<T> >

A log normal distribution random number generator.

Template Parameters
Tthe floating point type

◆ NegativeBinomial

using NegativeBinomial = RandomNumberGenerator<T, std::negative_binomial_distribution<T> >

A negative binomial distribution random number generator.

Template Parameters
Tthe integer type

◆ Normal

using Normal = RandomNumberGenerator<T, std::normal_distribution<T> >

A normal distribution random number generator.

Template Parameters
Tthe floating point type

◆ NormalDouble

using NormalDouble = RandomNumberGenerator<double, std::normal_distribution<double> >

A normal distribution, double precision floating point random number generator.

◆ NormalFloat

using NormalFloat = RandomNumberGenerator<float, std::normal_distribution<float> >

A normal distribution, single precision floating point random number generator.

◆ PiecewiseConstant

using PiecewiseConstant = RandomNumberGenerator<T, std::piecewise_constant_distribution<T> >

A piecewise constant distribution random number generator.

Template Parameters
Tthe floating point type

◆ PiecewiseLinear

using PiecewiseLinear = RandomNumberGenerator<T, std::piecewise_linear_distribution<T> >

A piecewise linear distribution random number generator.

Template Parameters
Tthe floating point type

◆ Poisson

using Poisson = RandomNumberGenerator<T, std::poisson_distribution<T> >

A Poisson distribution random number generator.

Template Parameters
Tthe integer type

◆ StudentT

using StudentT = RandomNumberGenerator<T, std::student_t_distribution<T> >

A Student T distribution random number generator.

Template Parameters
Tthe floating point type

◆ UniformDouble

using UniformDouble = RandomNumberGenerator<double, std::uniform_real_distribution<double> >

A uniform distribution, double precision floating point random number generator.

◆ UniformFloat

using UniformFloat = RandomNumberGenerator<float, std::uniform_real_distribution<float> >

A uniform distribution, single precision floating point random number generator.

◆ UniformInt

using UniformInt = RandomNumberGenerator<T, std::uniform_int_distribution<T> >

A uniform distribution, integer random number generator.

Template Parameters
Tthe integer type

◆ UniformInt32

using UniformInt32 = RandomNumberGenerator<int, std::uniform_int_distribution<int> >

A uniform distribution, 32 bit signed integer floating point random number generator.

◆ UniformInt64

using UniformInt64 = RandomNumberGenerator<long, std::uniform_int_distribution<long> >

A uniform distribution, 64 bit signed integer floating point random number generator.

◆ UniformReal

using UniformReal = RandomNumberGenerator<T, std::uniform_real_distribution<T> >

A uniform distribution, floating point random number generator.

Template Parameters
Tthe floating point type

◆ UniformUInt32

using UniformUInt32 = RandomNumberGenerator<unsigned int, std::uniform_int_distribution<unsigned int> >

A uniform distribution, 32 bit signed integer floating point random number generator.

◆ UniformUInt64

using UniformUInt64 = RandomNumberGenerator<unsigned long long, std::uniform_int_distribution<unsigned long long> >

A uniform distribution, 64 bit signed integer floating point random number generator.

◆ Weibull

using Weibull = RandomNumberGenerator<T, std::weibull_distribution<T> >

A Weibull distribution random number generator.

Template Parameters
Tthe floating point type

Function Documentation

◆ toString()

std::string toString ( const ZipEntryInfo info)
inline

Print the zip entry info as a UTF-8 string.

Returns
a UTF-8 string representing the zip entry info