Include header cleaning and reordering.
This commit is contained in:
parent
51424a7896
commit
bc218b8201
|
@ -22,8 +22,7 @@
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#ifndef __VCG_EXCEPTION_H
|
#ifndef __VCG_EXCEPTION_H
|
||||||
#define __VCG_EXCEPTION_H
|
#define __VCG_EXCEPTION_H
|
||||||
#include <iostream>
|
|
||||||
#include <stdexcept>
|
|
||||||
namespace vcg
|
namespace vcg
|
||||||
{
|
{
|
||||||
class MissingComponentException : public std::runtime_error
|
class MissingComponentException : public std::runtime_error
|
||||||
|
|
|
@ -32,57 +32,57 @@ struct _Face ;
|
||||||
struct _HEdge ;
|
struct _HEdge ;
|
||||||
|
|
||||||
struct DummyTypes{
|
struct DummyTypes{
|
||||||
typedef _Vertex VertexType; // simplex types
|
typedef _Vertex VertexType; // simplex types
|
||||||
typedef _Edge EdgeType;
|
typedef _Edge EdgeType;
|
||||||
typedef _Face FaceType;
|
typedef _Face FaceType;
|
||||||
typedef char TetraType;
|
typedef char TetraType;
|
||||||
typedef _HEdge HEdgeType; // connector types
|
typedef _HEdge HEdgeType; // connector types
|
||||||
|
|
||||||
typedef vcg::Point3<bool> CoordType;
|
typedef vcg::Point3<bool> CoordType;
|
||||||
typedef char ScalarType;
|
typedef char ScalarType;
|
||||||
|
|
||||||
typedef VertexType * VertexPointer;
|
typedef VertexType * VertexPointer;
|
||||||
typedef EdgeType * EdgePointer ;
|
typedef EdgeType * EdgePointer ;
|
||||||
typedef FaceType * FacePointer ;
|
typedef FaceType * FacePointer ;
|
||||||
typedef TetraType * TetraPointer ;
|
typedef TetraType * TetraPointer ;
|
||||||
typedef HEdgeType * HEdgePointer ;
|
typedef HEdgeType * HEdgePointer ;
|
||||||
|
|
||||||
static void Name(std::vector<std::string> & /*name*/){}
|
static void Name(std::vector<std::string> & /*name*/){}
|
||||||
template < class LeftV>
|
template < class LeftV>
|
||||||
void ImportData(const LeftV & /*left*/ ) {}
|
void ImportData(const LeftV & /*left*/ ) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class A>
|
template <class A>
|
||||||
struct Use{
|
struct Use{
|
||||||
template <class T> struct AsVertexType: public T{typedef A VertexType; typedef VertexType * VertexPointer ;};
|
template <class T> struct AsVertexType: public T{typedef A VertexType; typedef VertexType * VertexPointer ;};
|
||||||
template <class T> struct AsEdgeType: public T{typedef A EdgeType; typedef EdgeType * EdgePointer ;};
|
template <class T> struct AsEdgeType: public T{typedef A EdgeType; typedef EdgeType * EdgePointer ;};
|
||||||
template <class T> struct AsFaceType: public T{typedef A FaceType; typedef FaceType * FacePointer ;};
|
template <class T> struct AsFaceType: public T{typedef A FaceType; typedef FaceType * FacePointer ;};
|
||||||
template <class T> struct AsTetraType: public T{typedef A TetraType; typedef TetraType * TetraPointer ;};
|
template <class T> struct AsTetraType: public T{typedef A TetraType; typedef TetraType * TetraPointer ;};
|
||||||
template <class T> struct AsHEdgeType: public T{typedef A HEdgeType; typedef HEdgeType * HEdgePointer ;};
|
template <class T> struct AsHEdgeType: public T{typedef A HEdgeType; typedef HEdgeType * HEdgePointer ;};
|
||||||
};
|
};
|
||||||
|
|
||||||
template <template <typename> class A = DefaultDeriver, template <typename> class B = DefaultDeriver,
|
template <template <typename> class A = DefaultDeriver, template <typename> class B = DefaultDeriver,
|
||||||
template <typename> class C = DefaultDeriver, template <typename> class D = DefaultDeriver,
|
template <typename> class C = DefaultDeriver, template <typename> class D = DefaultDeriver,
|
||||||
template <typename> class E = DefaultDeriver, template <typename> class F = DefaultDeriver,
|
template <typename> class E = DefaultDeriver, template <typename> class F = DefaultDeriver,
|
||||||
template <typename> class G = DefaultDeriver, template <typename> class H = DefaultDeriver >
|
template <typename> class G = DefaultDeriver, template <typename> class H = DefaultDeriver >
|
||||||
class UsedTypes: public Arity12<DummyTypes,
|
class UsedTypes: public Arity12<DummyTypes,
|
||||||
Use< Vertex <UsedTypes< A, B, C, D , E, F, G, H > > > :: template AsVertexType,
|
Use< Vertex <UsedTypes< A, B, C, D , E, F, G, H > > > :: template AsVertexType,
|
||||||
Use< Edge <UsedTypes< A, B, C, D , E, F, G, H > > > :: template AsEdgeType,
|
Use< Edge <UsedTypes< A, B, C, D , E, F, G, H > > > :: template AsEdgeType,
|
||||||
Use< Face <UsedTypes< A, B, C, D , E, F, G, H > > > :: template AsFaceType,
|
Use< Face <UsedTypes< A, B, C, D , E, F, G, H > > > :: template AsFaceType,
|
||||||
Use< HEdge <UsedTypes< A, B, C, D , E, F, G, H > > > :: template AsHEdgeType,
|
Use< HEdge <UsedTypes< A, B, C, D , E, F, G, H > > > :: template AsHEdgeType,
|
||||||
A, B, C, D, E, F, G, H
|
A, B, C, D, E, F, G, H
|
||||||
> {
|
> {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
struct _UsedTypes: public UsedTypes<
|
struct _UsedTypes: public UsedTypes<
|
||||||
Use<_Vertex>::AsVertexType,
|
Use<_Vertex>::AsVertexType,
|
||||||
Use<_Edge >::AsEdgeType,
|
Use<_Edge >::AsEdgeType,
|
||||||
Use<_Face >::AsFaceType,
|
Use<_Face >::AsFaceType,
|
||||||
Use<_HEdge >::AsHEdgeType
|
Use<_HEdge >::AsHEdgeType
|
||||||
>{};
|
>{};
|
||||||
|
|
||||||
struct _Vertex: public Vertex<_UsedTypes>{};
|
struct _Vertex: public Vertex<_UsedTypes>{};
|
||||||
|
|
Loading…
Reference in New Issue