Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4FastListNode< OBJECT > Class Template Reference

#include <G4FastList.hh>

Public Member Functions

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

Public Attributes

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

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.

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

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 }

◆ 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 }

◆ 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

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 }

◆ 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

◆ SetAttachedToList()

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

Definition at line 195 of file G4FastList.hh.

196 {
197 fAttachedToList = flag;
198 }

◆ 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 }

◆ 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 }

◆ UnHook()

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

Member Data 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: