Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

CheckedPtr.hh File Reference


Detailed Description

Class template definition file.

Copyright:

Copyright (C) 2002 Oliver Schoenborn

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

You can redistribute it and/or modify it under the terms found in the LICENSE file that is included in the library distribution.

Definition in file CheckedPtr.hh.#include <assert.h>
#include "nullness.hh"

Include dependency graph for CheckedPtr.hh:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  MangoPtr

Functions

template<typename T> bool isNull (const MangoPtr::CheckedPtr< T > &p)
 Test if a pointer (held by a CheckedPtr proxy) is null.

template<typename T> bool isNotNull (const MangoPtr::CheckedPtr< T > &p)
 Test if a pointer (held by a CheckedPtr proxy) is not null.


Function Documentation

template<typename T>
bool isNull const MangoPtr::CheckedPtr< T > &    p [inline]
 

Test if a pointer (held by a CheckedPtr proxy) is null.

Use this instead of comparing to NULL.

Returns:
true if pointer == 0.

Definition at line 114 of file CheckedPtr.hh.

References isNotNull().

template<typename T>
bool isNotNull const MangoPtr::CheckedPtr< T > &    p [inline]
 

Test if a pointer (held by a CheckedPtr proxy) is not null.

Use this instead of comparing to NULL.

Returns:
true if pointer != 0.

Definition at line 122 of file CheckedPtr.hh.

Referenced by isNull().


Generated on Tue Nov 12 20:43:57 2002 for Mango-ptr Library by doxygen1.2.18