Lines Matching defs:idx
103 /// starting \a idx entries into the file spec list.
105 /// \param[in] idx
117 size_t FindFileIndex(size_t idx, const FileSpec &file, bool full) const;
121 /// Gets a file from the file list. If \a idx is not a valid index, an empty
125 /// \param[in] idx
129 /// A copy of the FileSpec object at index \a idx. If \a idx
132 const FileSpec &GetFileSpecAtIndex(size_t idx) const;
139 /// \param[in] idx
143 /// A pointer to a contained FileSpec object at index \a idx.
144 /// If \a idx is out of range, then an NULL is returned.
145 const FileSpec *GetFileSpecPointerAtIndex(size_t idx) const;
167 bool Insert(size_t idx, const FileSpec &file) {
168 if (idx < m_files.size()) {
169 m_files.insert(m_files.begin() + idx, file);
171 } else if (idx == m_files.size()) {
178 bool Replace(size_t idx, const FileSpec &file) {
179 if (idx < m_files.size()) {
180 m_files[idx] = file;
186 bool Remove(size_t idx) {
187 if (idx < m_files.size()) {
188 m_files.erase(m_files.begin() + idx);