LifeV
ExampleClass.cpp
Go to the documentation of this file.
1 //@HEADER
2 /*
3 *******************************************************************************
4 
5  Copyright (C) 2004, 2005, 2007 EPFL, Politecnico di Milano, INRIA
6  Copyright (C) 2010 EPFL, Politecnico di Milano, Emory University
7 
8  This file is part of LifeV.
9 
10  LifeV is free software; you can redistribute it and/or modify
11  it under the terms of the GNU Lesser General Public License as published by
12  the Free Software Foundation, either version 3 of the License, or
13  (at your option) any later version.
14 
15  LifeV is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  Lesser General Public License for more details.
19 
20  You should have received a copy of the GNU Lesser General Public License
21  along with LifeV. If not, see <http://www.gnu.org/licenses/>.
22 
23 *******************************************************************************
24 */
25 //@HEADER
26 
27 /*!
28  @file
29  @brief A short description of the file content
30 
31  @author Name Surname <name.surname@email.org>
32  @contributor Name Surname <name.surname@email.org>
33  @maintainer Name Surname <name.surname@email.org>
34 
35  @date 00-00-0000
36 
37  A more detailed description of the file (if necessary)
38  */
39 
40 #include <ExampleClass.hpp>
41 
42 namespace LifeV
43 {
44 
45 // ===================================================
46 // Constructors & Destructor
47 // ===================================================
49  M_variableOne (),
50  M_variableTwo ()
51 {
52 
53 }
54 
56  second_Type& variableTwo ) :
57  M_variableOne ( variableOne ),
58  M_variableTwo ( variableTwo )
59 {
60 
61 }
62 
63 ExampleClass::ExampleClass ( const ExampleClass& example ) :
64  M_variableOne ( example.M_variableOne ),
65  M_variableTwo ( example.M_variableTwo )
66 {
67 
68 }
69 
71 {
72 
73 }
74 
75 // ===================================================
76 // Operators
77 // ===================================================
79 ExampleClass::operator= ( const ExampleClass& example )
80 {
81  if ( this != &example )
82  {
85  }
86 
87  return *this;
88 }
89 
90 // ===================================================
91 // Methods
92 // ===================================================
93 void
94 ExampleClass::methodOne ( first_Type& inputVariableOne,
95  second_Type& inputVariableTwo )
96 {
97  // Example of debug
98 #ifdef HAVE_LIFEV_DEBUG
99  debugStream ( 0000 ) << "ExampleClass::methodOne inputVariableOne = " << inputVariableOne << " inputVariableTwo = " << inputVariableTwo << "\n";
100 #endif
101 
102  //Do something
103 }
104 
105 void
107 {
108 
109 }
110 
111 void
112 ExampleClass::showMe ( std::ostream& output ) const
113 {
114  output << "ExampleClass::showMe()" << std::endl;
115  output << "Variable one: " << M_variableOne << std::endl;
116  output << "Variable two: " << M_variableTwo << std::endl;
117 }
118 
119 // ===================================================
120 // Set Methods
121 // ===================================================
122 void
123 ExampleClass::setVariableOne ( const first_Type& variableOne )
124 {
125  M_variableOne = variableOne;
126 }
127 
128 // ===================================================
129 // Get Methods
130 // ===================================================
131 const ExampleClass::first_Type&
133 {
134  return M_variableOne;
135 }
136 
137 // ===================================================
138 // Private Methods
139 // ===================================================
140 void
142 {
143  //Do something ..
144 }
145 
146 } // Namespace LifeV
first_Type M_variableOne
ExampleClass(const ExampleClass &example)
Copy constructor.
void methodOne(first_Type &inputVariableOne, second_Type &inputVariableTwo)
Short description of this method.
ExampleClass & operator=(const ExampleClass &example)
The equivalence operator.
void updateInverseJacobian(const UInt &iQuadPt)
void methodTwo()
Short description of this method.
const first_Type & variableOne() const
Short description of this get method.
ExampleClass(first_Type &VariableOne, second_Type &VariableTwo)
Short description of the constructor.
void privateMethodOne()
Short description of this method.
void showMe(std::ostream &output=std::cout) const
Display general information about the content of the class.
ExampleClass()
Empty Constructor.
second_Type M_variableTwo
~ExampleClass()
Destructor.
ExampleClass - Short description of the class.
void setVariableOne(const first_Type &variableOne)
Short description of this set method.