Go to the documentation of this file.00001 #ifndef OPENTISSUE_CORE_CONTAINERS_T4MESH_T4MESH_CORE_ACCESS_H
00002 #define OPENTISSUE_CORE_CONTAINERS_T4MESH_T4MESH_CORE_ACCESS_H
00003
00004
00005
00006
00007
00008
00009
00010 #include <OpenTissue/configuration.h>
00011
00012 namespace OpenTissue
00013 {
00014 namespace t4mesh
00015 {
00016 class t4mesh_core_access
00017 {
00018 public:
00019
00020 template< typename feature_type, typename index_type>
00021 static void set_index(feature_type & f, index_type idx)
00022 {
00023 f.set_index(idx);
00024 }
00025
00026 template< typename feature_type, typename mesh_type>
00027 static void set_owner(feature_type & f, mesh_type * owner)
00028 {
00029 f.set_owner(owner);
00030 }
00031
00032 template< typename tetrahedron_type, typename index_type>
00033 static void set_node0(tetrahedron_type & tetrahedron, index_type idx)
00034 {
00035 tetrahedron.set_node0(idx);
00036 }
00037
00038 template< typename tetrahedron_type, typename index_type>
00039 static void set_node1(tetrahedron_type & tetrahedron, index_type idx)
00040 {
00041 tetrahedron.set_node1(idx);
00042 }
00043
00044 template< typename tetrahedron_type, typename index_type>
00045 static void set_node2(tetrahedron_type & tetrahedron, index_type idx)
00046 {
00047 tetrahedron.set_node2(idx);
00048 }
00049
00050 template< typename tetrahedron_type, typename index_type>
00051 static void set_node3(tetrahedron_type & tetrahedron, index_type idx)
00052 {
00053 tetrahedron.set_node3(idx);
00054 }
00055
00056 template< typename node_type, typename index_type>
00057 static void tetrahedra_push_back(node_type & node, index_type idx)
00058 {
00059 node.tetrahedra_push_back(idx);
00060 }
00061
00062 template< typename node_type, typename index_type>
00063 static void tetrahedra_remove(node_type & node, index_type idx)
00064 {
00065 node.tetrahedra_remove(idx);
00066 }
00067
00068 };
00069
00070 }
00071 }
00072
00073
00074 #endif