Rapicorn - Experimental UI Toolkit - Source Code  13.07.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Classes | Namespaces | Defines | Functions
utilities.hh File Reference
#include <rcore/inout.hh>
#include <assert.h>

Go to the source code of this file.

Classes

class  Rapicorn::TraitConvertible< X, Y >
class  Rapicorn::DataKey< Type >
 DataKey objects are used to identify and manage custom data members of DataListContainer objects. More...
class  Rapicorn::DataList
class  Rapicorn::DataList::NodeBase
class  Rapicorn::DataList::Node< T >

Namespaces

namespace  Rapicorn
 

The Rapicorn namespace encompasses core utilities and toolkit functionality.


namespace  Rapicorn::Path
 

The Path namespace provides functions for file path manipulation and testing.


Defines

#define DIR_SEPARATOR
 Shorthand for RAPICORN_DIR_SEPARATOR.
#define DIR_SEPARATOR_S
 Shorthand for RAPICORN_DIR_SEPARATOR_S.
#define SEARCHPATH_SEPARATOR
 Shorthand for RAPICORN_SEARCHPATH_SEPARATOR.
#define SEARCHPATH_SEPARATOR_S
 Shorthand for RAPICORN_SEARCHPATH_SEPARATOR_S.
#define __PRETTY_FILE__
 Shorthand for RAPICORN_PRETTY_FILE.
#define STRLOC()
 Shorthand for RAPICORN_STRLOC() if RAPICORN_CONVENIENCE is defined.
#define return_if
 Shorthand for RAPICORN_RETURN_IF() if RAPICORN_CONVENIENCE is defined.
#define return_unless
 Shorthand for RAPICORN_RETURN_UNLESS() if RAPICORN_CONVENIENCE is defined.
#define RAPICORN_PRETTY_FILE
 Full source file path name.
#define RAPICORN_STRLOC()
 Expand to a string literal, describing the current code location.
#define RAPICORN_STRFUNC()
 Return "FUNCTION()".
#define RAPICORN_STRINGIFY(macro_or_string)
 Return stringiified argument.
#define RAPICORN_STRINGIFY_ARG(arg)
#define RAPICORN_RETURN_IF(cond,...)
 Return if expr evaluates to true.
#define RAPICORN_RETURN_UNLESS(cond,...)
 Return if expr is false.
#define RAPICORN_BREAKPOINT()
 Cause a debugging breakpoint, for development only.

Functions

template<typename T >
const T & Rapicorn::abs (const T &value)
template<typename T >
const T & Rapicorn::clamp (const T &value, const T &minimum, const T &maximum)
template<class T , size_t S>
std::vector< T > Rapicorn::vector_from_array (const T(&array_entries)[S])
 Construct a std::vector<T> from a C array of type T[].
String Rapicorn::pretty_file (const char *file_dir, const char *file)
std::vector< std::string > Rapicorn::pretty_backtrace (uint level, size_t *parent_addr)
void Rapicorn::debug_backtrace_snapshot (size_t key)
String Rapicorn::debug_backtrace_showshot (size_t key)
void Rapicorn::breakpoint ()
String Rapicorn::process_handle ()
uint64 Rapicorn::timestamp_startup ()
uint64 Rapicorn::timestamp_realtime ()
uint64 Rapicorn::timestamp_benchmark ()
uint64 Rapicorn::timestamp_resolution ()
String Rapicorn::timestamp_format (uint64 stamp)
String Rapicorn::Path::dirname (const String &path)
String Rapicorn::Path::basename (const String &path)
String Rapicorn::Path::abspath (const String &path, const String &incwd)
bool Rapicorn::Path::isabs (const String &path)
bool Rapicorn::Path::isdirname (const String &path)
String Rapicorn::Path::skip_root (const String &path)
String Rapicorn::Path::join (const String &frag0, const String &frag1, const String &frag2, const String &frag3, const String &frag4, const String &frag5, const String &frag6, const String &frag7, const String &frag8, const String &frag9, const String &frag10, const String &frag11, const String &frag12, const String &frag13, const String &frag14, const String &frag15)
bool Rapicorn::Path::check (const String &file, const String &mode)
bool Rapicorn::Path::equals (const String &file1, const String &file2)
charRapicorn::Path::memread (const String &filename, size_t *lengthp)
void Rapicorn::Path::memfree (char *memread_mem)
String Rapicorn::Path::cwd ()
 Return the current working directoy.
String Rapicorn::Path::vpath_find (const String &file, const String &mode)
String Rapicorn::Path::searchpath_find (const String &searchpath, const String &file, const String &mode)
StringVector Rapicorn::Path::searchpath_split (const String &searchpath)
void Rapicorn::url_show (const char *url)
void Rapicorn::url_show_with_cookie (const char *url, const char *url_title, const char *cookie)
bool Rapicorn::url_test_show (const char *url)
bool Rapicorn::url_test_show_with_cookie (const char *url, const char *url_title, const char *cookie)
uint Rapicorn::cleanup_add (uint timeout_ms, void(*destroy_data)(void *), void *data)
void Rapicorn::cleanup_force_handlers (void)
 Force all cleanup handlers (see rapicorn_cleanup_add()) to be immediately executed.
uint8 * Rapicorn::zintern_decompress (unsigned int decompressed_size, const unsigned char *cdata, unsigned int cdata_size)
void Rapicorn::zintern_free (uint8 *dc_data)
template<typename Type >
void Rapicorn::TEMPLATE_ERROR::invalid_type ()

Detailed Description


Define Documentation

Full source file path name.

Macro that expands to __FILE_DIR__ "/" __FILE__, see also __FILE_DIR__.

#define RAPICORN_RETURN_IF (   cond,
  ... 
)

Return if expr evaluates to true.

Silently return rvalue if expression expr evaluates to true. Returns void if rvalue was not specified.

#define RAPICORN_RETURN_UNLESS (   cond,
  ... 
)

Return if expr is false.

Silently return rvalue if expression expr evaluates to false. Returns void if rvalue was not specified.

#define RAPICORN_STRLOC ( )

Expand to a string literal, describing the current code location.

Return "FILE:LINE".

Returns a string describing the current source code location, such as FILE and LINE number.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines