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

NoPtrAlias.hh File Reference


Detailed Description

Namespace alias file.

The default alias is "nop". This file is included in the NoPtr library files so that you can easily use this shorter name for the NoPtr namespace. It also provides two pre-processor variables (see below) so you can override the default alias with your own alias (in case the default alias provided clashes with one of yours), or you can outright disable the alias so that no alias is defined.

Copyright:

Copyright (C) 2003 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 NoPtrAlias.hh.

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

Included by dependency graph

Go to the source code of this file.

Defines

#define NO_PTR_NO_ALIAS
 Define NO_PTR_NO_ALIAS at compile time if you don't want an alias for the NoPtr namespace in the code being compiled.

#define NO_PTR_ALIAS_DEFINITION
 Leave this one alone. It just makes sure that alias is only defined once even if file included multiple times.

#define NO_PTR_ALIAS_NAME   nop
 Define NO_PTR_ALIAS_NAME at compile time to be the alias name to use instead of nop.


Define Documentation

#define NO_PTR_NO_ALIAS
 

Define NO_PTR_NO_ALIAS at compile time if you don't want an alias for the NoPtr namespace in the code being compiled.

E.g., g++ -g -c -DNO_PTR_NO_ALIAS yourSource.cc does not define any alias for the NoPtr namespace for yourSource.cc, so in that file you have to use a "using" directive or declaration, or define an alias in that file or prefix every use of NoPtr classes with the NoPtr::.

Definition at line 37 of file NoPtrAlias.hh.

#define NO_PTR_ALIAS_NAME   nop
 

Define NO_PTR_ALIAS_NAME at compile time to be the alias name to use instead of nop.

E.g., g++ -g -c -DNO_PTR_ALIAS_NAME=MyNA yourSource.cc to define the NoPtr namespace alias to be MyNA instead of nop.

Definition at line 53 of file NoPtrAlias.hh.


Generated on Mon Aug 4 18:51:27 2003 for NoPtr C++ Library by doxygen 1.3.2