lkptr - simple reference LinKed PoinTeR:
Classes | Defines | Functions
lkptr.h File Reference

simple reference LinKed PoinTeR. More...

Go to the source code of this file.

Classes

class  base_lkptr< X >
 Accesory class that contains the fields all lkptr<> intelligent pointers. More...
class  lkptr< X >
 These smart pointer share the object they point to. More...
class  array_lkptr< X >
 Similar to lkptr<>, but points to an array instead of a single object. More...

Defines

#define COMPILER_lkptr
 MOD this when your compiler does compile this correctly.
#define lkptr_h
 Avoid multiple file inclusion.

Functions

template<typename X >
bool check_ok (const base_lkptr< X > &p) throw ()
 Verifies the invariant for class lkptr<X>.
template<typename X >
void swap (lkptr< X > &l, lkptr< X > &r) throw ()
 Swap l <==> r .
template<typename X >
bool check_ok (const lkptr< X > &p) throw ()
template<typename X >
bool operator< (const lkptr< X > &p, const lkptr< X > &q)
  (p == q) ???
template<typename X >
bool operator== (const lkptr< X > &p, const lkptr< X > &q)
  (p == q) ???
template<typename X >
bool operator!= (const lkptr< X > &p, const lkptr< X > &q)
  (p != q) ???
template<typename X >
void swap (array_lkptr< X > &l, array_lkptr< X > &r) throw ()
 Swap l <==> r .
template<typename X >
bool check_ok (const array_lkptr< X > &p) throw ()
template<typename X >
bool operator< (const array_lkptr< X > &p, const array_lkptr< X > &q)
  (p == q) ???
template<typename X >
bool operator== (const array_lkptr< X > &p, const array_lkptr< X > &q)
  (p == q) ???
template<typename X >
bool operator!= (const array_lkptr< X > &p, const array_lkptr< X > &q)
  (p != q) ???

Detailed Description

simple reference LinKed PoinTeR.

See also:
http://www.di-mare.com/adolfo/p/lkptr.htm
Author:
Adolfo Di Mare <adolfo@di-mare.com>
Date:
2007

Definition in file lkptr.h.


Define Documentation

#define COMPILER_lkptr

MOD this when your compiler does compile this correctly.

Definition at line 88 of file lkptr.h.

#define lkptr_h

Avoid multiple file inclusion.

Definition at line 108 of file lkptr.h.


Function Documentation

template<typename X >
bool check_ok ( const base_lkptr< X > &  p) throw () [inline]

Verifies the invariant for class lkptr<X>.

See also:
base_lkptr<X>::ok().

Definition at line 365 of file lkptr.h.

template<typename X >
void swap ( lkptr< X > &  l,
lkptr< X > &  r 
) throw () [inline]

Swap l <==> r .

Definition at line 678 of file lkptr.h.

template<typename X >
bool check_ok ( const lkptr< X > &  p) throw () [inline]

Verifies the invariant for class lkptr<X>.

See also:
base_lkptr<X>::ok().
.

Definition at line 683 of file lkptr.h.

template<typename X >
bool operator< ( const lkptr< X > &  p,
const lkptr< X > &  q 
) [inline]

(p == q) ???

Definition at line 688 of file lkptr.h.

template<typename X >
bool operator== ( const lkptr< X > &  p,
const lkptr< X > &  q 
) [inline]

(p == q) ???

Definition at line 694 of file lkptr.h.

template<typename X >
bool operator!= ( const lkptr< X > &  p,
const lkptr< X > &  q 
) [inline]

(p != q) ???

Definition at line 700 of file lkptr.h.

template<typename X >
void swap ( array_lkptr< X > &  l,
array_lkptr< X > &  r 
) throw () [inline]

Swap l <==> r .

Definition at line 925 of file lkptr.h.

template<typename X >
bool check_ok ( const array_lkptr< X > &  p) throw () [inline]

Verifies the invariant for class lkptr<X>.

See also:
base_lkptr<X>::ok().
.

Definition at line 930 of file lkptr.h.

template<typename X >
bool operator< ( const array_lkptr< X > &  p,
const array_lkptr< X > &  q 
) [inline]

(p == q) ???

Definition at line 935 of file lkptr.h.

template<typename X >
bool operator== ( const array_lkptr< X > &  p,
const array_lkptr< X > &  q 
) [inline]

(p == q) ???

Definition at line 941 of file lkptr.h.

template<typename X >
bool operator!= ( const array_lkptr< X > &  p,
const array_lkptr< X > &  q 
) [inline]

(p != q) ???

Definition at line 947 of file lkptr.h.

 All Classes Namespaces Files Functions Variables Typedefs Friends Defines