Geant4  10.02.p03
G4FastListNode< OBJECT > Class Template Reference

#include <G4FastList.hh>

Collaboration diagram for G4FastListNode< OBJECT >:

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
 

Private Types

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

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 127 of file G4FastList.hh.

Member Typedef Documentation

◆ LIST

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

Definition at line 130 of file G4FastList.hh.

◆ ListW

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

Definition at line 132 of file G4FastList.hh.

◆ ManyListsIteratorW

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

Definition at line 136 of file G4FastList.hh.

◆ ManyListsW

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

Definition at line 134 of file G4FastList.hh.

◆ ObjectW

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

Definition at line 129 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 164 of file G4FastList.hh.

165  {
166  return fpNext;
167  }
G4FastListNode< OBJECT > * fpNext
Definition: G4FastList.hh:210

◆ GetNext() [2/2]

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

Definition at line 168 of file G4FastList.hh.

169  {
170  return fpNext;
171  }
G4FastListNode< OBJECT > * fpNext
Definition: G4FastList.hh:210

◆ GetObject() [1/2]

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

Definition at line 154 of file G4FastList.hh.

155  {
156  return fpObject;
157  }
OBJECT * fpObject
Definition: G4FastList.hh:208
Here is the caller graph for this function:

◆ GetObject() [2/2]

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

Definition at line 159 of file G4FastList.hh.

160  {
161  return fpObject;
162  }
OBJECT * fpObject
Definition: G4FastList.hh:208

◆ GetPrevious() [1/2]

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

Definition at line 172 of file G4FastList.hh.

173  {
174  return fpPrevious;
175  }
G4FastListNode< OBJECT > * fpPrevious
Definition: G4FastList.hh:209
Here is the caller graph for this function:

◆ GetPrevious() [2/2]

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

Definition at line 176 of file G4FastList.hh.

177  {
178  return fpPrevious;
179  }
G4FastListNode< OBJECT > * fpPrevious
Definition: G4FastList.hh:209

◆ IsAttached()

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

Definition at line 180 of file G4FastList.hh.

181  {
182  return fAttachedToList;
183  }
bool fAttachedToList
Definition: G4FastList.hh:206

◆ SetAttachedToList()

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

Definition at line 197 of file G4FastList.hh.

198  {
199  fAttachedToList = flag;
200  }
bool fAttachedToList
Definition: G4FastList.hh:206

◆ SetNext()

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

Definition at line 189 of file G4FastList.hh.

190  {
191  fpNext = node;
192  }
G4FastListNode< OBJECT > * fpNext
Definition: G4FastList.hh:210

◆ SetPrevious()

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

Definition at line 193 of file G4FastList.hh.

194  {
195  fpPrevious = node;
196  }
G4FastListNode< OBJECT > * fpPrevious
Definition: G4FastList.hh:209

◆ UnHook()

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

Member Data Documentation

◆ fAttachedToList

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

Definition at line 206 of file G4FastList.hh.

◆ fListRef

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

Definition at line 207 of file G4FastList.hh.

◆ fpNext

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

Definition at line 210 of file G4FastList.hh.

◆ fpObject

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

Definition at line 208 of file G4FastList.hh.

◆ fpPrevious

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

Definition at line 209 of file G4FastList.hh.


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