/*! \file node.cpp
** \brief Template File
**
-** $Id: node.cpp,v 1.5 2005/01/07 03:29:12 darco Exp $
+** $Id$
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
/* === M E T H O D S ======================================================= */
+#ifdef _DEBUG
+const char *
+TimePoint::c_str()const
+{
+ return get_time().get_string().c_str();
+}
+#endif
+
void
TimePoint::absorb(const TimePoint& x)
{
if(get_guid()==x.get_guid())
return;
set_guid(get_guid()^x.get_guid());
-
+
if(get_after()==INTERPOLATION_NIL)
set_after(x.get_after());
if(get_before()==INTERPOLATION_NIL)
set_before(x.get_before());
-
+
if(get_after()!=x.get_after() && x.get_after()!=INTERPOLATION_NIL)
set_after(INTERPOLATION_UNDEFINED);
if(get_before()!=x.get_before() && x.get_before()!=INTERPOLATION_NIL)
- set_before(INTERPOLATION_UNDEFINED);
+ set_before(INTERPOLATION_UNDEFINED);
}
TimePointSet::iterator
guid_.make_unique();
assert(guid_);
assert(!global_node_map().count(guid_));
- global_node_map()[guid_]=this;
+ global_node_map()[guid_]=this;
#endif
}
const_cast<GUID&>(guid_).make_unique();
assert(guid_);
assert(!global_node_map().count(guid_));
- global_node_map()[guid_]=const_cast<Node*>(this);
+ global_node_map()[guid_]=const_cast<Node*>(this);
}
#endif
-
+
return guid_;
}
{
guid_=x;
assert(!global_node_map().count(guid_));
- global_node_map()[guid_]=this;
+ global_node_map()[guid_]=this;
}
else
#endif
get_times_vfunc(times);
bchanged = false;
}
-
+
//set the output set...
return times;
}