Home | History | Annotate | Download | only in ADT

Lines Matching defs:Vector

15 #include <vector>
21 /// unique entry that is added. T is the type of entries in the vector. This
26 typedef typename std::vector<T> VectorType;
34 // Vector - ID ordered vector of entries. Entries can be indexed by ID - 1.
36 VectorType Vector;
39 /// insert - Append entry to the vector if it doesn't already exist. Returns
49 Val = static_cast<unsigned>(Vector.size()) + 1;
51 // Insert in vector.
52 Vector.push_back(Entry);
73 return Vector[ID - 1];
76 /// \brief Return an iterator to the start of the vector.
77 iterator begin() { return Vector.begin(); }
79 /// \brief Return an iterator to the start of the vector.
80 const_iterator begin() const { return Vector.begin(); }
82 /// \brief Return an iterator to the end of the vector.
83 iterator end() { return Vector.end(); }
85 /// \brief Return an iterator to the end of the vector.
86 const_iterator end() const { return Vector.end(); }
88 /// size - Returns the number of entries in the vector.
90 size_t size() const { return Vector.size(); }
92 /// empty - Returns true if the vector is empty.
94 bool empty() const { return Vector.empty(); }
100 Vector.resize(0, 0);