00001 // Graph/Tree data implementation -*- C++ -*- 00002 00003 // Copyright (C) 2001-2003 Hermann Schichl 00004 // 00005 // This file is part of the Vienna Graph Template Library. This library 00006 // is free software; you can redistribute it and/or modify it under the 00007 // terms of the Library GNU General Public License as published by the 00008 // Free Software Foundation; either version 2, or (at your option) 00009 // any later version. 00010 00011 // This library is distributed in the hope that it will be useful, 00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 // Library GNU General Public License for more details. 00015 00016 // As a special exception, you may use this file as part of a free software 00017 // library without restriction. Specifically, if other files instantiate 00018 // templates or use macros or inline functions from this file, or you compile 00019 // this file and link it with other files to produce an executable, this 00020 // file does not by itself cause the resulting executable to be covered by 00021 // the Library GNU General Public License. This exception does not however 00022 // invalidate any other reasons why the executable file might be covered by 00023 // the Library GNU General Public License. 00024 00030 #ifndef __VGTL_GDATA_H_ 00031 #define __VGTL_GDATA_H_ 00032 00033 __VGTL_BEGIN_NAMESPACE 00034 00039 typedef union _Tree_data_hook 00040 { 00041 void * p; 00042 bool b; 00043 float f; 00044 double d; 00045 int n; 00046 long l; 00047 char c; 00048 unsigned int u; 00049 unsigned char uc; 00050 unsigned long ul; 00051 } ctree_data_hook; 00052 00053 __VGTL_END_NAMESPACE 00054 00055 #endif // __VGTL_GDATA_H_