Pt Namespace Reference

Core module. More...

Namespaces

namespace  Cosmo
 Cosmo Component Model.
namespace  Db
 Portable SQL database access.
namespace  Forms
 Graphical user interfaces.
namespace  Gfx
 Graphics and imaging services.
namespace  Http
 HTTP clients and servers.
namespace  Json
 Read and write JSON ducuments.
namespace  JsonRpc
 JSON-RPC 2.0 services and clients.
namespace  Lua
 Lua runtime and reflected bindings.
namespace  Mcp
 Model Context Protocol (MCP) services.
namespace  Net
 TCP and UDP network sockets.
namespace  Remoting
 Remote services and clients.
namespace  Soap
 SOAP services and clients.
namespace  Ssl
 SSL/TLS streams, certificates and contexts.
namespace  System
 System programming
namespace  Unit
 Protocol and data driven unit testing framework.
namespace  Xml
 Read and write XML ducuments.
namespace  XmlRpc
 XML RPC services and clients.

Classes

class  AccessFailed
 Failed to access a resource. More...
class  Allocator
 Allocator interface. More...
class  Any
 Value of any copyable type. More...
class  Arg
 Command-line option extracted from argc and argv. More...
class  Arg< bool >
 Boolean command-line switch. More...
class  atomic_t
 Atomic integers to be used with atomicity functions. More...
class  AutoPtr
 Policy based Auto pointer. More...
class  Awaiter
 Provides the base class for I/O-driven co_await-able operations. More...
class  AwaiterBase
 Defines the cancellation interface for a pending awaitable. More...
class  Base64Codec
 A codec for base-64 encoding. More...
class  BasicAwaiter
 Provides an awaitable that delivers a result through onReady(). More...
class  BasicAwaiter< void >
 Specializes BasicAwaiter for awaitables without a result. More...
class  BasicComposer
 Composes serializable types during serialization. More...
class  BasicComposer< Pt::SerializationInfo >
 Composes a SerializationInfo. More...
class  BasicDecomposer
 Manages the decomposition of types during serialization. More...
class  BasicEvent
 Event base that clones, destroys and identifies a derived type T. More...
class  BasicIOStream
 Input and output stream over a BasicStreamBuffer. More...
class  BasicIStream
 Input stream over a BasicStreamBuffer. More...
class  BasicOStream
 Output stream over a BasicStreamBuffer. More...
class  BasicSlot
 Base type for various "slot" types. More...
class  BasicStreamBuffer
 Stream buffer with peek and available output. More...
class  BasicTextBuffer
 Converts character sequences with different encodings. More...
class  BasicTextIStream
 Converts character sequences using a codec. More...
class  BasicTextOStream
 Converts character sequences using a codec. More...
class  BasicTextStream
 Converts character sequences using a codec. More...
class  BoundSlot
 Slot produced by binding a final argument to another slot. More...
class  Callable
 An interface for all callable entities. More...
struct  Char
 Unicode character type. More...
class  Composer
 Composes types during serialization. More...
class  Connectable
 Connection Management for Signal and Slot Objects. More...
class  Connection
 Represents a connection between a Signal/Delegate and a slot. More...
class  ConstMethod
 Adapter for const class methods. More...
class  ConstMethodSlot
 Wraps ConstMethod objects so that they can act as Slots. More...
class  ConversionError
 Indicates a failed conversion. More...
class  Date
 Date expressed in year, month, and day. More...
class  DateTime
 Combined Date and Time value. More...
class  Decomposer
 Manages the decomposition of types during serialization. More...
class  Delegate
 Delegates an action to a slot. More...
class  DelegateSlot
 Wraps Delegate objects so that they can act as Slots. More...
class  DeletePolicy
 Deleter policy for SmartPtr. More...
class  Deserializer
 Deserializes a set of types. More...
class  Event
 Base class for typed events. More...
class  ExternalRefCounted
 Non-intrusive reference counting for SmartPtr. More...
class  FixupInfo
 Fixup of references during serialization. More...
class  Formatter
 Support for serialization to different formats. More...
class  Function
 Wraps free functions into a generic callable for use with the signals/slots. More...
class  FunctionSlot
 Wraps Function objects so that they can act as slots. More...
class  Generator
 Represents a coroutine that yields a sequence of values and may itself co_await. More...
class  InvalidDate
 Indicates an invalid date value. More...
class  InvalidRegex
 Invalid regular expression. More...
class  InvalidTime
 Indicates an invalid time value. More...
class  Invokable
 Interface for invokable entities. More...
class  IOError
 I/O error. More...
class  IStringStream
 Unicode string input stream. More...
class  Lambda
 Adapts a lambda or function object as a callable. More...
class  LambdaSlot
 Adapts a Lambda for use as a slot. More...
class  Latin1Codec
 A codec for latin-1 encoding. More...
class  LiteralPtr
 Represents a pointer to a literal. More...
class  LoadInfo
 Loads referencable types. More...
class  MemoryPool
 Memory pool for objects of the same size. More...
class  Method
 Adapter for class methods. More...
class  MethodSlot
 Wraps Method objects so that they can act as Slots. More...
class  NonCopyable
 Base class that disables copy construction and assignment. More...
class  OStringStream
 Unicode string output stream. More...
class  PageAllocator
 Page based allocator. More...
class  PoolAllocator
 Pool based allocator. More...
class  RefLinked
 Reference linking policy for SmartPtr. More...
class  Regex
 Regular Expressions for Unicode Strings. More...
class  RegexSMatch
 Result of a regular expression match. More...
class  SaveInfo
 Saves referencable types. More...
class  SerializationContext
 Context for the serialization of types. More...
class  SerializationError
 Error during serialization of a type. More...
class  SerializationInfo
 Represents arbitrary types during serialization. More...
class  Serializer
 Serializes a set of types. More...
class  Settings
 Hierarchical application settings loaded from text. More...
class  SettingsError
 Invalid settings text. More...
class  Signal
 Multicast Signal to call multiple slots. More...
class  SignalSlot
 Wraps Signal objects so that they can act as Slots. More...
class  Singleton
 Process-wide single instance of T. More...
class  Slot
 Endpoint of a signal/slot connection. More...
class  SmartPtr
 Policy based smart pointer. More...
class  SourceInfo
 Source code info class. More...
class  String
 Unicode capable basic_string. More...
class  StringBuffer
 Unicode string stream buffer. More...
class  StringStream
 Unicode string stream. More...
class  Task
 Represents a cancellable C++20 coroutine that produces a single result. More...
class  TextCodec
 Converts between character encodings. More...
class  Time
 Time expressed in hours, minutes, seconds and milliseconds. More...
class  Timespan
 Represents time spans in microsecond resolution. More...
class  TypeInfo
 Extended API for std::type_info. More...
struct  TypeTraits
 Traits for type properties. More...
class  Utf16BECodec
 UTF-16 big endian codec. More...
class  Utf16LECodec
 UTF-16 little endian codec. More...
class  Utf32BECodec
 UTF-32 big endian codec. More...
class  Utf32LECodec
 UTF-32 little endian codec. More...
class  Utf8Appender
 UTF-8 string output iterator. More...
class  Utf8Codec
 Convert between unicode and UTF-8. More...
class  Utf8Convert
 UTF-8 string converter. More...
class  Utf8Iterator
 UTF-8 string input iterator. More...
struct  Void
 Marker type for an unused template argument. More...
class  ZBuffer
 Stream buffer that inflates on read and deflates on write. More...
class  ZIOStream
 Bidirectional stream for zlib or gzip. More...
class  ZIStream
 Input stream that inflates zlib or gzip data. More...
class  ZOStream
 Output stream that deflates to zlib or gzip. More...

Typedefs

typedef int_type int8_t
 Signed 8-bit integer type.
typedef uint_type uint8_t
 Unsigned 8-bit integer type.
typedef int_type int16_t
 Signed 16-bit integer type.
typedef uint_type uint16_t
 Unsigned 16-bit integer type.
typedef int_type int32_t
 Signed 32-bit integer type.
typedef uint_type uint32_t
 Unsigned 32-bit integer type.
typedef int_type int64_t
 Signed 64-bit integer type.
typedef uint_type uint64_t
 Unsigned 64-bit integer type.

Functions

int8_t swab (int8_t value)
 Returns value unchanged.
uint8_t swab (uint8_t value)
 Returns value unchanged.
bool isBigEndian ()
 Returns true if the host stores the most significant byte first.
bool isLittleEndian ()
 Returns true if the host stores the least significant byte first.
template<typename T>
hostToLe (const T &value)
 Converts value from host order to little-endian.
template<typename T>
leToHost (const T &value)
 Converts value from little-endian to host order.
template<typename T>
hostToBe (const T &value)
 Converts value from host order to big-endian.
template<typename T>
beToHost (const T &value)
 Converts value from big-endian to host order.
template<typename R, typename T>
narrow (T from)
 Checked numeric conversion.
template<typename OutIterT, typename T, typename FormatT>
OutIterT formatInt (OutIterT it, T i, const FormatT &fmt)
 Formats an integer in a given format.
template<typename OutIterT, typename T>
OutIterT formatInt (OutIterT it, T i)
 Formats an integer in a decimal format.
template<typename CharT, typename T, typename FormatT>
CharT * formatInt (CharT *buf, std::size_t buflen, T si, const FormatT &fmt)
 Formats an integer in a given format.
template<typename OutIterT, typename T, typename FormatT>
OutIterT formatFloat (OutIterT it, T d, const FormatT &fmt, int precision, bool fixed=false)
 Formats a floating point value in a given format.
template<typename OutIterT, typename T>
OutIterT formatFloat (OutIterT it, T d)
 Formats a floating point value in default format.
template<typename OutIterT, typename T>
OutIterT formatFloat (OutIterT it, T d, int precision, bool fixed=false)
 Formats a floating point value in default format.
template<typename InIterT, typename T, typename FormatT>
InIterT parseInt (InIterT it, InIterT end, T &n, const FormatT &fmt, bool &ok)
 Parses an integer value in a given format.
template<typename InIterT, typename T, typename FormatT>
InIterT parseInt (InIterT it, InIterT end, T &n, const FormatT &fmt)
 Parses an integer value in a given format.
template<typename InIterT, typename T>
InIterT parseInt (InIterT it, InIterT end, T &n, bool &ok)
 Parses an integer value in decimal format.
template<typename InIterT, typename T>
InIterT parseInt (InIterT it, InIterT end, T &n)
 Parses an integer value in decimal format.
template<typename T, typename InIter>
parseInt (InIter it, InIter end)
 Parses an integer value in decimal format.
template<typename InIterT, typename T, typename FormatT>
InIterT parseFloat (InIterT it, InIterT end, T &n, const FormatT &fmt, bool &ok)
 Parses a floating point value in a given format.
template<typename InIterT, typename T, typename FormatT>
InIterT parseFloat (InIterT it, InIterT end, T &n, const FormatT &fmt)
 Parses a floating point value in a given format.
template<typename InIterT, typename T>
InIterT parseFloat (InIterT it, InIterT end, T &n, bool &ok)
 Parses a floating point value.
template<typename InIterT, typename T>
InIterT parseFloat (InIterT it, InIterT end, T &n)
 Parses a floating point value.
template<typename T>
pi ()
 The constant pi.
template<typename T>
piDouble ()
 The constant pi*2.
template<typename T>
piHalf ()
 The constant pi/2.
template<typename T>
piQuart ()
 The constant pi/4.
template<typename T>
piSquare ()
 The constant pi^2.
template<typename T>
fastSin (const T &theta)
 Fast, but less precise sine calculation.
template<typename T>
fastCos (const T &theta)
 Fast, less precise cosine calculation.
template<typename T>
fastAtan2 (T y, T x)
 Fast, but less precise atan2 calculation.
double hypot (double x, double y)
 Return the euclidean distance of the given values.
Pt::int32_t lround (float x)
 Rounds to nearest integer value.
Pt::int32_t lround (double x)
 Rounds to nearest integer value.
template<typename T>
any_cast (const Any &any)
 Returns the value stored in any as type T.
void swap (String &a, String &b)
 Swaps two strings.
String operator+ (const String &a, const String &b)
 Concatenates two strings.
String operator+ (const String &a, const Pt::Char *b)
 Concatenates two strings.
String operator+ (const Pt::Char *a, const String &b)
 Concatenates two strings.
String operator+ (const String &a, Pt::Char b)
 Concatenates two strings.
String operator+ (Pt::Char a, const String &b)
 Concatenates two strings.
bool operator== (const String &a, const String &b)
 Compares two strings.
bool operator== (const Pt::Char *a, const String &b)
 Compares two strings.
bool operator== (const String &a, const Pt::Char *b)
 Compares two strings.
bool operator== (const String &a, const wchar_t *b)
 Compares two strings.
bool operator== (const wchar_t *b, const String &a)
 Compares two strings.
bool operator== (const String &a, const char *b)
 Compares two strings.
bool operator== (const char *b, const String &a)
 Compares two strings.
bool operator!= (const String &a, const String &b)
 Compares two strings.
bool operator!= (const Pt::Char *a, const String &b)
 Compares two strings.
bool operator!= (const String &a, const Pt::Char *b)
 Compares two strings.
bool operator!= (const String &a, const wchar_t *b)
 Compares two strings.
bool operator!= (const wchar_t *b, const String &a)
 Compares two strings.
bool operator!= (const String &a, const char *b)
 Compares two strings.
bool operator!= (const char *b, const String &a)
 Compares two strings.
bool operator< (const String &a, const String &b)
 Compares two strings.
bool operator< (const Pt::Char *a, const String &b)
 Compares two strings.
bool operator< (const String &a, const Pt::Char *b)
 Compares two strings.
bool operator< (const String &a, const wchar_t *b)
 Compares two strings.
bool operator< (const wchar_t *b, const String &a)
 Compares two strings.
bool operator< (const String &a, const char *b)
 Compares two strings.
bool operator< (const char *b, const String &a)
 Compares two strings.
bool operator<= (const String &a, const String &b)
 Compares two strings.
bool operator<= (const Pt::Char *a, const String &b)
 Compares two strings.
bool operator<= (const String &a, const Pt::Char *b)
 Compares two strings.
bool operator<= (const String &a, const wchar_t *b)
 Compares two strings.
bool operator<= (const wchar_t *b, const String &a)
 Compares two strings.
bool operator<= (const String &a, const char *b)
 Compares two strings.
bool operator<= (const char *b, const String &a)
 Compares two strings.
bool operator> (const String &a, const String &b)
 Compares two strings.
bool operator> (const Pt::Char *a, const String &b)
 Compares two strings.
bool operator> (const String &a, const Pt::Char *b)
 Compares two strings.
bool operator> (const String &a, const wchar_t *b)
 Compares two strings.
bool operator> (const wchar_t *b, const String &a)
 Compares two strings.
bool operator> (const String &a, const char *b)
 Compares two strings.
bool operator> (const char *b, const String &a)
 Compares two strings.
bool operator>= (const String &a, const String &b)
 Compares two strings.
bool operator>= (const Pt::Char *a, const String &b)
 Compares two strings.
bool operator>= (const String &a, const Pt::Char *b)
 Compares two strings.
bool operator>= (const String &a, const wchar_t *b)
 Compares two strings.
bool operator>= (const wchar_t *b, const String &a)
 Compares two strings.
bool operator>= (const String &a, const char *b)
 Compares two strings.
bool operator>= (const char *b, const String &a)
 Compares two strings.
ostream & operator<< (ostream &out, const String &str)
 Stream insertion operator.
template<typename T>
std::ostream & operator<< (std::ostream &out, const Arg< T > &arg)
 Write Arg to an std::ostream.
 atomic_t (int v=0)
 Construct with initial value.
int atomicGet (volatile atomic_t &val)
 Atomically get a value.
void atomicSet (volatile atomic_t &val, int n)
 Atomically set a value.
int atomicIncrement (volatile atomic_t &val)
 Increases a value by one as an atomic operation.
int atomicDecrement (volatile atomic_t &val)
 Decreases a value by one as an atomic operation.
int atomicExchange (volatile atomic_t &val, int exch)
 Performs an atomic exchange operation.
int atomicCompareExchange (volatile atomic_t &val, int exch, int comp)
 Performs an atomic compare-and-exchange operation.
int atomicExchangeAdd (volatile atomic_t &val, int add)
 Performs atomic addition of two values.
void * atomicExchange (void *volatile &val, void *exch)
 Performs an atomic exchange operation.
void * atomicCompareExchange (void *volatile &val, void *exch, void *comp)
 Performs an atomic compare-and-exchange operation.
template<typename R, typename BaseT, typename ClassT, typename... As>
ConstMethod< R, ClassT, As... > callable (ClassT &object, R(BaseT::*method)(As...) const)
 Returns a ConstMethod object for the given object/method pair.
template<typename R, typename BaseT, typename ClassT, typename... As>
ConstMethodSlot< R, ClassT, As... > slot (ClassT &object, R(BaseT::*method)(As...) const)
 Returns a slot object for the given object/member pair.
void operator>>= (const SerializationInfo &si, Date &date)
 Deserialize a date.
void operator<<= (SerializationInfo &si, const Date &date)
 Serialize a date.
bool operator== (const Date &a, const Date &b)
 Returns true if the dates are equal.
bool operator!= (const Date &a, const Date &b)
 Returns true if the dates are not equal.
bool operator< (const Date &a, const Date &b)
 Less-than comparison operator.
bool operator<= (const Date &a, const Date &b)
 Less-than-equal comparison operator.
bool operator> (const Date &a, const Date &b)
 Greater-than comparison operator.
bool operator>= (const Date &a, const Date &b)
 Greater-than-equal comparison operator.
Date operator+ (const Date &d, int days)
 Add days to a date.
Date operator+ (int days, const Date &d)
 Add days to a date.
int operator- (const Date &a, const Date &b)
 Subtract two dates.
void operator>>= (const SerializationInfo &si, DateTime &dt)
 Deserialize a DateTime.
void operator<<= (SerializationInfo &si, const DateTime &dt)
 Serialize a DateTime.
DateTime operator+ (const DateTime &dt, const Timespan &ts)
 Add a timespan.
Timespan operator- (const DateTime &first, const DateTime &second)
 Subtract two DateTimes.
DateTime operator- (const DateTime &dt, const Timespan &ts)
 Subtract a timespan.
bool operator< (const DateTime &a, const DateTime &b)
 Less-than comparison operator.
bool operator<= (const DateTime &a, const DateTime &b)
 Less-than-equal comparison operator.
bool operator> (const DateTime &a, const DateTime &b)
 Greater-than comparison operator.
bool operator>= (const DateTime &a, const DateTime &b)
 Greater-than-equal comparison operator.
bool operator== (const DateTime &a, const DateTime &b)
 Returns true if equal.
bool operator!= (const DateTime &a, const DateTime &b)
 Returns true if not equal.
template<typename R, typename... As>
DelegateSlot< R, As... > slot (Delegate< R, As... > &delegate)
 Returns a slot object for the given delegate.
template<typename R, typename... As>
Connection operator+= (Delegate< R, As... > &delegate, const BasicSlot< R, As... > &slot)
 Connect a Delegate to a slot.
template<typename T>
void fixup (const FixupInfo &fixup, T *&fixme)
 Fixup references during serialization.
template<typename T>
void fixup (const FixupInfo &fixup, T &fixme)
 Fixup references during serialization.
template<typename R, typename... As>
Function< R, As... > callable (R(*function)(As...))
 Returns a Function wrapper for the given free/static function.
template<typename R, typename... As>
FunctionSlot< R, As... > slot (R(*function)(As...))
 Returns a slot object for the given free/static function.
template<typename L, typename SlotT = typename LambdaSlotTraits<L>::Slot>
SlotT slot (L &&lambda)
 Returns a deduced slot object for the given lambda.
template<typename L, typename SlotT = typename LambdaSlotTraits<L>::Slot>
SlotT slot (Connectable &context, L &&lambda)
 Returns a deduced slot object for the given lambda.
template<typename R, typename... A, typename T, typename L = typename TypeTraits<T>::Value>
LambdaSlot< L, R, A... > slot (T &&lambda)
 Returns a slot object for the given lambda.
template<typename R, typename... A, typename T, typename L = typename TypeTraits<T>::Value>
LambdaSlot< L, R, A... > slot (Connectable &context, T &&lambda)
 Returns a slot object for the given lambda.
template<typename R, typename BaseT, typename ClassT, typename... As>
Method< R, ClassT, As... > callable (ClassT &object, R(BaseT::*method)(As...))
 Returns a Method object for the given object/method pair.
template<typename R, typename BaseT, typename ClassT, typename... As>
MethodSlot< R, ClassT, As... > slot (ClassT &object, R(BaseT::*method)(As...))
 Returns a slot object for the given object/member pair.
template<typename T>
void save (SaveInfo &si, const T &type)
 Saves referencable types.
template<typename T>
void load (const LoadInfo &li, T &type)
 Loads referencable types.
template<typename T>
void operator>>= (const SerializationInfo &si, T *&ptr)
 Deserializes a pointer reference.
template<typename T>
void operator<<= (SerializationInfo &si, const T *ptr)
 Serializes a pointer reference.
void operator>>= (const SerializationInfo &si, bool &n)
 Deserializes a bool.
void operator<<= (SerializationInfo &si, bool n)
 Serializes a bool.
void operator>>= (const SerializationInfo &si, Pt::int8_t &n)
 Deserializes an 8-bit integer.
void operator<<= (SerializationInfo &si, Pt::int8_t n)
 Serializes a 8-bit integer.
void operator>>= (const SerializationInfo &si, Pt::int16_t &n)
 Deserializes a 16-bit integer.
void operator<<= (SerializationInfo &si, Pt::int16_t n)
 Serializes a 16-bit integer.
void operator>>= (const SerializationInfo &si, Pt::int32_t &n)
 Deserializes a 32-bit integer.
void operator<<= (SerializationInfo &si, Pt::int32_t n)
 Serializes a 32-bit integer.
void operator>>= (const SerializationInfo &si, Pt::int64_t &n)
 Deserializes a 64-bit integer.
void operator<<= (SerializationInfo &si, Pt::int64_t n)
 Serializes a 64-bit integer.
void operator>>= (const SerializationInfo &si, Pt::uint8_t &n)
 Deserializes a 8-bit unsigned integer.
void operator<<= (SerializationInfo &si, Pt::uint8_t n)
 Serializes a 8-bit unsigned integer.
void operator>>= (const SerializationInfo &si, Pt::uint16_t &n)
 Deserializes a 16-bit unsigned integer.
void operator<<= (SerializationInfo &si, Pt::uint16_t n)
 Serializes a 16-bit unsigned integer.
void operator>>= (const SerializationInfo &si, Pt::uint32_t &n)
 Deserializes a 32-bit unsigned integer.
void operator<<= (SerializationInfo &si, Pt::uint32_t n)
 Serializes a 32-bit unsigned integer.
void operator>>= (const SerializationInfo &si, Pt::uint64_t &n)
 Deserializes a 64-bit unsigned integer.
void operator<<= (SerializationInfo &si, Pt::uint64_t n)
 Serializes a 64-bit unsigned integer.
void operator>>= (const SerializationInfo &si, float &n)
 Deserializes a float value.
void operator<<= (SerializationInfo &si, float n)
 Serializes a float value.
void operator>>= (const SerializationInfo &si, double &n)
 Deserializes a double value.
void operator<<= (SerializationInfo &si, double n)
 Serializes a double value.
void operator>>= (const SerializationInfo &si, long double &n)
 Deserializes a long double value.
void operator<<= (SerializationInfo &si, long double n)
 Serializes a long double value.
void operator>>= (const SerializationInfo &si, char &ch)
 Deserializes a character value.
void operator<<= (SerializationInfo &si, char ch)
 Serializes a character value.
void operator<<= (SerializationInfo &si, const char *str)
 Serializes a string.
void operator>>= (const SerializationInfo &si, std::string &str)
 Deserializes a std::string.
void operator<<= (SerializationInfo &si, const std::string &str)
 Serializes a std::string.
void operator>>= (const SerializationInfo &si, Pt::String &str)
 Deserializes a string.
void operator<<= (SerializationInfo &si, const Pt::String &str)
 Serializes a string.
template<typename T, typename A>
void operator>>= (const SerializationInfo &si, std::vector< T, A > &vec)
 Deserializes a std::vector.
template<typename T, typename A>
void operator<<= (SerializationInfo &si, const std::vector< T, A > &vec)
 Serializes a std::vector.
template<typename T, typename A>
void operator>>= (const SerializationInfo &si, std::list< T, A > &list)
 Deserializes a std::list.
template<typename T, typename A>
void operator<<= (SerializationInfo &si, const std::list< T, A > &list)
 Serializes a std::list.
template<typename T, typename A>
void operator>>= (const SerializationInfo &si, std::deque< T, A > &deque)
 Deserializes a std::deque.
template<typename T, typename A>
void operator<<= (SerializationInfo &si, const std::deque< T, A > &deque)
 Serializes a std::deque.
template<typename T, typename C, typename A>
void operator>>= (const SerializationInfo &si, std::set< T, C, A > &set)
 Deserializes a std::set.
template<typename T, typename C, typename A>
void operator<<= (SerializationInfo &si, const std::set< T, C, A > &set)
 Serializes a std::set.
template<typename T, typename C, typename A>
void operator>>= (const SerializationInfo &si, std::multiset< T, C, A > &multiset)
 Deserializes a std::multiset.
template<typename T, typename C, typename A>
void operator<<= (SerializationInfo &si, const std::multiset< T, C, A > &multiset)
 Serializes a std::multiset.
template<typename K, typename V, typename P, typename A>
void operator>>= (const SerializationInfo &si, std::map< K, V, P, A > &map)
 Deserializes a std::map.
template<typename K, typename V, typename P, typename A>
void operator<<= (SerializationInfo &si, const std::map< K, V, P, A > &map)
 Serializes a std::map.
template<typename K, typename V, typename P, typename A>
void operator>>= (const SerializationInfo &si, std::multimap< K, V, P, A > &multimap)
 Deserializes a std::multimap.
template<typename T, typename C, typename P, typename A>
void operator<<= (SerializationInfo &si, const std::multimap< T, C, P, A > &multimap)
 Serializes a std::multimap.
template<typename... As>
SignalSlot< As... > slot (Signal< As... > &signal)
 Returns a slot object for the given signal.
template<typename R, typename... As>
Connection operator+= (Signal< As... > &signal, const BasicSlot< R, As... > &slot)
 Connects a Signal to a slot.
template<typename R, typename... As>
void operator-= (Signal< As... > &signal, const BasicSlot< R, As... > &slot)
 Disconnects a Signal fro a slot.
template<typename R, typename... As, typename T>
SigSlotDetail::BoundSlotTraits< R, std::tuple< As... > >::Type slot (const BasicSlot< R, As... > &slot, const T &arg)
 Binds the final argument of a slot to a copied value.
template<typename T, typename D, typename T2, typename D2>
bool operator== (const AutoPtr< T, D > &a, const AutoPtr< T2, D2 > &b)
 Equality comparison operator.
template<typename T, typename D, typename T2>
bool operator== (const AutoPtr< T, D > &a, const T2 *b)
 Equality comparison operator.
template<typename T, typename D, typename T2, typename D2>
bool operator!= (const AutoPtr< T, D > &a, const AutoPtr< T2, D2 > &b)
 Equality comparison operator.
template<typename T, typename D, typename T2>
bool operator!= (const AutoPtr< T, D > &a, const T2 *b)
 Equality comparison operator.
template<typename T, typename D, typename T2, typename D2>
bool operator< (const AutoPtr< T, D > &a, const AutoPtr< T2, D2 > &b)
 Less-than comparison operator.
template<typename T, typename D, typename T2>
bool operator< (const AutoPtr< T, D > &a, const T2 *b)
 Less-than comparison operator.
template<typename T, class O, typename D, typename T2, typename O2, typename D2>
bool operator== (const SmartPtr< T, O, D > &a, const SmartPtr< T2, O2, D2 > &b)
 Equality comparison operator.
template<typename T, typename O, typename D, typename T2>
bool operator== (const SmartPtr< T, O, D > &a, const T2 *b)
 Equality comparison operator.
template<typename T, typename O, typename D, typename T2, typename O2, typename D2>
bool operator!= (const SmartPtr< T, O, D > &a, const SmartPtr< T2, O2, D2 > &b)
 Equality comparison operator.
template<typename T, typename O, typename D, typename T2>
bool operator!= (const SmartPtr< T, O, D > &a, const T2 *b)
 Equality comparison operator.
template<typename T, typename O, typename D, typename T2, typename O2, typename D2>
bool operator< (const SmartPtr< T, O, D > &a, const SmartPtr< T2, O2, D2 > &b)
 Less-than comparison operator.
template<typename T, typename O, typename D, typename T2>
bool operator< (const SmartPtr< T, O, D > &a, const T2 *b)
 Less-than comparison operator.
template<typename T, typename M, typename D>
void fixup (const Pt::FixupInfo &fixup, SmartPtr< T, M, D > &fixme)
 Custom fixup for deserialization.
template<typename T, typename M, typename D>
void load (const LoadInfo &li, SmartPtr< T, M, D > &sp)
 Custom loading for deserialization.
template<typename T, typename M>
void operator>>= (const Pt::SerializationInfo &si, SmartPtr< T, M > &sp)
 Deserialize a smart pointer.
template<typename T, typename M, typename D>
void save (Pt::SaveInfo &si, const SmartPtr< T, M, D > &sp)
 Custom saving for serialization.
template<typename T, typename M, typename D>
void operator<<= (Pt::SerializationInfo &si, const SmartPtr< T, M, D > &sp)
 Serialize a smart pointer.
std::string operator+ (const std::string &what, const SourceInfo &info)
 Concatenates a string with a SourceInfo.
std::string operator+ (const char *what, const SourceInfo &info)
 Concatenates a string with a SourceInfo.
std::string operator+ (const SourceInfo &info, const std::string &what)
 Concatenates a string with a SourceInfo.
std::string operator+ (const SourceInfo &info, const char *what)
 Concatenates a string with a SourceInfo.
int isalpha (const Char &ch)
 Checks whether ch is a alphabetic character.
int isalnum (const Char &ch)
 Checks whether ch is a alphanumeric character.
int ispunct (const Char &ch)
 Checks whether ch is a punctuation character.
int iscntrl (const Char &ch)
 Checks whether ch is a control character.
int isdigit (const Char &ch)
 Checks whether ch is a decimal digit.
int isxdigit (const Char &ch)
 Checks whether ch is a hexadecimal digit.
int isgraph (const Char &ch)
 Checks whether ch is a graphical character.
int islower (const Char &ch)
 Checks whether ch is lower case.
int isupper (const Char &ch)
 Checks whether ch is upper case.
int isprint (const Char &ch)
 Checks whether ch is a printable character.
int isspace (const Char &ch)
 Checks whether ch is a whitespace character.
Char tolower (const Char &ch)
 Convert a character to lower case.
Char toupper (const Char &ch)
 Convert a character to upper case.
void operator>>= (const SerializationInfo &si, Time &time)
 Deserialize a Time.
void operator<<= (SerializationInfo &si, const Time &time)
 Serialize a Time.
bool operator== (const Time &a, const Time &b)
 Equal comparison operator.
bool operator!= (const Time &a, const Time &b)
 Inequal comparison operator.
bool operator< (const Time &a, const Time &b)
 Less-than comparison operator.
bool operator<= (const Time &a, const Time &b)
 Less-than-or-equal comparison operator.
bool operator> (const Time &a, const Time &b)
 Greater-than comparison operator.
bool operator>= (const Time &a, const Time &b)
 Greater-than-or-equal comparison operator.
Time operator+ (const Time &time, const Timespan &ts)
 Addition operator.
Time operator- (const Time &time, const Timespan &ts)
 Substraction operator.
Timespan operator- (const Time &a, const Time &b)
 Substraction operator.
bool operator== (const Timespan &a, const Timespan &b)
 Equal comparison operator.
bool operator!= (const Timespan &a, const Timespan &b)
 Inequal comparison operator.
bool operator> (const Timespan &a, const Timespan &b)
 Greater-than comparison operator.
bool operator>= (const Timespan &a, const Timespan &b)
 Greater-than-or-equal comparison operator.
bool operator< (const Timespan &a, const Timespan &b)
 Less-than comparison operator.
bool operator<= (const Timespan &a, const Timespan &b)
 Less-than-or-equal comparison operator.
Timespan operator+ (const Timespan &a, const Timespan &b)
 Addition operator.
Timespan operator- (const Timespan &a, const Timespan &b)
 Substraction operator.
bool operator== (const TypeInfo &lhs, const TypeInfo &rhs)
 Equal comparison.
bool operator!= (const TypeInfo &lhs, const TypeInfo &rhs)
 Inequal comparison.
bool operator< (const TypeInfo &lhs, const TypeInfo &rhs)
 Less-than comparison.
bool operator> (const TypeInfo &lhs, const TypeInfo &rhs)
 Greater-than comparison.
bool operator<= (const TypeInfo &lhs, const TypeInfo &rhs)
 Less-than or equal comparison.
bool operator>= (const TypeInfo &lhs, const TypeInfo &rhs)
 Greater-than or equal comparison.

Detailed Description

This module is the basis for all other modules of the framework It has no dependency to any system specific libraries except the standard c++ library. It provides some basic types, support for byte-order handling, atomic integer operations, type-traits, an unicode string and character class, serialization and a signals/delegates based callback mechanism.

Copyright (C) 2012 Marc Boris Duerner

Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the Software is furnished to do so, all subject to the following:

The copyright notices in the Software and this entire statement, including the above license grant, this restriction and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all derivative works of the Software, unless such copies or derivative works are solely in the form of machine-executable object code generated by a source language processor.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Function Documentation

◆ fastSin()

template<typename T>
T fastSin ( const T & theta)

The theta is required in rad [0, 2*Pi]. In the range [0, 2*Pi], the max. abs error is 0.0015.

◆ fastCos()

template<typename T>
T fastCos ( const T & theta)

The theta is required in rad [0, 2*Pi]. In the range [0, 2*Pi], the max. abs error is 0.0015.