Teuchos Package Browser (Single Doxygen Collection) Version of the Day
Public Member Functions | Private Attributes
Teuchos::SimpleObjectTable< T > Class Template Reference

This class provides a central place to store objects. More...

#include <Teuchos_SimpleObjectTable.hpp>

List of all members.

Public Member Functions

 SimpleObjectTable ()
 ~SimpleObjectTable ()
int storeRCP (const RCP< T > &robj)
int storeNew (T *obj, bool owned=true)
template<class TOld >
int storeCastedRCP (const RCP< TOld > &robj_old)
int removeRCP (int &index)
const RCP< T > getRCP (int index)
void purge ()

Private Attributes

Array< RCP< T > > tableOfObjects
Array< int > freedIndices

Detailed Description

template<class T>
class Teuchos::SimpleObjectTable< T >

This class provides a central place to store objects.

Definition at line 47 of file Teuchos_SimpleObjectTable.hpp.


Constructor & Destructor Documentation

template<class T >
Teuchos::SimpleObjectTable< T >::SimpleObjectTable ( )

Definition at line 77 of file Teuchos_SimpleObjectTable.hpp.

template<class T >
Teuchos::SimpleObjectTable< T >::~SimpleObjectTable ( )

Definition at line 83 of file Teuchos_SimpleObjectTable.hpp.


Member Function Documentation

template<class T >
int Teuchos::SimpleObjectTable< T >::storeRCP ( const RCP< T > &  robj)

Definition at line 89 of file Teuchos_SimpleObjectTable.hpp.

template<class T >
int Teuchos::SimpleObjectTable< T >::storeNew ( T *  obj,
bool  owned = true 
)

Definition at line 108 of file Teuchos_SimpleObjectTable.hpp.

template<class T >
template<class TOld >
int Teuchos::SimpleObjectTable< T >::storeCastedRCP ( const RCP< TOld > &  robj_old)

Definition at line 115 of file Teuchos_SimpleObjectTable.hpp.

template<class T >
int Teuchos::SimpleObjectTable< T >::removeRCP ( int &  index)

Definition at line 121 of file Teuchos_SimpleObjectTable.hpp.

template<class T >
const RCP< T > Teuchos::SimpleObjectTable< T >::getRCP ( int  index)

Definition at line 137 of file Teuchos_SimpleObjectTable.hpp.

template<class T >
void Teuchos::SimpleObjectTable< T >::purge ( )

Definition at line 147 of file Teuchos_SimpleObjectTable.hpp.


Member Data Documentation

template<class T >
Array< RCP<T> > Teuchos::SimpleObjectTable< T >::tableOfObjects [private]

Definition at line 70 of file Teuchos_SimpleObjectTable.hpp.

template<class T >
Array< int > Teuchos::SimpleObjectTable< T >::freedIndices [private]

Definition at line 72 of file Teuchos_SimpleObjectTable.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines