Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHPointerList< T > Class Template Reference

#include <coresoftware/blob/master/offline/framework/phool/PHPointerList.h>

+ Collaboration diagram for PHPointerList< T >:

Public Member Functions

 PHPointerList (size_t=2)
 
 PHPointerList (const PHPointerList< T > &)
 
PHPointerList< T > & operator= (const PHPointerList< T > &)
 
virtual ~PHPointerList ()
 
Toperator[] (size_t) const
 
void clear ()
 
void clearAndDestroy ()
 
size_t length () const
 
TremoveLast ()
 
TremoveAt (size_t)
 
bool append (T *)
 
bool insertAt (T *, size_t)
 

Private Member Functions

bool grow (size_t=0)
 

Private Attributes

T ** items
 
size_t maxNItems
 
size_t nItems
 

Detailed Description

template<class T>
class PHPointerList< T >

Definition at line 30 of file PHPointerList.h.

View newest version in sPHENIX GitHub at line 30 of file PHPointerList.h

Constructor & Destructor Documentation

template<class T >
PHPointerList< T >::PHPointerList ( size_t  initialSize = 2)
explicit

Definition at line 59 of file PHPointerList.h.

View newest version in sPHENIX GitHub at line 59 of file PHPointerList.h

References merge_hashes::items, and Acts::UnitConstants::T.

template<class T>
PHPointerList< T >::PHPointerList ( const PHPointerList< T > &  l)

Definition at line 67 of file PHPointerList.h.

View newest version in sPHENIX GitHub at line 67 of file PHPointerList.h

template<class T >
PHPointerList< T >::~PHPointerList ( )
virtual

Definition at line 90 of file PHPointerList.h.

View newest version in sPHENIX GitHub at line 90 of file PHPointerList.h

References merge_hashes::items.

Member Function Documentation

template<class T>
bool PHPointerList< T >::append ( T item)
inline

Definition at line 139 of file PHPointerList.h.

View newest version in sPHENIX GitHub at line 139 of file PHPointerList.h

References merge_hashes::items.

Referenced by PHCompositeNode::addNode(), and PHNodeIterator::ls().

+ Here is the caller graph for this function:

template<class T >
void PHPointerList< T >::clear ( )
inline

Definition at line 190 of file PHPointerList.h.

View newest version in sPHENIX GitHub at line 190 of file PHPointerList.h

References merge_hashes::items.

Referenced by PHNodeIterator::ls().

+ Here is the caller graph for this function:

template<class T >
void PHPointerList< T >::clearAndDestroy ( )
inline

Definition at line 198 of file PHPointerList.h.

View newest version in sPHENIX GitHub at line 198 of file PHPointerList.h

References i, and merge_hashes::items.

Referenced by PHCompositeNode::~PHCompositeNode().

+ Here is the caller graph for this function:

template<class T >
bool PHPointerList< T >::grow ( size_t  newSize = 0)
private

Definition at line 97 of file PHPointerList.h.

View newest version in sPHENIX GitHub at line 97 of file PHPointerList.h

References i, merge_hashes::items, and Acts::UnitConstants::T.

template<class T>
bool PHPointerList< T >::insertAt ( T item,
size_t  pos 
)
inline

Definition at line 165 of file PHPointerList.h.

View newest version in sPHENIX GitHub at line 165 of file PHPointerList.h

References i, merge_hashes::items, and Acts::Test::pos.

template<class T >
size_t PHPointerList< T >::length ( ) const
inline

Definition at line 210 of file PHPointerList.h.

View newest version in sPHENIX GitHub at line 210 of file PHPointerList.h

Referenced by PHPointerList< T >::operator=().

+ Here is the caller graph for this function:

template<class T>
PHPointerList< T > & PHPointerList< T >::operator= ( const PHPointerList< T > &  l)

Definition at line 74 of file PHPointerList.h.

View newest version in sPHENIX GitHub at line 74 of file PHPointerList.h

References i, merge_hashes::items, PHPointerList< T >::length(), and PHPointerList< T >::maxNItems.

+ Here is the call graph for this function:

template<class T >
T * PHPointerList< T >::operator[] ( size_t  i) const
inline

Definition at line 124 of file PHPointerList.h.

View newest version in sPHENIX GitHub at line 124 of file PHPointerList.h

References i, and merge_hashes::items.

template<class T >
T * PHPointerList< T >::removeAt ( size_t  i)
inline

Definition at line 232 of file PHPointerList.h.

View newest version in sPHENIX GitHub at line 232 of file PHPointerList.h

References i, merge_hashes::items, j, and Acts::UnitConstants::T.

Referenced by PHCompositeNode::forgetMe(), and PHCompositeNode::prune().

+ Here is the caller graph for this function:

template<class T >
T * PHPointerList< T >::removeLast ( )
inline

Definition at line 217 of file PHPointerList.h.

View newest version in sPHENIX GitHub at line 217 of file PHPointerList.h

References merge_hashes::items.

Member Data Documentation

template<class T>
T** PHPointerList< T >::items
private

Definition at line 52 of file PHPointerList.h.

View newest version in sPHENIX GitHub at line 52 of file PHPointerList.h

template<class T>
size_t PHPointerList< T >::maxNItems
private

Definition at line 53 of file PHPointerList.h.

View newest version in sPHENIX GitHub at line 53 of file PHPointerList.h

Referenced by PHPointerList< T >::operator=().

template<class T>
size_t PHPointerList< T >::nItems
private

Definition at line 54 of file PHPointerList.h.

View newest version in sPHENIX GitHub at line 54 of file PHPointerList.h


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