Lines Matching refs:index

372      * Set the subfield name for the given index, and marks this stat to print
374 * @param index The subfield index.
379 subname(off_type index, const std::string &name)
385 if (subn.size() <= index)
386 subn.resize(index + 1);
387 subn[index] = name;
396 * Set the subfield description for the given index and marks this stat to
398 * @param index The subfield index.
403 subdesc(off_type index, const std::string &desc)
408 if (subd.size() <= index)
409 subd.resize(index + 1);
410 subd[index] = desc;
466 ysubname(off_type index, const std::string &subname)
471 assert(index < self.y);
473 info->y_subnames[index] = subname.c_str();
670 * @param index The vector index to access.
671 * @return The storage object at the given index.
681 * for the given index.
682 * @param index The vector index to access.
683 * @return A const pointer to the storage object at the given index.
899 * A proxy class to access the stat at a given index in a VectorBase stat.
909 /** The index to access in the parent VectorBase. */
910 off_type index;
917 Counter value() const { return stat.data(index)->value(); }
923 Result result() const { return stat.data(index)->result(); }
928 * @param i The index to access.
931 : stat(s), index(i)
940 : stat(sp.stat), index(sp.index)
952 index = sp.index;
962 void operator++() { stat.data(index)->inc(1); }
967 void operator--() { stat.data(index)->dec(1); }
983 stat.data(index)->set(v);
995 stat.data(index)->inc(v);
1007 stat.data(index)->dec(v);
1020 return csprintf("%s[%d]", stat.info()->name, index);
1048 * @param index The vector index to access.
1049 * @return The storage object at the given index.
1051 Storage *data(off_type index) { return &storage[index]; }
1055 * @param index The vector index to access.
1056 * @return A const pointer to the storage object at the given index.
1058 const Storage *data(off_type index) const { return &storage[index]; }
1160 * Return a reference (ScalarProxy) to the stat at the given index.
1161 * @param index The vector index to access.
1165 operator[](off_type index)
1167 assert (index >= 0 && index < size());
1168 return Proxy(this->self(), index);
1184 data(off_type index)
1186 assert(index < len);
1187 return stat.data(offset + index);
1191 data(off_type index) const
1193 assert(index < len);
1194 return stat.data(offset + index);
1239 operator[](off_type index)
1241 assert (index >= 0 && index < size());
1242 return ScalarProxy<Stat>(stat, offset + index);
1268 Storage *data(off_type index) { return &storage[index]; }
1269 const Storage *data(off_type index) const { return &storage[index]; }
1314 operator[](off_type index)
1316 off_type offset = index * y;
1317 assert (index >= 0 && offset + y <= size());
1459 size_type index =
1461 assert(index < size());
1462 cvec[index] += number;
1614 size_type index =
1617 assert(index < size());
1618 cvec[index] += number;
1957 data(off_type index)
1959 return &storage[index];
1963 data(off_type index) const
1965 return &storage[index];
2001 Proxy operator[](off_type index)
2003 assert(index >= 0 && index < size());
2004 return Proxy(this->self(), index);
2044 off_type index;
2047 typename Stat::Storage *data() { return stat.data(index); }
2048 const typename Stat::Storage *data() const { return stat.data(index); }
2052 : stat(s), index(i)
2056 : stat(sp.stat), index(sp.index)
2063 index = sp.index;