Geant4
11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
HAPI_Data.cc
Go to the documentation of this file.
1
/*
2
# <<BEGIN-copyright>>
3
# Copyright 2019, Lawrence Livermore National Security, LLC.
4
# This file is part of the gidiplus package (https://github.com/LLNL/gidiplus).
5
# gidiplus is licensed under the MIT license (see https://opensource.org/licenses/MIT).
6
# SPDX-License-Identifier: MIT
7
# <<END-copyright>>
8
*/
9
10
#include "
HAPI.hpp
"
11
12
namespace
HAPI
{
13
14
/*
15
=========================================================
16
*
17
* @return
18
*/
19
Data::Data
() :
20
m_data(NULL) {
21
22
}
23
/*
24
=========================================================
25
*
26
* @param a_node
27
* @return
28
*/
29
Data::Data
(
Data_internal
*a_data ) :
30
m_data(a_data) {
31
32
}
33
/*
34
=========================================================
35
*/
36
Data::~Data
( ) {
37
38
delete
m_data;
39
40
}
41
42
size_t
Data::length
( )
const
{
43
44
return
m_data->length();
45
46
}
47
48
void
Data::getDoubles
(nf_Buffer<double> &buffer)
49
{
50
51
m_data->getDoubles(buffer);
52
53
}
54
55
void
Data::getInts
(nf_Buffer<int> &buffer)
56
{
57
58
m_data->getInts(buffer);
59
60
}
61
62
}
HAPI.hpp
HAPI::Data_internal
Definition
HAPI.hpp:92
HAPI::Data::getDoubles
void getDoubles(nf_Buffer< double > &buffer)
Definition
HAPI_Data.cc:48
HAPI::Data::~Data
~Data()
Definition
HAPI_Data.cc:36
HAPI::Data::Data
Data()
Definition
HAPI_Data.cc:19
HAPI::Data::getInts
void getInts(nf_Buffer< int > &buffer)
Definition
HAPI_Data.cc:55
HAPI::Data::length
size_t length() const
Definition
HAPI_Data.cc:42
HAPI
Definition
HAPI.hpp:34
geant4-v11.4.0
source
processes
hadronic
models
lend
src
HAPI_Data.cc
Generated by
1.16.1