_JM_NAMESPACE Namespace Reference

Classes

struct  SimpleFormatter
class  Logger
class  NullType
struct  EmptyType
class  Singleton
struct  GenPoint
struct  GenRect

Typedefs

typedef double Coordinate
typedef struct GenPoint
< Coordinate
Point
typedef struct GenRect
< Coordinate
Rectangle

Functions

template<typename T >
min (T a, T b, T c, T d)
template<typename T >
max (T a, T b, T c, T d)
Rectangle rectangle_merge (Rectangle _b1, Rectangle _b2)
Rectangle rectangle_intersect (Rectangle _b1, Rectangle _b2)
std::ostream & operator<< (std::ostream &os, const Rectangle &rc)
std::ostream & operator<< (std::ostream &os, const Point &pt)

Variables

class {
NULLPTR
const double COORDINATE_INVALID = std::numeric_limits<Coordinate>::max()

Typedef Documentation

typedef double _JM_NAMESPACE::Coordinate

Coordinate according to pdf specification.

Basic point.

Basic rectangle.


Function Documentation

template<typename T >
T _JM_NAMESPACE::max ( a,
b,
c,
d 
) [inline]
template<typename T >
T _JM_NAMESPACE::min ( a,
b,
c,
d 
) [inline]
std::ostream& _JM_NAMESPACE::operator<< ( std::ostream &  os,
const Point &  pt 
) [inline]

Print Point to output stream.

Parameters:
os Output stream.
pt Point to be printed.
Returns:
Output stream.

References _JM_NAMESPACE::GenPoint< Coord >::x, and _JM_NAMESPACE::GenPoint< Coord >::y.

std::ostream& _JM_NAMESPACE::operator<< ( std::ostream &  os,
const Rectangle &  rc 
) [inline]

Print Rectangle to output stream.

Parameters:
os Output stream.
rc Rectangle to be printed.
Returns:
Output stream.

References _JM_NAMESPACE::GenRect< Coord >::xleft, _JM_NAMESPACE::GenRect< Coord >::xright, _JM_NAMESPACE::GenRect< Coord >::yleft, and _JM_NAMESPACE::GenRect< Coord >::yright.

Rectangle _JM_NAMESPACE::rectangle_intersect ( Rectangle  _b1,
Rectangle  _b2 
) [inline]
Rectangle _JM_NAMESPACE::rectangle_merge ( Rectangle  _b1,
Rectangle  _b2 
) [inline]

Variable Documentation

const double _JM_NAMESPACE::COORDINATE_INVALID = std::numeric_limits<Coordinate>::max()
class { ... } _JM_NAMESPACE::NULLPTR

Correct null pointer (NULL) implementation (from CUJ 5/22 by Herb Sutter).