Dillo
Classes | Functions | Variables
lout::misc Namespace Reference

Miscellaneous stuff, which does not fit anywhere else. More...

Classes

class  Comparable
 Instances of a sub class of this interface may be compared (less, greater). More...
 
class  SimpleVector
 Simple (simpler than container::untyped::Vector and container::typed::Vector) template based vector. More...
 
class  NotSoSimpleVector
 Container similar to lout::misc::SimpleVector, but some cases of insertion optimized (used for hyphenation). More...
 
class  StringBuffer
 A class for fast concatenation of a large number of strings. More...
 
class  BitSet
 A bit set, which automatically reallocates when needed. More...
 
class  ZoneAllocator
 A simple allocator optimized to handle many small chunks of memory. The chunks can not be free'd individually. Instead the whole zone must be free'd with zoneFree(). More...
 

Functions

void init (int argc, char *argv[])
 
template<class T >
min (T a, T b)
 
template<class T >
max (T a, T b)
 
template<class T >
min (T a, T b, T c)
 
template<class T >
max (T a, T b, T c)
 
void assertNotReached ()
 
int roundInt (double d)
 
int AsciiTolower (char c)
 
int AsciiToupper (char c)
 
int AsciiStrcasecmp (const char *s1, const char *s2)
 

Variables

const char * prgName = PRGNAME
 

Detailed Description

Miscellaneous stuff, which does not fit anywhere else.

Actually, the other parts, beginning with ::object, depend on this.

Function Documentation

int lout::misc::AsciiStrcasecmp ( const char *  s1,
const char *  s2 
)
inline

References AsciiTolower().

Referenced by dw::fltk::strstrip().

int lout::misc::AsciiTolower ( char  c)
inline
int lout::misc::AsciiToupper ( char  c)
inline
void lout::misc::assertNotReached ( )
inline
void lout::misc::init ( int  argc,
char *  argv[] 
)
template<class T >
T lout::misc::max ( a,
b 
)
inline
template<class T >
T lout::misc::max ( a,
b,
c 
)
inline

References max().

template<class T >
T lout::misc::min ( a,
b 
)
inline
template<class T >
T lout::misc::min ( a,
b,
c 
)
inline

References min().

int lout::misc::roundInt ( double  d)
inline

Variable Documentation

const char * lout::misc::prgName = PRGNAME

Referenced by assertNotReached(), and init().