moduleCore module
The Core module contains data structures, classes, definitions and utilities for many common tasks that are not dependent on the Ydin execution engine.
Namespaces
| namespace |
This namespace contains general-purpose functions, type definitions, and data structures that are independent of other modules and plug-ins. |
Other classes
| class |
A template that adds support for arithmetic operators for any data structure that can be iterated over. |
| class |
A utility class for calling functions asynchronously. |
| class |
An iterator that uses two iterators in parallel and transforms their values using a binary function. |
| struct |
Stores the center and radius of a circle. |
| class |
A three-channel color. |
| class |
A four-channel color. |
| struct |
Type information structure for PiiColor4. |
| class |
A structure that represents a three-channel color. |
| struct |
Type information structure for PiiColorBase. |
| struct |
Type information structure for PiiColor. |
| class |
This is an interface class, which can be used for setting and getting the configuration values for the class inherited from this interface. |
| struct | |
| class |
This class adds to the base class |
| class | |
| class |
A home-made event loop. |
| class |
A utility class that automatically starts the event processing thread upon construction and stops it when destructed. |
| class |
PiiException is the base class of all exceptions. |
| class |
A first in first out I/O device. |
| class |
An iterator that picks selected elements out of another iterator. |
| class |
A replacement for float/double numbers. |
| class |
A template class that represents fractions. |
| class |
An exception for situations in which invalid arguments were used in a function or constructor call. |
| class |
An exception for input/output errors. |
| class |
PiiMathException is thrown when errors occur in calculations. |
| class |
This class provides meta information about a configuration value in the class derived from the interface class PiiConfigurable. |
| struct |
A two-dimensional point. |
| class |
An interface for objects that control the functioning of operations that take a long time. |
| class | |
| class |
A read-write lock. |
| struct |
Stores the upper left corner and the size of a rectangle. |
| class |
A database that stores statements about resources. |
| class |
A class used by PiiResourceDatabase to store statements about resources. |
| class |
A shared object. |
| class |
An implicitly shared pointer. |
| class |
A simple segregated storage. |
| struct |
Stores the width and height of an area. |
| class |
A utility class that works as a simple alternative to std::auto_ptr. |
| class | |
| class |
An iterator that transforms another iterator using a unary function. |
| class |
An interface for UI components that support undo/redo functionality. |
| class |
An object that can be used as a slot for any signal. |
| class |
An extensible variant class that can store any data type. |
| class |
A |
| struct |
Type information structure for PiiVector. |
| class |
A class that can be used to compare version numbers composed of multiple dot-separated parts. |
Macros
| #define | |
| #define |
PII_MAKE_EXCEPTION
(EXCEPTION, MESSAGE)
Construct an instance of |
| #define |
PII_THROW
(EXCEPTION, MESSAGE)
A macro for throwing an exception with error location information. |
Macro details
-
#define INTBITS
()#include <PiiBits.h>(sizeof(int)*8)
-
#define PII_MAKE_EXCEPTION
(EXCEPTION, MESSAGE)#include <PiiException.h>EXCEPTION(MESSAGE)
Construct an instance of
EXCEPTIONwith the givenMESSAGE.This macro automatically fills in file and line number information in debug builds. Error location will be omitted in release builds.
-
#define PII_THROW
(EXCEPTION, MESSAGE)#include <PiiException.h>throw PII_MAKE_EXCEPTION(EXCEPTION, MESSAGE)
A macro for throwing an exception with error location information.
With this macro, the file name and line number of the current code line are automatically stored as the error location. If you don't need the location information, just throw the exception as in throw PiiException("Everything just went kablooie.");. An example:
PII_THROW(PiiException, tr("On syntiä kääntää suomea englanniksi."));
Parameters
- EXCEPTION
-
the class name of the exception to be thrown, e.g. PiiException.
- MESSAGE
-
the error message
Add a note
Not a single note added yet. Be the first, add yours.