From d70efb45731afbb5aff6195a58c932d1b89a1e82 Mon Sep 17 00:00:00 2001 From: ganovelli Date: Mon, 23 Jun 2008 16:30:17 +0000 Subject: [PATCH] added. Derivation_chain.h contains the inheritance mechanism used to define the (vertex and face) component --- vcg/container/derivation_chain.h | 107 +++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 vcg/container/derivation_chain.h diff --git a/vcg/container/derivation_chain.h b/vcg/container/derivation_chain.h new file mode 100644 index 00000000..3697a4da --- /dev/null +++ b/vcg/container/derivation_chain.h @@ -0,0 +1,107 @@ +/**************************************************************************** +* VCGLib o o * +* Visual and Computer Graphics Library o o * +* _ O _ * +* Copyright(C) 2004 \/)\/ * +* Visual Computing Lab /\/| * +* ISTI - Italian National Research Council | * +* \ * +* All rights reserved. * +* * +* This program is free software; you can redistribute it and/or modify * +* it under the terms of the GNU General Public License as published by * +* the Free Software Foundation; either version 2 of the License, or * +* (at your option) any later version. * +* * +* This program is distributed in the hope that it will be useful, * +* but WITHOUT ANY WARRANTY; without even the implied warranty of * +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +* GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * +* for more details. * +* * +****************************************************************************/ + +#ifndef __VCG_DERIVATION_CHAIN +#define __VCG_DERIVATION_CHAIN + +namespace vcg{ +/*------------------------------------------------------------------*/ + +// Metaprogramming Core +template