QMCPACK
OhmmsObject.cpp
Go to the documentation of this file.
1
//////////////////////////////////////////////////////////////////////////////////////
2
// This file is distributed under the University of Illinois/NCSA Open Source License.
3
// See LICENSE file in top directory for details.
4
//
5
// Copyright (c) 2016 Jeongnim Kim and QMCPACK developers.
6
//
7
// File developed by: Jeongnim Kim, jeongnim.kim@gmail.com, University of Illinois at Urbana-Champaign
8
// Jeremy McMinnis, jmcminis@gmail.com, University of Illinois at Urbana-Champaign
9
//
10
// File created by: Jeongnim Kim, jeongnim.kim@gmail.com, University of Illinois at Urbana-Champaign
11
//////////////////////////////////////////////////////////////////////////////////////
12
13
14
#include "
OhmmsObject.h
"
15
16
/**@file OhmmsObject.cpp
17
*@brief Definitions of the member functions of OhmmsObject
18
*/
19
20
// initialize the object counter
21
//int OhmmsObject::ObjectCounter = 0;
22
23
/**default constructor
24
*
25
*Assign meaningless object and type names. Not givng a name to an object
26
*is OKAY as far as the object is not requested from a pool.
27
*/
28
OhmmsObject::OhmmsObject
() :
OhmmsElementBase
(
"none"
), TypeName(
"none"
), ElementByteSize(0)
29
{
30
// #pragma omp critical
31
// {
32
// ObjectID = ObjectCounter;
33
// ObjectCounter++;
34
// }
35
}
36
37
/**contructor
38
*@param tname the name of the type
39
*@param oname the name of the object
40
*@brief Assign a unique ObjectID using the static data member ObjectCounter
41
*/
42
OhmmsObject::OhmmsObject
(
const
std::string& tname,
const
std::string& oname)
43
:
OhmmsElementBase
(oname.c_str()), TypeName(tname.c_str()), ElementByteSize(0)
44
{
45
// #pragma omp critical
46
// {
47
// ObjectID = ObjectCounter;
48
// ObjectCounter++;
49
// }
50
}
51
52
OhmmsObject::~OhmmsObject
() {}
OhmmsObject::~OhmmsObject
~OhmmsObject() override
Definition:
OhmmsObject.cpp:52
OhmmsElementBase
Abstract class to provide xml-compatible I/O interfaces for the derived classes.
Definition:
OhmmsElementBase.h:40
OhmmsObject.h
Declaration of OhmmsObject.
OhmmsObject::OhmmsObject
OhmmsObject()
default constructor
Definition:
OhmmsObject.cpp:28
src
Utilities
OhmmsObject.cpp
Generated on Fri Jun 28 2024 10:45:29 for QMCPACK by
1.8.14