7 #ifndef __IPREFERENCED_HPP__ 8 #define __IPREFERENCED_HPP__ 15 #if IPOPT_CHECKLEVEL > 3 16 #define IP_DEBUG_REFERENCED 173 : reference_count_(0)
181 inline Index ReferenceCount()
const;
196 # ifdef IP_DEBUG_REFERENCED 197 mutable std::list<const Referencer*> referencers_;
218 # ifdef IP_DEBUG_REFERENCED 219 referencers_.push_back(referencer);
235 # ifdef IP_DEBUG_REFERENCED 238 std::list<const Referencer*>::iterator iter;
239 for (iter = referencers_.begin(); iter != referencers_.end(); iter++)
241 if ((*iter) == referencer)
253 referencers_.erase(iter);
void AddRef(const Referencer *referencer) const
void ReleaseRef(const Referencer *referencer) const
virtual ~ReferencedObject()
This file contains a base class for all exceptions and a set of macros to help with exceptions...
Storing the reference count of all the smart pointers that currently reference it.
Pseudo-class, from which everything has to inherit that wants to use be registered as a Referencer fo...
int Index
Type of all indices of vectors, matrices etc.
Index ReferenceCount() const