PPL Logo

FEM_T_List< T > Class Template Reference
[ParFUM Unstructured Mesh Framework]

Keeps a list of dynamically-allocated T objects, indexed by a user-carried, persistent "int". More...

#include <fem_impl.h>

Inheritance diagram for FEM_T_List< T >:

Inheritance graph
[legend]
Collaboration diagram for FEM_T_List< T >:

Collaboration graph
[legend]

Public Member Functions

 FEM_T_List (int FIRST_DT_)
virtual ~FEM_T_List ()
void pup (PUP::er &p)
virtual void bad (int l, int bad_code, const char *caller) const =0
 This routine is called when we're passed an invalid T index.
int put (T *t)
 Insert a new T (allocated with "new"), returning the user index:.
T * lookup (int l, const char *caller) const
 Get this T given its user index.
void destroy (int l, const char *caller)
 Free this T.
void empty (void)
 Clear all stored T's:.
 FEM_T_List (int FIRST_DT_)
virtual ~FEM_T_List ()
void pup (PUP::er &p)
virtual void bad (int l, int bad_code, const char *caller) const =0
 This routine is called when we're passed an invalid T index.
int put (T *t)
 Insert a new T (allocated with "new"), returning the user index:.
T * lookup (int l, const char *caller) const
 Get this T given its user index.
void destroy (int l, const char *caller)
 Free this T.
void empty (void)
 Clear all stored T's:.

Protected Member Functions

int size (void) const
void check (int l, const char *caller) const
 If this isn't a valid, allocated index, abort.
void badIndex (int l, const char *caller) const
int size (void) const
void check (int l, const char *caller) const
 If this isn't a valid, allocated index, abort.
void badIndex (int l, const char *caller) const

Protected Attributes

int FIRST_DT

Private Attributes

CkPupPtrVec< T > list
CkPupPtrVec< T > list

Detailed Description

template<class T>
class FEM_T_List< T >

Keeps a list of dynamically-allocated T objects, indexed by a user-carried, persistent "int".

Keeps a list of dynamically-allocated T objects, indexed by a user-carried, persistent "int".

Definition at line 132 of file fem_impl.h.


Constructor & Destructor Documentation

template<class T>
FEM_T_List< T >::FEM_T_List ( int  FIRST_DT_  )  [inline]

Definition at line 149 of file fem_impl.h.

template<class T>
virtual FEM_T_List< T >::~FEM_T_List (  )  [inline, virtual]

Definition at line 150 of file fem_impl.h.

template<class T>
FEM_T_List< T >::FEM_T_List ( int  FIRST_DT_  )  [inline]

Definition at line 1666 of file ParFUM_internals.h.

template<class T>
virtual FEM_T_List< T >::~FEM_T_List (  )  [inline, virtual]

Definition at line 1667 of file ParFUM_internals.h.


Member Function Documentation

template<class T>
int FEM_T_List< T >::size ( void   )  const [inline, protected]

Definition at line 136 of file fem_impl.h.

template<class T>
void FEM_T_List< T >::check ( int  l,
const char *  caller 
) const [inline, protected]

If this isn't a valid, allocated index, abort.

Definition at line 139 of file fem_impl.h.

Referenced by FEM_T_List< FEM_Mesh >::destroy(), and FEM_T_List< FEM_Mesh >::lookup().

Here is the caller graph for this function:

template<class T>
void FEM_T_List< T >::badIndex ( int  l,
const char *  caller 
) const [inline, protected]

Definition at line 144 of file fem_impl.h.

Referenced by FEM_T_List< FEM_Mesh >::check().

Here is the caller graph for this function:

template<class T>
void FEM_T_List< T >::pup ( PUP::er p  )  [inline]

Definition at line 151 of file fem_impl.h.

template<class T>
virtual void FEM_T_List< T >::bad ( int  l,
int  bad_code,
const char *  caller 
) const [pure virtual]

This routine is called when we're passed an invalid T index.

Implemented in FEM_Mesh_list, and FEM_Mesh_list.

Referenced by FEM_T_List< FEM_Mesh >::badIndex().

Here is the caller graph for this function:

template<class T>
int FEM_T_List< T >::put ( T *  t  )  [inline]

Insert a new T (allocated with "new"), returning the user index:.

Definition at line 157 of file fem_impl.h.

Referenced by FEM_Mesh_Partition_List::accept(), FEM_master_parallel_part(), FEM_Mesh_allocate(), FEM_Mesh_copy(), and FEM_slave_parallel_part().

Here is the caller graph for this function:

template<class T>
T* FEM_T_List< T >::lookup ( int  l,
const char *  caller 
) const [inline]

Get this T given its user index.

Definition at line 169 of file fem_impl.h.

Referenced by FEM_Mesh_copy(), FEMchunk::getMesh(), FEMchunk::lookup(), and FEMchunk::setMesh().

Here is the caller graph for this function:

template<class T>
void FEM_T_List< T >::destroy ( int  l,
const char *  caller 
) [inline]

Free this T.

Definition at line 175 of file fem_impl.h.

Referenced by FEM_T_List< FEM_Mesh >::empty(), and FORTRAN_AS_C_RETURN().

Here is the caller graph for this function:

template<class T>
void FEM_T_List< T >::empty ( void   )  [inline]

Clear all stored T's:.

Definition at line 181 of file fem_impl.h.

template<class T>
int FEM_T_List< T >::size ( void   )  const [inline, protected]

Definition at line 1653 of file ParFUM_internals.h.

template<class T>
void FEM_T_List< T >::check ( int  l,
const char *  caller 
) const [inline, protected]

If this isn't a valid, allocated index, abort.

Definition at line 1656 of file ParFUM_internals.h.

template<class T>
void FEM_T_List< T >::badIndex ( int  l,
const char *  caller 
) const [inline, protected]

Definition at line 1661 of file ParFUM_internals.h.

template<class T>
void FEM_T_List< T >::pup ( PUP::er p  )  [inline]

Definition at line 1668 of file ParFUM_internals.h.

template<class T>
virtual void FEM_T_List< T >::bad ( int  l,
int  bad_code,
const char *  caller 
) const [pure virtual]

This routine is called when we're passed an invalid T index.

Implemented in FEM_Mesh_list, and FEM_Mesh_list.

template<class T>
int FEM_T_List< T >::put ( T *  t  )  [inline]

Insert a new T (allocated with "new"), returning the user index:.

Definition at line 1674 of file ParFUM_internals.h.

template<class T>
T* FEM_T_List< T >::lookup ( int  l,
const char *  caller 
) const [inline]

Get this T given its user index.

Definition at line 1686 of file ParFUM_internals.h.

template<class T>
void FEM_T_List< T >::destroy ( int  l,
const char *  caller 
) [inline]

Free this T.

Definition at line 1692 of file ParFUM_internals.h.

template<class T>
void FEM_T_List< T >::empty ( void   )  [inline]

Clear all stored T's:.

Definition at line 1698 of file ParFUM_internals.h.


Field Documentation

template<class T>
CkPupPtrVec<T> FEM_T_List< T >::list [private]

template<class T>
int FEM_T_List< T >::FIRST_DT [protected]

template<class T>
CkPupPtrVec<T> FEM_T_List< T >::list [private]

Definition at line 1650 of file ParFUM_internals.h.


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

Generated on Mon Sep 21 08:24:53 2020 for Charm++ by  doxygen 1.5.5