17#ifndef __dwi_tractography_connectome_mapped_track_h__
18#define __dwi_tractography_connectome_mapped_track_h__
25 namespace Tractography {
26 namespace Connectome {
39 void set_track_index (
const size_t i) { track_index = i; }
40 void set_factor (
const float i) { factor = i; }
41 void set_weight (
const float i) { weight = i; }
43 size_t get_track_index()
const {
return track_index; }
44 float get_factor()
const {
return factor; }
45 float get_weight()
const {
return weight; }
59 nodes (std::make_pair (0, 0)) { }
61 void set_first_node (
const node_t i) { nodes.first = i; }
62 void set_second_node (
const node_t i) { nodes.second = i; }
63 void set_nodes (
const NodePair i) { nodes = i; }
65 node_t get_first_node()
const {
return nodes.first; }
66 node_t get_second_node()
const {
return nodes.second; }
67 const NodePair& get_nodes()
const {
return nodes; }
83 void add_node (
const node_t i) { nodes.push_back (i); }
std::enable_if< std::is_fundamental< ValueType >::value &&sizeof(ValueType)==1, ValueType >::type swap(ValueType v)
std::pair< node_t, node_t > NodePair
MR::Connectome::node_t node_t