Quark  0.1
quark::util Namespace Reference

General-purpose utilities. More...

Classes

class  Algorithms
 A collection of general-purpose algorithms. More...
 
class  AllocationMap
 An index allocation map. More...
 
class  AsyncQueue
 An asynchronous queue which can be accessed from multiple threads in a threadsafe way. More...
 
class  AutoSaver
 A class to be used in implementing a document autosave feature. More...
 
class  CommandLineParser
 An abstract base class for parsing command-line arguments. More...
 
class  Database
 A base class for objects that represent SQL databases. More...
 
class  EnumTraits
 A collection of static methods for accessing enum type metadata. More...
 
class  Exception
 
class  ExternalCommandTask
 An abstract subclass of Task that runs an external command (a subprocess). More...
 
class  FileLoggerDevice
 An implementation of QIODevice that writes lines of text to a rotating list of files. More...
 
class  FileUtils
 A collection of file utility functions. More...
 
class  HashFunctions
 A collection of hash functions. More...
 
class  ImageUtils
 A collection of image-related utility functions. More...
 
class  IOException
 
class  Lists
 A collection of list operations. More...
 
class  MemoryBlock
 A class representing a block of raw memory. More...
 
class  MutableObject
 A base class for objects that can emit a signal when their internal state changes in some way. More...
 
class  ObjectUtils
 General-purpose QObject utilities. More...
 
class  PathUtils
 A collection of utility functions for manipulating file paths. More...
 
class  PluginLoader
 A convenient wrapper template for QPluginLoader that loads and instantiates plugins of a given type. More...
 
class  ProcessUtils
 A collection of process-related utility functions. More...
 
class  RuntimeUtils
 A collection of runtime utility functions. More...
 
class  ScopedBool
 A simple wrapper object for a boolean value which sets the value to true in its constructor and to false in its destructor. More...
 
class  SqlValueBinder
 A value binder for a QSqlQuery object. More...
 
class  Task
 An abstract base class for objects that represent tasks to be executed by a TaskProcessor. More...
 
class  TaskProcessor
 An object that executes Tasks in a queue on a dedicated thread. More...
 
class  ThreadDelegate
 A subclass of QThread that executes a method of another object in its run() method. More...
 
class  Version
 A class representing an interface version number. More...
 
class  WriteBackCache
 An abstract LRU cache implementation that tracks modifications to the cached items and performs writes of modified items to the cache source on demand. More...
 

Typedefs

typedef qint64 RowID
 

Functions

template<typename T >
numeric_clip (T value, T min, T max)
 A numeric range-clipping function. More...
 
std::ostream & operator<< (std::ostream &stream, const Version &v)
 

Detailed Description

General-purpose utilities.

Typedef Documentation

◆ RowID

typedef qint64 RowID

Function Documentation

◆ numeric_clip()

T quark::util::numeric_clip ( value,
min,
max 
)
inline

A numeric range-clipping function.

If the value is outside the specified range, it is clipped.

Parameters
valueThe value to cast.
minThe lower bound of the allowed range.
maxThe upper bound of the allowed range.
Returns
The (possibly clipped) value.

◆ operator<<()

std::ostream& quark::util::operator<< ( std::ostream &  stream,
const Version v 
)
inline