Lunchbox  1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
types.h File Reference

Basic type definitions not provided by the operating system. More...

#include <lunchbox/defines.h>
#include <boost/foreach.hpp>
#include <string>
#include <vector>
#include <sys/types.h>
#include <stdint.h>
+ Include dependency graph for types.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  lunchbox::Array< T >
 A wrapper for C arrays without any memory management. More...
 
class  lunchbox::Atomic< T >
 A variable with atomic semantics and standalone atomic operations. More...
 
class  lunchbox::Buffer< T >
 A simple memory buffer with some helper functions. More...
 
class  lunchbox::Future< T >
 A future represents a asynchronous operation. More...
 
class  lunchbox::Monitor< T >
 A monitor primitive. More...
 
class  lunchbox::Request< T >
 A Future implementation for a RequestHandler request. More...
 
class  lunchbox::LFVectorIterator< V, T >
 An iterator for LFVector. More...
 
class  lunchbox::Lockable< D, L >
 A convenience structure to hold data together with a lock for access. More...
 
class  lunchbox::PluginVisitorT< P, I >
 Visitor for all plugins and compressors of a Plugin or PluginRegistry. More...
 
class  lunchbox::LFVector< T, nSlots >
 STL-like vector implementation providing certain thread-safety guarantees. More...
 

Namespaces

 lunchbox
 Abstraction layer and common utilities for multi-threaded programming.
 

Macros

#define LB_UNDEFINED_UINT16   (0xffffu)
 A 'NULL' value for an uint16. More...
 
#define LB_UNDEFINED_UINT32   (0xffffffffu)
 A 'NULL' value for an uint32. More...
 
#define LB_UNDEFINED_UINT64   (0xffffffffffffffffull)
 A 'NULL' value for an uint64. More...
 
#define LB_MAX_UINT32   (0xfffffff0u)
 The biggest usable value when using special uint32 values. More...
 
#define LB_TIMEOUT_INDEFINITE   0xffffffffu
 Constant defining 'wait forever' in methods with wait parameters. More...
 
#define LB_TIMEOUT_DEFAULT   0xfffffffeu
 Constant defining use global default in methods with wait parameters. More...
 
#define LB_MAX(a, b)   ((a)>(b)?(a):(b))
 returns the maximum of two values
 
#define LB_MIN(a, b)   ((a)<(b)?(a):(b))
 returns the minimum of two values
 
#define LB_BIT1   (0x00000001u)
 
#define LB_BIT2   (0x00000002u)
 
#define LB_BIT3   (0x00000004u)
 
#define LB_BIT4   (0x00000008u)
 
#define LB_BIT5   (0x00000010u)
 
#define LB_BIT6   (0x00000020u)
 
#define LB_BIT7   (0x00000040u)
 
#define LB_BIT8   (0x00000080u)
 
#define LB_BIT9   (0x00000100u)
 
#define LB_BIT10   (0x00000200u)
 
#define LB_BIT11   (0x00000400u)
 
#define LB_BIT12   (0x00000800u)
 
#define LB_BIT13   (0x00001000u)
 
#define LB_BIT14   (0x00002000u)
 
#define LB_BIT15   (0x00004000u)
 
#define LB_BIT16   (0x00008000u)
 
#define LB_BIT17   (0x00010000u)
 
#define LB_BIT18   (0x00020000u)
 
#define LB_BIT19   (0x00040000u)
 
#define LB_BIT20   (0x00080000u)
 
#define LB_BIT21   (0x00100000u)
 
#define LB_BIT22   (0x00200000u)
 
#define LB_BIT23   (0x00400000u)
 
#define LB_BIT24   (0x00800000u)
 
#define LB_BIT25   (0x01000000u)
 
#define LB_BIT26   (0x02000000u)
 
#define LB_BIT27   (0x04000000u)
 
#define LB_BIT28   (0x08000000u)
 
#define LB_BIT29   (0x10000000u)
 
#define LB_BIT30   (0x20000000u)
 
#define LB_BIT31   (0x40000000u)
 
#define LB_BIT32   (0x80000000u)
 
#define LB_BIT33   (0x0000000100000000ull)
 
#define LB_BIT34   (0x0000000200000000ull)
 
#define LB_BIT35   (0x0000000400000000ull)
 
#define LB_BIT36   (0x0000000800000000ull)
 
#define LB_BIT37   (0x0000001000000000ull)
 
#define LB_BIT38   (0x0000002000000000ull)
 
#define LB_BIT39   (0x0000004000000000ull)
 
#define LB_BIT40   (0x0000008000000000ull)
 
#define LB_BIT41   (0x0000010000000000ull)
 
#define LB_BIT42   (0x0000020000000000ull)
 
#define LB_BIT43   (0x0000040000000000ull)
 
#define LB_BIT44   (0x0000080000000000ull)
 
#define LB_BIT45   (0x0000100000000000ull)
 
#define LB_BIT46   (0x0000200000000000ull)
 
#define LB_BIT47   (0x0000400000000000ull)
 
#define LB_BIT48   (0x0000800000000000ull)
 
#define LB_BIT49   (0x0001000000000000ull)
 
#define LB_BIT50   (0x0002000000000000ull)
 
#define LB_BIT51   (0x0004000000000000ull)
 
#define LB_BIT52   (0x0008000000000000ull)
 
#define LB_BIT53   (0x0010000000000000ull)
 
#define LB_BIT54   (0x0020000000000000ull)
 
#define LB_BIT55   (0x0040000000000000ull)
 
#define LB_BIT56   (0x0080000000000000ull)
 
#define LB_BIT57   (0x0100000000000000ull)
 
#define LB_BIT58   (0x0200000000000000ull)
 
#define LB_BIT59   (0x0400000000000000ull)
 
#define LB_BIT60   (0x0800000000000000ull)
 
#define LB_BIT61   (0x1000000000000000ull)
 
#define LB_BIT62   (0x2000000000000000ull)
 
#define LB_BIT63   (0x4000000000000000ull)
 
#define LB_BIT64   (0x8000000000000000ull)
 
#define LB_BIT_ALL_32   (0xffffffffu)
 
#define LB_BIT_ALL_64   (0xffffffffffffffffull)
 
#define LB_BIT_NONE   (0)
 
#define LB_1KB   (1024)
 
#define LB_10KB   (10240)
 
#define LB_100KB   (102400)
 
#define LB_1MB   (1048576)
 
#define LB_10MB   (10485760)
 
#define LB_100MB   (104857600)
 
#define LB_16KB   (16384)
 
#define LB_32KB   (32768)
 
#define LB_64KB   (65536)
 
#define LB_128KB   (131072)
 
#define LB_48MB   (50331648)
 
#define LB_64MB   (67108864)
 

Typedefs

typedef std::vector< std::string > lunchbox::Strings
 A vector of std::strings. More...
 
typedef Strings::const_iterator lunchbox::StringsCIter
 
typedef Strings::iterator lunchbox::StringsIter
 
typedef Atomic< int32_t > lunchbox::a_int32_t
 An atomic 32 bit integer variable.
 
typedef Atomic< ssize_t > lunchbox::a_ssize_t
 An atomic signed size variable.
 
typedef Buffer< uint8_t > lunchbox::Bufferb
 a byte buffer
 
typedef Future< bool > lunchbox::f_bool_t
 A future with a boolean return value.
 
typedef Future< uint32_t > lunchbox::f_uint32_t
 A future 32 bit unsigned promise.
 
typedef Future< ssize_t > lunchbox::f_ssize_t
 A future signed size promise.
 
typedef Future< void > lunchbox::f_void_t
 A future signed size promise.
 
typedef Array< void > lunchbox::CompressorChunk
 
typedef std::vector
< CompressorChunk > 
lunchbox::CompressorChunks
 
typedef std::vector< Plugin * > lunchbox::Plugins
 
typedef Plugins::const_iterator lunchbox::PluginsCIter
 
typedef PluginVisitorT< Plugin,
EqCompressorInfo
lunchbox::PluginVisitor
 
typedef PluginVisitorT< const
Plugin, const EqCompressorInfo
lunchbox::ConstPluginVisitor
 

Detailed Description

Basic type definitions not provided by the operating system.

Definition in file types.h.

Macro Definition Documentation

#define LB_MAX_UINT32   (0xfffffff0u)

The biggest usable value when using special uint32 values.

Definition at line 103 of file types.h.

#define LB_TIMEOUT_DEFAULT   0xfffffffeu

Constant defining use global default in methods with wait parameters.

Definition at line 109 of file types.h.

#define LB_TIMEOUT_INDEFINITE   0xffffffffu

Constant defining 'wait forever' in methods with wait parameters.

Definition at line 106 of file types.h.

#define LB_UNDEFINED_UINT16   (0xffffu)

A 'NULL' value for an uint16.

Definition at line 94 of file types.h.

#define LB_UNDEFINED_UINT32   (0xffffffffu)

A 'NULL' value for an uint32.

Definition at line 97 of file types.h.

#define LB_UNDEFINED_UINT64   (0xffffffffffffffffull)

A 'NULL' value for an uint64.

Definition at line 100 of file types.h.