Teuchos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
Teuchos::SimpleObjectTable< T > Class Template Reference

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

#include <Teuchos_SimpleObjectTable.hpp>

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 60 of file Teuchos_SimpleObjectTable.hpp.

Constructor & Destructor Documentation

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

Definition at line 90 of file Teuchos_SimpleObjectTable.hpp.

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

Definition at line 96 of file Teuchos_SimpleObjectTable.hpp.

Member Function Documentation

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

Definition at line 102 of file Teuchos_SimpleObjectTable.hpp.

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

Definition at line 121 of file Teuchos_SimpleObjectTable.hpp.

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

Definition at line 128 of file Teuchos_SimpleObjectTable.hpp.

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

Definition at line 134 of file Teuchos_SimpleObjectTable.hpp.

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

Definition at line 150 of file Teuchos_SimpleObjectTable.hpp.

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

Definition at line 160 of file Teuchos_SimpleObjectTable.hpp.

Member Data Documentation

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

Definition at line 83 of file Teuchos_SimpleObjectTable.hpp.

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

Definition at line 85 of file Teuchos_SimpleObjectTable.hpp.


The documentation for this class was generated from the following file: