Teuchos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Teuchos_CompObject.cpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Teuchos: Common Tools Package
4 //
5 // Copyright 2004 NTESS and the Teuchos contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 // Kris
11 // 07.08.03 -- Move into Teuchos package/namespace
12 
13 // Constructor
14 
15 #include "Teuchos_CompObject.hpp"
16 
17 namespace Teuchos
18 {
19 
20 CompObject::CompObject() : flopCounter_(0)
21 {
22 }
23 
24 // Copy Constructor
25 
26 CompObject::CompObject(const CompObject& source) : flopCounter_(source.flopCounter_)
27 {
28 }
29 
30 // Destructor
31 
33 {
34  flopCounter_ = 0;
35 }
36 
37 } // namespace Teuchos
virtual ~CompObject()
Destructor.
Object for storing data and providing functionality that is common to all computational classes...
Functionality and data that is common to all computational classes.
CompObject()
Default constructor.