Geant4-11
Public Member Functions | Data Fields | Private Types
G4FastListNode< OBJECT > Class Template Reference

#include <G4FastList.hh>

Public Member Functions

void DetachYourSelf ()
 
 G4FastListNode (OBJECT *track=0)
 
G4FastListNode< OBJECT > * GetNext ()
 
const G4FastListNode< OBJECT > * GetNext () const
 
OBJECT * GetObject ()
 
const OBJECT * GetObject () const
 
G4FastListNode< OBJECT > * GetPrevious ()
 
const G4FastListNode< OBJECT > * GetPrevious () const
 
bool IsAttached ()
 
void SetAttachedToList (bool flag)
 
void SetNext (G4FastListNode< OBJECT > *node)
 
void SetPrevious (G4FastListNode< OBJECT > *node)
 
void UnHook ()
 
 ~G4FastListNode ()
 

Data Fields

bool fAttachedToList
 
G4shared_ptr< _ListRef< G4FastList< OBJECT > > > fListRef
 
G4FastListNode< OBJECT > * fpNext
 
OBJECT * fpObject
 
G4FastListNode< OBJECT > * fpPrevious
 

Private Types

typedef G4FastList< typename ObjectW::typeLIST
 
typedef type_wrapper< G4FastList< OBJECT > > ListW
 
typedef type_wrapper< G4ManyFastLists_iterator< OBJECT > > ManyListsIteratorW
 
typedef type_wrapper< G4ManyFastLists< OBJECT > > ManyListsW
 
typedef type_wrapper< OBJECT > ObjectW
 

Detailed Description

template<class OBJECT>
class G4FastListNode< OBJECT >

G4FastListNode is the entity actually stored by the G4FastList. A G4FastListNode should belong only to one list. Also, an object should belong only to one list.

Definition at line 125 of file G4FastList.hh.

Member Typedef Documentation

◆ LIST

template<class OBJECT >
typedef G4FastList<typename ObjectW::type> G4FastListNode< OBJECT >::LIST
private

Definition at line 128 of file G4FastList.hh.

◆ ListW

template<class OBJECT >
typedef type_wrapper<G4FastList<OBJECT> > G4FastListNode< OBJECT >::ListW
private

Definition at line 130 of file G4FastList.hh.

◆ ManyListsIteratorW

template<class OBJECT >
typedef type_wrapper<G4ManyFastLists_iterator<OBJECT> > G4FastListNode< OBJECT >::ManyListsIteratorW
private

Definition at line 134 of file G4FastList.hh.

◆ ManyListsW

template<class OBJECT >
typedef type_wrapper<G4ManyFastLists<OBJECT> > G4FastListNode< OBJECT >::ManyListsW
private

Definition at line 132 of file G4FastList.hh.

◆ ObjectW

template<class OBJECT >
typedef type_wrapper<OBJECT> G4FastListNode< OBJECT >::ObjectW
private

Definition at line 127 of file G4FastList.hh.

Constructor & Destructor Documentation

◆ ~G4FastListNode()

template<class OBJECT >
G4FastListNode< OBJECT >::~G4FastListNode ( )

◆ G4FastListNode()

template<class OBJECT >
G4FastListNode< OBJECT >::G4FastListNode ( OBJECT *  track = 0)

Default constructor

Member Function Documentation

◆ DetachYourSelf()

template<class OBJECT >
void G4FastListNode< OBJECT >::DetachYourSelf ( )

◆ GetNext() [1/2]

template<class OBJECT >
G4FastListNode< OBJECT > * G4FastListNode< OBJECT >::GetNext ( )
inline

Definition at line 162 of file G4FastList.hh.

163 {
164 return fpNext;
165 }
G4FastListNode< OBJECT > * fpNext
Definition: G4FastList.hh:208

References G4FastListNode< OBJECT >::fpNext.

Referenced by G4FastList_iterator< OBJECT >::operator++(), and G4FastList_const_iterator< OBJECT >::operator++().

◆ GetNext() [2/2]

template<class OBJECT >
const G4FastListNode< OBJECT > * G4FastListNode< OBJECT >::GetNext ( ) const
inline

Definition at line 166 of file G4FastList.hh.

167 {
168 return fpNext;
169 }

References G4FastListNode< OBJECT >::fpNext.

◆ GetObject() [1/2]

template<class OBJECT >
OBJECT * G4FastListNode< OBJECT >::GetObject ( )
inline

◆ GetObject() [2/2]

template<class OBJECT >
const OBJECT * G4FastListNode< OBJECT >::GetObject ( ) const
inline

Definition at line 157 of file G4FastList.hh.

158 {
159 return fpObject;
160 }

References G4FastListNode< OBJECT >::fpObject.

◆ GetPrevious() [1/2]

template<class OBJECT >
G4FastListNode< OBJECT > * G4FastListNode< OBJECT >::GetPrevious ( )
inline

Definition at line 170 of file G4FastList.hh.

171 {
172 return fpPrevious;
173 }
G4FastListNode< OBJECT > * fpPrevious
Definition: G4FastList.hh:207

References G4FastListNode< OBJECT >::fpPrevious.

Referenced by G4FastList_iterator< OBJECT >::operator--(), and G4FastList_const_iterator< OBJECT >::operator--().

◆ GetPrevious() [2/2]

template<class OBJECT >
const G4FastListNode< OBJECT > * G4FastListNode< OBJECT >::GetPrevious ( ) const
inline

Definition at line 174 of file G4FastList.hh.

175 {
176 return fpPrevious;
177 }

References G4FastListNode< OBJECT >::fpPrevious.

◆ IsAttached()

template<class OBJECT >
bool G4FastListNode< OBJECT >::IsAttached ( )
inline

Definition at line 178 of file G4FastList.hh.

179 {
180 return fAttachedToList;
181 }
bool fAttachedToList
Definition: G4FastList.hh:204

References G4FastListNode< OBJECT >::fAttachedToList.

◆ SetAttachedToList()

template<class OBJECT >
void G4FastListNode< OBJECT >::SetAttachedToList ( bool  flag)
inline

Definition at line 195 of file G4FastList.hh.

196 {
197 fAttachedToList = flag;
198 }

References G4FastListNode< OBJECT >::fAttachedToList.

◆ SetNext()

template<class OBJECT >
void G4FastListNode< OBJECT >::SetNext ( G4FastListNode< OBJECT > *  node)
inline

Definition at line 187 of file G4FastList.hh.

188 {
189 fpNext = node;
190 }

References G4FastListNode< OBJECT >::fpNext.

◆ SetPrevious()

template<class OBJECT >
void G4FastListNode< OBJECT >::SetPrevious ( G4FastListNode< OBJECT > *  node)
inline

Definition at line 191 of file G4FastList.hh.

192 {
193 fpPrevious = node;
194 }

References G4FastListNode< OBJECT >::fpPrevious.

◆ UnHook()

template<class OBJECT >
void G4FastListNode< OBJECT >::UnHook ( )

Field Documentation

◆ fAttachedToList

template<class OBJECT >
bool G4FastListNode< OBJECT >::fAttachedToList

◆ fListRef

template<class OBJECT >
G4shared_ptr<_ListRef<G4FastList<OBJECT> > > G4FastListNode< OBJECT >::fListRef

Definition at line 205 of file G4FastList.hh.

◆ fpNext

template<class OBJECT >
G4FastListNode<OBJECT>* G4FastListNode< OBJECT >::fpNext

◆ fpObject

template<class OBJECT >
OBJECT* G4FastListNode< OBJECT >::fpObject

Definition at line 206 of file G4FastList.hh.

Referenced by G4FastListNode< OBJECT >::GetObject().

◆ fpPrevious

template<class OBJECT >
G4FastListNode<OBJECT>* G4FastListNode< OBJECT >::fpPrevious

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