|
Geant4 11.3.0
Toolkit for the simulation of the passage of particles through matter
|
#include <G4Allocator.hh>
Inheritance diagram for G4Allocator< Type >:Classes | |
| struct | rebind |
Public Types | |
| using | value_type = Type |
| using | size_type = std::size_t |
| using | difference_type = ptrdiff_t |
| using | pointer = Type* |
| using | const_pointer = const Type* |
| using | reference = Type& |
| using | const_reference = const Type& |
Public Member Functions | |
| G4Allocator () throw () | |
| ~G4Allocator () override throw () | |
| Type * | MallocSingle () |
| void | FreeSingle (Type *anElement) |
| void | ResetStorage () override |
| std::size_t | GetAllocatedSize () const override |
| int | GetNoPages () const override |
| std::size_t | GetPageSize () const override |
| void | IncreasePageSize (unsigned int sz) override |
| const char * | GetPoolType () const override |
| template<class U> | |
| G4Allocator (const G4Allocator< U > &right) throw () | |
| pointer | address (reference r) const |
| const_pointer | address (const_reference r) const |
| pointer | allocate (size_type n, void *=nullptr) |
| void | deallocate (pointer p, size_type n) |
| void | construct (pointer p, const Type &val) |
| void | destroy (pointer p) |
| size_type | max_size () const throw () |
Public Member Functions inherited from G4AllocatorBase | |
| G4AllocatorBase () | |
| virtual | ~G4AllocatorBase ()=default |
Public Attributes | |
| G4AllocatorPool | mem |
Definition at line 61 of file G4Allocator.hh.
| using G4Allocator< Type >::const_pointer = const Type* |
Definition at line 101 of file G4Allocator.hh.
| using G4Allocator< Type >::const_reference = const Type& |
Definition at line 103 of file G4Allocator.hh.
| using G4Allocator< Type >::difference_type = ptrdiff_t |
Definition at line 99 of file G4Allocator.hh.
| using G4Allocator< Type >::pointer = Type* |
Definition at line 100 of file G4Allocator.hh.
| using G4Allocator< Type >::reference = Type& |
Definition at line 102 of file G4Allocator.hh.
| using G4Allocator< Type >::size_type = std::size_t |
Definition at line 98 of file G4Allocator.hh.
| using G4Allocator< Type >::value_type = Type |
Definition at line 97 of file G4Allocator.hh.
| G4Allocator< Type >::G4Allocator | ( | ) | ||||
| throw | ( | ) | ||||
Definition at line 177 of file G4Allocator.hh.
Referenced by MallocSingle().
|
overridedefault | ||||||||||||
|
inline | |||||||||||||
Definition at line 106 of file G4Allocator.hh.
|
inline |
Definition at line 112 of file G4Allocator.hh.
|
inline |
Definition at line 111 of file G4Allocator.hh.
|
inline |
Definition at line 115 of file G4Allocator.hh.
|
inline |
Definition at line 137 of file G4Allocator.hh.
|
inline |
Definition at line 126 of file G4Allocator.hh.
|
inline |
Definition at line 139 of file G4Allocator.hh.
|
inline |
Definition at line 205 of file G4Allocator.hh.
Referenced by G4Allocator< U >::deallocate(), and G4KDTree::operator delete().
|
inlineoverridevirtual |
Implements G4AllocatorBase.
Definition at line 229 of file G4Allocator.hh.
|
inlineoverridevirtual |
Implements G4AllocatorBase.
Definition at line 239 of file G4Allocator.hh.
|
inlineoverridevirtual |
Implements G4AllocatorBase.
Definition at line 249 of file G4Allocator.hh.
|
inlineoverridevirtual |
Implements G4AllocatorBase.
Definition at line 270 of file G4Allocator.hh.
|
inlineoverridevirtual |
Implements G4AllocatorBase.
Definition at line 259 of file G4Allocator.hh.
|
inline |
Definition at line 195 of file G4Allocator.hh.
Referenced by G4Allocator< U >::allocate(), MallocSingle(), G4KDNode< PointT >::operator new(), G4KDNodeCopy< PointCopyT >::operator new(), G4KDTree::operator new(), G4KDTreeResult::operator new(), and G4ReactionProduct::operator new().
|
inline | ||||||||||||
Definition at line 142 of file G4Allocator.hh.
|
inlineoverridevirtual |
Implements G4AllocatorBase.
Definition at line 216 of file G4Allocator.hh.
Referenced by IncreasePageSize().
| G4AllocatorPool G4Allocator< Type >::mem |
Definition at line 156 of file G4Allocator.hh.
Referenced by FreeSingle(), G4Allocator(), GetAllocatedSize(), GetNoPages(), GetPageSize(), IncreasePageSize(), MallocSingle(), and ResetStorage().