Teuchos Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
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< TgetRCP (int index)
 
void purge ()
 

Private Attributes

Array< RCP< T > > tableOfObjects
 
Array< intfreedIndices
 

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

◆ SimpleObjectTable()

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

Definition at line 90 of file Teuchos_SimpleObjectTable.hpp.

◆ ~SimpleObjectTable()

Definition at line 96 of file Teuchos_SimpleObjectTable.hpp.

Member Function Documentation

◆ storeRCP()

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

Definition at line 102 of file Teuchos_SimpleObjectTable.hpp.

◆ storeNew()

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

Definition at line 121 of file Teuchos_SimpleObjectTable.hpp.

◆ storeCastedRCP()

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.

◆ removeRCP()

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

Definition at line 134 of file Teuchos_SimpleObjectTable.hpp.

◆ getRCP()

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

Definition at line 150 of file Teuchos_SimpleObjectTable.hpp.

◆ purge()

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

Definition at line 160 of file Teuchos_SimpleObjectTable.hpp.

Member Data Documentation

◆ tableOfObjects

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

Definition at line 83 of file Teuchos_SimpleObjectTable.hpp.

◆ freedIndices

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: