45#ifndef TEUCHOS_SIMPLEOBJECTTABLE_HPP
46#define TEUCHOS_SIMPLEOBJECTTABLE_HPP
70 int storeNew(T* obj,
bool owned =
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++) {
Templated array class derived from the STL std::vector.
Reference-counted pointer class and non-member templated function implementations.
Replacement for std::vector that is compatible with the Teuchos Memory Management classes.
Smart reference counting pointer class for automatic garbage collection.
RCP< T2 > rcp_dynamic_cast(const RCP< T1 > &p1, bool throw_on_fail=false)
Dynamic cast of underlying RCP type from T1* to T2*.
const RCP< T > & assert_not_null() const
Throws NullReferenceError if this->get()==NULL, otherwise returns reference to *this.
Range error exception class.
const RCP< T > getRCP(int index)
Array< RCP< T > > tableOfObjects
int removeRCP(int &index)
Array< int > freedIndices
int storeRCP(const RCP< T > &robj)
int storeNew(T *obj, bool owned=true)
int storeCastedRCP(const RCP< TOld > &robj_old)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.