Loading [MathJax]/extensions/tex2jax.js
ug4
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
playground.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2011-2012: Steinbeis Forschungszentrum (STZ Ölbronn)
3 * Author: Michael Hoffer
4 *
5 * This file is part of UG4.
6 *
7 * UG4 is free software: you can redistribute it and/or modify it under the
8 * terms of the GNU Lesser General Public License version 3 (as published by the
9 * Free Software Foundation) with the following additional attribution
10 * requirements (according to LGPL/GPL v3 §7):
11 *
12 * (1) The following notice must be displayed in the Appropriate Legal Notices
13 * of covered and combined works: "Based on UG4 (www.ug4.org/license)".
14 *
15 * (2) The following notice must be displayed at a prominent place in the
16 * terminal output of covered works: "Based on UG4 (www.ug4.org/license)".
17 *
18 * (3) The following bibliography is recommended for citation and must be
19 * preserved in all covered files:
20 * "Reiter, S., Vogel, A., Heppner, I., Rupp, M., and Wittum, G. A massively
21 * parallel geometric multigrid solver on hierarchically distributed grids.
22 * Computing and visualization in science 16, 4 (2013), 151-164"
23 * "Vogel, A., Reiter, S., Rupp, M., Nägel, A., and Wittum, G. UG4 -- a novel
24 * flexible software system for simulating pde based models on high performance
25 * computers. Computing and visualization in science 16, 4 (2013), 165-179"
26 *
27 * This program is distributed in the hope that it will be useful,
28 * but WITHOUT ANY WARRANTY; without even the implied warranty of
29 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30 * GNU Lesser General Public License for more details.
31 */
32
33#ifndef PLAYGROUND_H
34#define PLAYGROUND_H
35
36#include <string>
37#include <vector>
38#include <string>
39
40#include "ug.h"
41#include "registry/registry.h"
42#include "registry/class.h"
43
44namespace ug {
45namespace vrl {
46
47class TestClass {
48public:
49 TestClass();
50 TestClass(std::string name);
51
53
54 std::string getRev();
55
56 int add(int a, int b);
57
58 std::string getString();
59
61
63
64 int print_name();
65
66 int print();
67
68 int print2();
69
70 int print2() const;
71
72 ~TestClass();
73};
74
79public:
81 SmartPtrCls(std::string name);
82
83 void print_name();
84
85 void create_data(int size);
86
88private:
89 std::string _name;
90 byte* _data;
91};
92
101//
103} // end vrl::
104}// end ug::
105//
106#endif /* PLAYGROUND_H */
107
location name
Definition checkpoint_util.lua:128
Definition smart_pointer.h:296
Definition smart_pointer.h:108
Registry for functions and classes that are exported to scripts and visualizations.
Definition registry.h:138
Definition playground.h:78
void create_data(int size)
Definition playground.cpp:131
void print_name()
Definition playground.cpp:127
SmartPtrCls()
Definition playground.cpp:115
~SmartPtrCls()
Definition playground.cpp:139
byte * _data
Definition playground.h:90
std::string _name
Definition playground.h:89
Definition playground.h:47
int print()
Definition playground.cpp:76
~TestClass()
Definition playground.cpp:91
ConstSmartPtr< TestClass > constSmartTestImpl()
Definition playground.cpp:67
SmartPtr< TestClass > smartTestImpl()
Definition playground.cpp:63
TestClass()
Definition playground.cpp:42
int add(int a, int b)
Definition playground.cpp:54
std::string getString()
Definition playground.cpp:58
std::string getRev()
Definition playground.cpp:50
int print_name()
Definition playground.cpp:71
int print2()
Definition playground.cpp:81
int ConstSmartTestFunction(ConstSmartPtr< TestClass > test)
Definition playground.cpp:103
int SmartTestFunction(SmartPtr< TestClass > test)
Definition playground.cpp:95
void registerPlayground(ug::bridge::Registry &reg)
Definition playground.cpp:343
the ug namespace