45 #ifndef TEUCHOS_SIMPLEOBJECTTABLE_HPP 46 #define TEUCHOS_SIMPLEOBJECTTABLE_HPP 70 int storeNew(T* obj,
bool owned =
true);
127 template <
class TOld>
130 return storeRCP(rcp_dynamic_cast<T>(robj_old,
true));
137 throw RangeError(
"Item has already been deleted from SimpleObjectTable.");
153 throw RangeError(
"Item has already been deleted from SimpleObjectTable.");
163 for (
int i=0; i<ocnt; i++) {
Array< int > freedIndices
This class provides a central place to store objects.
iterator erase(iterator position)
const RCP< T > getRCP(int index)
int storeNew(T *obj, bool owned=true)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.
int storeCastedRCP(const RCP< TOld > &robj_old)
int storeRCP(const RCP< T > &robj)
const RCP< T > & assert_not_null() const
Throws NullReferenceError if this->get()==NULL, otherwise returns reference to *this.
Templated array class derived from the STL std::vector.
void push_back(const value_type &x)
int removeRCP(int &index)
Smart reference counting pointer class for automatic garbage collection.
Array< RCP< T > > tableOfObjects
Range error exception class.
Reference-counted pointer class and non-member templated function implementations.
Memory-safe templated array class that encapsulates std::vector.