5 #ifndef GEOMODELKERNEL_PATH_H 6 #define GEOMODELKERNEL_PATH_H 31 void push (
const T *node);
34 unsigned int getLength ()
const;
37 const T * getItem (
unsigned int i)
const;
40 const T * getHead ()
const;
43 const T * getTail ()
const;
48 std::vector<const T *> m_nodeList;
55 m_nodeList.reserve(2);
60 : m_nodeList(right.m_nodeList)
74 m_nodeList = right.m_nodeList;
82 if (m_nodeList.size () == 0)
88 const T *gvp = m_nodeList.back ();
89 m_nodeList.pop_back ();
97 m_nodeList.push_back (node);
103 return m_nodeList.size ();
109 if (m_nodeList.size () == 0)
115 return m_nodeList[i];
122 if (m_nodeList.size () == 0)
128 return m_nodeList.front ();
135 if (m_nodeList.size () == 0)
141 return m_nodeList.back ();
Represents a path from one point in the general tree, to the present point.