Debian Codegraph @

Devel/template.h

raw symbols SCIP
1 /*
2 * Definition of Lorene class XXX
3 *
4 */
5
6 /*
7 * Copyright (c) year your_name
8 *
9 * This file is part of LORENE.
10 *
11 * LORENE is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License version 2
13 * as published by the Free Software Foundation.
14 *
15 * LORENE 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
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with LORENE; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 *
24 */
25
26 #ifndef __XXX_H_
27 #define __XXX_H_
28
29 /*
30 * $Id: template.h,v 1.6 2014/10/13 08:54:04 j_novak Exp $
31 * $Log: template.h,v $
32 * Revision 1.6 2014/10/13 08:54:04 j_novak
33 * Lorene classes and functions now belong to the namespace Lorene.
34 *
35 * Revision 1.5 2004/03/29 14:31:39 j_novak
36 * set_der_0x0 is no longer virtual cvs update
37 *
38 *
39 *
40 * *** Suppress all lines (including those of this comment) which are not
41 * *** between two $ characters. The lines between two $ must not be
42 * *** changed: they will be processed by CVS when committing this file:
43 * *** for instance, templace.h will be replaced by the actual name of this
44 * *** file, etc...
45 *
46 *
47 * $Header: /cvsroot/Lorene/Devel/template.h,v 1.6 2014/10/13 08:54:04 j_novak Exp $
48 *
49 */
50
51 namespace Lorene { // All Lorene stuff is part of a single namespace
52
53 // External classes which appear in the declaration of class XXX:
54 class YYY ;
55
56 /**
57 * Extended description of the class for doxygen documentation.
58 * \ingroup(???)
59 *
60 */
61 class XXX {
62
63 // Data :
64 // -----
65 protected:
66
67 // Derived data :
68 // ------------
69 protected:
70 mutable ?? p_?? ; ///< Comment for Doxygen
71
72 // Constructors - Destructor
73 // -------------------------
74 public:
75 XXX(??) ; ///< Standard constructor
76 XXX(const XXX& ) ; ///< Copy constructor
77
78 /// Constructor from a file (see \c sauve(FILE*) )
79 XXX(FILE* ) ;
80
81 virtual ~XXX() ; ///< Destructor
82
83
84 // Memory management
85 // -----------------
86 protected:
87 /// Deletes all the derived quantities
88 virtual void del_deriv() const ;
89
90 /// Sets to \c 0x0 all the pointers on derived quantities
91 void set_der_0x0() const ;
92
93
94 // Mutators / assignment
95 // ---------------------
96 public:
97 /// Assignment to another XXX
98 void operator=(const XXX&) ;
99
100 // Accessors
101 // ---------
102 public:
103
104 // Outputs
105 // -------
106 public:
107 virtual void sauve(FILE *) const ; ///< Save in a file
108
109 /// Display
110 friend ostream& operator<<(ostream& , const XXX& ) ;
111
112
113
114 };
115
116 } // End of namespace declaration
117
118 #endif