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

MangoPtrNamespaceAlias.hh File Reference


Detailed Description

Namespace alias file.

The default alias is Ptr. This file is included in the Mango-ptr library files so that you can easily use this shorter name for the MangoPtr 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) 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 MangoPtrNamespaceAlias.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 MANGO_NO_ALIAS
 Define MANGO_NO_ALIAS at compile time if you don't want an alias for the MangoPtr namespace in the code being compiled.

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

#define MANGO_ALIAS_NAME   Ptr
 Define MANGO_ALIAS_NAME at compile time to be the alias name to use instead of Ptr.


Define Documentation

#define MANGO_NO_ALIAS
 

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

E.g., g++ -g -c -DMANGO_NO_ALIAS yourSource.cc does not define any alias for the MangoPtr 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 Mango-ptr class with the MangoPtr::.

Definition at line 37 of file MangoPtrNamespaceAlias.hh.

#define MANGO_ALIAS_NAME   Ptr
 

Define MANGO_ALIAS_NAME at compile time to be the alias name to use instead of Ptr.

E.g., g++ -g -c -DMANGO_ALIAS_NAME=MyPtr yourSource.cc to define the MangoPtr namespace alias to be MyPtr instead of Ptr.

Definition at line 53 of file MangoPtrNamespaceAlias.hh.


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