Lines Matching refs:Reference
41 // managers that reference it.
55 // Convenience method that gets the object for a given reference so callers
58 T* GetAsObject(PersistentMemoryAllocator::Reference ref, uint32_t type_id) {
102 // than all instances of this class that reference it, which is not usually
117 // Gets the next reference to a persistent sample-map record. The type and
120 PersistentMemoryAllocator::Reference GetNext();
123 // a reference to it.
124 PersistentMemoryAllocator::Reference CreateNew(HistogramBase::Sample value);
126 // Convenience method that gets the object for a given reference so callers
133 T* GetAsObject(PersistentMemoryAllocator::Reference ref, uint32_t type_id) {
159 std::vector<PersistentMemoryAllocator::Reference> records_;
164 std::vector<PersistentMemoryAllocator::Reference> found_;
173 // A reference to a histogram. While this is implemented as PMA::Reference,
175 // a Reference matching the class it is for and not mix the two.
176 using Reference = PersistentMemoryAllocator::Reference;
193 // reference in the process. Pass |ignore| of zero (0) to ignore nothing.
194 std::unique_ptr<HistogramBase> GetNextWithIgnore(Reference ignore);
234 std::unique_ptr<HistogramBase> GetHistogram(Reference ref);
245 Reference* ref_ptr);
250 void FinalizeHistogram(Reference ref, bool registered);
285 // Clears the internal |last_created_| reference so testing can validate
297 // Gets the reference of the last histogram created, used to avoid
299 PersistentHistogramAllocator::Reference last_created() {
304 // ignoring a particular reference if it is found.
306 Reference ignore);
364 // A reference to the last-created histogram in the allocator, used to avoid
366 // TODO(bcwhite): Change this to std::atomic<PMA::Reference> when available.