|
Jpp
15.0.3
the software that should make you happy
|
General puprpose classes and methods. More...
Classes | |
| class | JArgs |
| Data structure to store command line arguments. More... | |
| struct | JComment |
| Auxiliary class for comment. More... | |
| class | JCommunicator |
| Auxiliary class to control standard input and output. More... | |
| struct | JContainer |
| Auxiliary wrapper for I/O of container with optional comment (see JComment). More... | |
| struct | JDate |
| Auxiliary class for simple date. More... | |
| struct | JFunctionAdaptorHelper |
| Auxiliary base class for function adaptor. More... | |
| struct | JFunctionAdaptor |
| Function adaptor. More... | |
| struct | JFunctionAdaptor< JReturn_t, JFirst_t, void > |
| Function adaptor for function with one argument. More... | |
| struct | JMessage |
| Auxiliary class for handling debug parameter within a class. More... | |
| class | JPropertiesElementInterface |
| Interface for I/O of properties element. More... | |
| class | JPropertiesTemplateElement |
| Template class for I/O of properties element. More... | |
| class | JPropertiesTemplateElement< const T > |
| Template specialisation of JPropertiesTemplateElement for const data type. More... | |
| class | JPropertiesElement |
| The property value class. More... | |
| class | JProperties |
| Utility class to parse parameter values. More... | |
| class | JPropertiesTemplateElement< JProperties::JFileReader > |
| Template specialisation for JFileReader. More... | |
| class | JPropertiesTemplateElement< JProperties > |
| Template specialisation for JProperties. More... | |
| struct | JStatus |
| Auxiliary class for handling status. More... | |
| struct | JGetStatusBit |
| Auxiliary class to map key to status bit. More... | |
| struct | JPutStatusBit |
| Auxiliary class to map status bit to key. More... | |
| struct | JTime |
| Auxiliary class for simple time. More... | |
| class | JTimekeeper |
| Time keeper. More... | |
| class | JTimer |
| Auxiliary class for CPU timing and usage. More... | |
| struct | JVersion |
| Auxiliary data structure for general purpose version number. More... | |
Typedefs | |
| typedef std::vector< std::string > | JComment_t |
| Type definition of comment block. More... | |
| typedef std::multimap< JDate <'-'>, std::string > | JGITTags_t |
| Type definition of dated GIT tags. More... | |
Enumerations | |
| enum | JMessage_t { debug_t = 3, status_t = 2, warning_t = 2, notice_t = 1, error_t = 0, fatal_t = 0 } |
| Debug level. More... | |
| enum | JScale_t { femto_t = -15, pico_t = -12, nano_t = -9, micro_t = -6, milli_t = -3, unit_t = 0, kilo_t = +3, mega_t = +6, giga_t = +9, tera_t = +12, peta_t = +15, exa_t = +18 } |
| Enumeration for scaling of quantity. More... | |
Functions | |
| template<class T > | |
| bool | compareObjects (const T &first, const T &second, JBool< true >) |
| Comparison of comparable objects. More... | |
| template<class T > | |
| bool | compareObjects (const T &first, const T &second, JBool< false >) |
| Comparison of uncomparable objects. More... | |
| template<class T > | |
| bool | compareObjects (const T &first, const T &second) |
| Comparison of objects. More... | |
| std::string | strip (const std::string &file_name) |
| Strip leading and trailing white spaces from file name. More... | |
| std::string | getFilenameExtension (const std::string &file_name) |
| Get file name extension, i.e. part after last JEEP::FILENAME_SEPARATOR if any. More... | |
| std::string | getFilename (const std::string &file_name) |
| Get file name part, i.e. part after last JEEP::PATHNAME_SEPARATOR if any. More... | |
| std::string | getPath (const std::string &file_name) |
| Get path, i.e. part before last JEEP::PATHNAME_SEPARATOR if any. More... | |
| std::string | getFullPath (const std::string &path) |
| Get full path, i.e. add JEEP::PATHNAME_SEPARATOR if necessary. More... | |
| std::string | getFilename (const std::string &path, const std::string &file_name) |
| Compose full file name and introduce JEEP::PATHNAME_SEPARATOR if needed. More... | |
| std::string | getPath (const std::string &variable, const std::string &file_name) |
| Get selected path from environment variable for given file name. More... | |
| std::string | getFullFilename (const std::string &variable, const std::string &file_name) |
| Get full file name (see JEEP::getPath). More... | |
| std::string | getNamespace (const std::string &type_name) |
| Get name space, i.e. part before JEEP::TYPENAME_SEPARATOR. More... | |
| std::string | getClassname (const std::string &type_name) |
| Get type name, i.e. part after JEEP::TYPENAME_SEPARATOR. More... | |
| std::string | getProtocol (const std::string &file_name) |
| Get protocol, i.e. part before first JEEP::PROTOCOL_SEPARATOR if any. More... | |
| std::string | getURL () |
| Get URL of document pages. More... | |
| template<class T > | |
| T * | open (const std::string &file_name) |
| Open file. More... | |
| template<> | |
| std::istream * | open (const std::string &file_name) |
| Open file. More... | |
| template<> | |
| std::ostream * | open (const std::string &file_name) |
| Open file. More... | |
| void | close (std::istream *pf) |
| Close file. More... | |
| void | close (std::ostream *pf) |
| Close file. More... | |
| std::string | getGITVersion (const std::string &tag) |
| Get GIT version for given GIT tag. More... | |
| const JGITTags_t & | getGITTags () |
| Get GIT dated tags. More... | |
| template<class T > | |
| int | sign (const T &value) |
| Get sign of value. More... | |
| std::ostream & | getOstream () |
| Get output stream for conversion to std::string. More... | |
| const char * | getCString (const std::string &input) |
| Get output C-string. More... | |
| bool | fail (std::istream &in) |
| Check for stream state. More... | |
| template<class T > | |
| JProperties & | getProperties (T &object, const JEquationParameters ¶meters=JEquationParameters(), const int debug=1) |
| Get properties of a given object. More... | |
| double | getValue (const JScale_t scale) |
| Get numerical value corresponding to scale. More... | |
| const char * | getUnit (const int scale) |
| Get textual unit corresponding to scale. More... | |
| JScale_t | getScale (const char unit) |
| Get scale corresponding to textual unit. More... | |
| void | print (std::ostream &out, const JStatus &status, const JPutStatusBit &helper) |
| Print status. More... | |
| void | print (std::ostream &out, const JStatus &status, const JGetStatusBit &helper) |
| Print status. More... | |
| template<class T > | |
| std::istream & | readObject (std::istream &in, T &object) |
| Stream input of object. More... | |
| template<class T > | |
| std::ostream & | writeObject (std::ostream &out, const T &object) |
| Stream output of object. More... | |
| template<class T > | |
| std::ostream & | writeObject (std::ostream &out, const char *prefix, const T &object, const char postfix) |
| Stream output of object. More... | |
| template<class JFirst_t , class JSecond_t > | |
| std::istream & | readObject (std::istream &in, std::pair< JFirst_t, JSecond_t > &object) |
| Template specialisation of method readObject() for std::pair. More... | |
| template<class JFirst_t , class JSecond_t > | |
| std::ostream & | writeObject (std::ostream &out, const std::pair< JFirst_t, JSecond_t > &object) |
| Template specialisation of method writeObject() for std::pair. More... | |
| template<class JFirst_t , class JSecond_t > | |
| std::ostream & | writeObject (std::ostream &out, const char *prefix, const std::pair< JFirst_t, JSecond_t > &object, const char postfix) |
| Template specialisation of method writeObject() for std::pair. More... | |
| template<class JElement_t , class JAllocator_t > | |
| std::istream & | readObject (std::istream &in, std::vector< JElement_t, JAllocator_t > &object) |
| Template specialisation of method readObject() for std::vector. More... | |
| template<class JElement_t , class JAllocator_t > | |
| std::ostream & | writeObject (std::ostream &out, const std::vector< JElement_t, JAllocator_t > &object) |
| Template specialisation of method writeObject() for std::vector. More... | |
| template<class JElement_t , class JAllocator_t > | |
| std::ostream & | writeObject (std::ostream &out, const char *prefix, const std::vector< JElement_t, JAllocator_t > &object, const char postfix) |
| Template specialisation of method writeObject() for std::vector. More... | |
| template<class JElement_t , class JAllocator_t > | |
| std::istream & | readObject (std::istream &in, std::list< JElement_t, JAllocator_t > &object) |
| Template specialisation of method readObject() for std::list. More... | |
| template<class JElement_t , class JAllocator_t > | |
| std::ostream & | writeObject (std::ostream &out, const std::list< JElement_t, JAllocator_t > &object) |
| Template specialisation of method writeObject() for std::list. More... | |
| template<class JElement_t , class JAllocator_t > | |
| std::ostream & | writeObject (std::ostream &out, const char *prefix, const std::list< JElement_t, JAllocator_t > &object, const char postfix) |
| Template specialisation of method writeObject() for std::list. More... | |
| template<class JElement_t , class JComparator_t , class JAllocator_t > | |
| std::istream & | readObject (std::istream &in, std::set< JElement_t, JComparator_t, JAllocator_t > &object) |
| Template specialisation of method readObject() for std::set. More... | |
| template<class JElement_t , class JComparator_t , class JAllocator_t > | |
| std::ostream & | writeObject (std::ostream &out, const std::set< JElement_t, JComparator_t, JAllocator_t > &object) |
| Template specialisation of method writeObject() for std::set. More... | |
| template<class JElement_t , class JComparator_t , class JAllocator_t > | |
| std::ostream & | writeObject (std::ostream &out, const char *prefix, const std::set< JElement_t, JComparator_t, JAllocator_t > &object, const char postfix) |
| Template specialisation of method writeObject() for std::set. More... | |
| template<class JElement_t , class JComparator_t , class JAllocator_t > | |
| std::istream & | readObject (std::istream &in, std::multiset< JElement_t, JComparator_t, JAllocator_t > &object) |
| Template specialisation of method readObject() for std::multiset. More... | |
| template<class JElement_t , class JComparator_t , class JAllocator_t > | |
| std::ostream & | writeObject (std::ostream &out, const std::multiset< JElement_t, JComparator_t, JAllocator_t > &object) |
| Template specialisation of method writeObject() for std::multiset. More... | |
| template<class JElement_t , class JComparator_t , class JAllocator_t > | |
| std::ostream & | writeObject (std::ostream &out, const char *prefix, const std::multiset< JElement_t, JComparator_t, JAllocator_t > &object, const char postfix) |
| Template specialisation of method writeObject() for std::multiset. More... | |
| template<class JKey_t , class JValue_t , class JComparator_t , class JAllocator_t > | |
| std::istream & | readObject (std::istream &in, std::map< JKey_t, JValue_t, JComparator_t, JAllocator_t > &object) |
| Template specialisation of method readObject() for std::map. More... | |
| template<class JKey_t , class JValue_t , class JComparator_t , class JAllocator_t > | |
| std::ostream & | writeObject (std::ostream &out, const std::map< JKey_t, JValue_t, JComparator_t, JAllocator_t > &object) |
| Template specialisation of method writeObject() for std::map. More... | |
| template<class JKey_t , class JValue_t , class JComparator_t , class JAllocator_t > | |
| std::ostream & | writeObject (std::ostream &out, const char *prefix, const std::map< JKey_t, JValue_t, JComparator_t, JAllocator_t > &object, const char postfix) |
| Template specialisation of method writeObject() for std::map. More... | |
| template<class JKey_t , class JValue_t , class JComparator_t , class JAllocator_t > | |
| std::istream & | readObject (std::istream &in, std::multimap< JKey_t, JValue_t, JComparator_t, JAllocator_t > &object) |
| Template specialisation of method readObject() for std::multimap. More... | |
| template<class JKey_t , class JValue_t , class JComparator_t , class JAllocator_t > | |
| std::ostream & | writeObject (std::ostream &out, const std::multimap< JKey_t, JValue_t, JComparator_t, JAllocator_t > &object) |
| Template specialisation of method writeObject() for std::multimap. More... | |
| template<class JKey_t , class JValue_t , class JComparator_t , class JAllocator_t > | |
| std::ostream & | writeObject (std::ostream &out, const char *prefix, const std::multimap< JKey_t, JValue_t, JComparator_t, JAllocator_t > &object, const char postfix) |
| Template specialisation of method writeObject() for std::multimap. More... | |
| template<class T > | |
| std::ostream & | writeArray (std::ostream &out, const char *left, const char *right, const char *sep, T __begin, T __end) |
| Write array of objects. More... | |
Variables | |
| static const char *const | LD_LIBRARY_PATH = "LD_LIBRARY_PATH" |
| Nick names of environment variables. More... | |
| static const char *const | PATH = "PATH" |
| binary file paths More... | |
| static const char *const | SHELL = "SHELL" |
| SHELL. More... | |
| static const char *const | JPP_PAGES = "JPP_PAGES" |
| Jpp document pages. More... | |
| static const char | PATHNAME_SEPARATOR = '/' |
| path name separator More... | |
| static const char | PATHLIST_SEPARATOR = ':' |
| path list separator More... | |
| static const char | FILENAME_SEPARATOR = '.' |
| file name separator More... | |
| static const char *const | TYPENAME_SEPARATOR = "::" |
| type name separator More... | |
| static const char | PROTOCOL_SEPARATOR = ':' |
| protocol separator More... | |
General puprpose classes and methods.
| typedef std::vector<std::string> JEEP::JComment_t |
Type definition of comment block.
Definition at line 31 of file JComment.hh.
| typedef std::multimap<JDate<'-'>, std::string> JEEP::JGITTags_t |
Type definition of dated GIT tags.
Definition at line 25 of file Jeep/JGITTags.hh.
| enum JEEP::JMessage_t |
Debug level.
| Enumerator | |
|---|---|
| debug_t |
debug |
| status_t |
status |
| warning_t |
warning |
| notice_t |
notice |
| error_t |
error |
| fatal_t |
fatal; exit |
Definition at line 27 of file JMessage.hh.
| enum JEEP::JScale_t |
|
inline |
Comparison of comparable objects.
| first | first object |
| second | second object |
Definition at line 30 of file JComparisonToolkit.hh.
|
inline |
Comparison of uncomparable objects.
| first | first object |
| second | second object |
Definition at line 46 of file JComparisonToolkit.hh.
Comparison of objects.
| first | first object |
| second | second object |
Definition at line 62 of file JComparisonToolkit.hh.
|
inline |
Strip leading and trailing white spaces from file name.
| file_name | file name |
Definition at line 49 of file JeepToolkit.hh.
|
inline |
Get file name extension, i.e. part after last JEEP::FILENAME_SEPARATOR if any.
| file_name | file name |
Definition at line 69 of file JeepToolkit.hh.
|
inline |
Get file name part, i.e. part after last JEEP::PATHNAME_SEPARATOR if any.
| file_name | file name |
Definition at line 88 of file JeepToolkit.hh.
|
inline |
Get path, i.e. part before last JEEP::PATHNAME_SEPARATOR if any.
| file_name | file name |
Definition at line 108 of file JeepToolkit.hh.
|
inline |
Get full path, i.e. add JEEP::PATHNAME_SEPARATOR if necessary.
| path | path |
Definition at line 128 of file JeepToolkit.hh.
|
inline |
Compose full file name and introduce JEEP::PATHNAME_SEPARATOR if needed.
| path | path |
| file_name | file name |
Definition at line 152 of file JeepToolkit.hh.
|
inline |
Get selected path from environment variable for given file name.
The environment variable is parsed according character JEEP::PATHLIST_SEPARATOR. The first path in which a file exists with the given file name is returned. If no existing file is found, an empty path is returned.
| variable | environment variable |
| file_name | file name |
Definition at line 176 of file JeepToolkit.hh.
|
inline |
Get full file name (see JEEP::getPath).
| variable | environment variable |
| file_name | file name |
Definition at line 213 of file JeepToolkit.hh.
|
inline |
Get name space, i.e. part before JEEP::TYPENAME_SEPARATOR.
| type_name | type name |
Definition at line 225 of file JeepToolkit.hh.
|
inline |
Get type name, i.e. part after JEEP::TYPENAME_SEPARATOR.
| type_name | type name |
Definition at line 244 of file JeepToolkit.hh.
|
inline |
Get protocol, i.e. part before first JEEP::PROTOCOL_SEPARATOR if any.
| file_name | file name |
Definition at line 263 of file JeepToolkit.hh.
|
inline |
|
inline |
Open file.
| file_name | file name |
| file_name | file name |
Definition at line 306 of file JeepToolkit.hh.
|
inline |
Open file.
| file_name | file name |
Definition at line 306 of file JeepToolkit.hh.
|
inline |
Open file.
| file_name | file name |
Definition at line 327 of file JeepToolkit.hh.
|
inline |
Close file.
| pf | pointer to file stream |
Definition at line 346 of file JeepToolkit.hh.
|
inline |
Close file.
| pf | pointer to file stream |
Definition at line 361 of file JeepToolkit.hh.
|
inline |
Get GIT version for given GIT tag.
| tag | GIT tag |
Definition at line 34 of file Jeep/JGITTags.hh.
|
inline |
Get GIT dated tags.
Definition at line 54 of file Jeep/JGITTags.hh.
|
inline |
|
inline |
|
inline |
|
inline |
Check for stream state.
Note that end-of-file is not defined as an error so to normally process e.g. std::string and std::vector.
| in | input stream |
Definition at line 57 of file JProperties.hh.
|
inline |
Get properties of a given object.
This method transfers the making of the property object to the corresponding class whilst preserving the constness of the argument.
The corresponding class should implement the method:
template<bool is_constant> static JProperties getProperties(typename JCategory<T, is_constant>::reference_type object, const JEquationParameters& equation, const int debug)
| object | object |
| parameters | equation parameters |
| debug | debug level |
Definition at line 1267 of file JProperties.hh.
|
inline |
Get numerical value corresponding to scale.
| scale | scale |
Definition at line 47 of file JScale.hh.
|
inline |
Get textual unit corresponding to scale.
| scale | scale |
Definition at line 59 of file JScale.hh.
|
inline |
Get scale corresponding to textual unit.
| unit | textual unit |
Definition at line 111 of file JScale.hh.
|
inline |
Print status.
| out | output stream |
| status | status |
| helper | helper |
Definition at line 252 of file JStatus.hh.
|
inline |
Print status.
| out | output stream |
| status | status |
| helper | helper |
Definition at line 269 of file JStatus.hh.
|
inline |
Stream input of object.
| in | input stream |
| object | object |
Definition at line 28 of file JStreamToolkit.hh.
|
inline |
Stream output of object.
| out | output stream |
| object | object |
Definition at line 42 of file JStreamToolkit.hh.
|
inline |
Stream output of object.
| out | output stream |
| prefix | prefix |
| object | object |
| postfix | postfix |
Definition at line 58 of file JStreamToolkit.hh.
|
inline |
Template specialisation of method readObject() for std::pair.
| in | input stream |
| object | object |
Definition at line 75 of file JStreamToolkit.hh.
|
inline |
Template specialisation of method writeObject() for std::pair.
| out | output stream |
| object | object |
Definition at line 92 of file JStreamToolkit.hh.
|
inline |
Template specialisation of method writeObject() for std::pair.
| out | output stream |
| prefix | prefix |
| object | object |
| postfix | postfix |
Definition at line 112 of file JStreamToolkit.hh.
|
inline |
Template specialisation of method readObject() for std::vector.
| in | input stream |
| object | object |
Definition at line 135 of file JStreamToolkit.hh.
|
inline |
Template specialisation of method writeObject() for std::vector.
| out | output stream |
| object | object |
Definition at line 153 of file JStreamToolkit.hh.
|
inline |
Template specialisation of method writeObject() for std::vector.
| out | output stream |
| prefix | prefix |
| object | object |
| postfix | postfix |
Definition at line 174 of file JStreamToolkit.hh.
|
inline |
Template specialisation of method readObject() for std::list.
| in | input stream |
| object | object |
Definition at line 195 of file JStreamToolkit.hh.
|
inline |
Template specialisation of method writeObject() for std::list.
| out | output stream |
| object | object |
Definition at line 213 of file JStreamToolkit.hh.
|
inline |
Template specialisation of method writeObject() for std::list.
| out | output stream |
| prefix | prefix |
| object | object |
| postfix | postfix |
Definition at line 234 of file JStreamToolkit.hh.
|
inline |
Template specialisation of method readObject() for std::set.
| in | input stream |
| object | object |
Definition at line 255 of file JStreamToolkit.hh.
|
inline |
Template specialisation of method writeObject() for std::set.
| out | output stream |
| object | object |
Definition at line 279 of file JStreamToolkit.hh.
|
inline |
Template specialisation of method writeObject() for std::set.
| out | output stream |
| prefix | prefix |
| object | object |
| postfix | postfix |
Definition at line 300 of file JStreamToolkit.hh.
|
inline |
Template specialisation of method readObject() for std::multiset.
| in | input stream |
| object | object |
Definition at line 321 of file JStreamToolkit.hh.
|
inline |
Template specialisation of method writeObject() for std::multiset.
| out | output stream |
| object | object |
Definition at line 339 of file JStreamToolkit.hh.
|
inline |
Template specialisation of method writeObject() for std::multiset.
| out | output stream |
| prefix | prefix |
| object | object |
| postfix | postfix |
Definition at line 360 of file JStreamToolkit.hh.
|
inline |
Template specialisation of method readObject() for std::map.
| in | input stream |
| object | object |
Definition at line 381 of file JStreamToolkit.hh.
|
inline |
Template specialisation of method writeObject() for std::map.
| out | output stream |
| object | object |
Definition at line 404 of file JStreamToolkit.hh.
|
inline |
Template specialisation of method writeObject() for std::map.
| out | output stream |
| prefix | prefix |
| object | object |
| postfix | postfix |
Definition at line 425 of file JStreamToolkit.hh.
|
inline |
Template specialisation of method readObject() for std::multimap.
| in | input stream |
| object | object |
Definition at line 446 of file JStreamToolkit.hh.
|
inline |
Template specialisation of method writeObject() for std::multimap.
| out | output stream |
| object | object |
Definition at line 464 of file JStreamToolkit.hh.
|
inline |
Template specialisation of method writeObject() for std::multimap.
| out | output stream |
| prefix | prefix |
| object | object |
| postfix | postfix |
Definition at line 485 of file JStreamToolkit.hh.
|
inline |
Write array of objects.
| out | output stream |
| left | left bracket |
| right | right bracket |
| sep | separator |
| __begin | begin of data |
| __end | end of data |
Definition at line 510 of file JStreamToolkit.hh.
|
static |
Nick names of environment variables.
library file paths
Definition at line 31 of file JeepToolkit.hh.
|
static |
binary file paths
Definition at line 32 of file JeepToolkit.hh.
|
static |
SHELL.
Definition at line 33 of file JeepToolkit.hh.
|
static |
Jpp document pages.
Definition at line 34 of file JeepToolkit.hh.
|
static |
path name separator
Definition at line 36 of file JeepToolkit.hh.
|
static |
path list separator
Definition at line 37 of file JeepToolkit.hh.
|
static |
file name separator
Definition at line 38 of file JeepToolkit.hh.
|
static |
type name separator
Definition at line 39 of file JeepToolkit.hh.
|
static |
protocol separator
Definition at line 40 of file JeepToolkit.hh.
1.8.5