Loading...
Searching...
No Matches
operators_example.hpp
1/*---------------------------------------------------------------------------*\
2 *
3 * bitpit
4 *
5 * Copyright (C) 2015-2021 OPTIMAD engineering Srl
6 *
7 * -------------------------------------------------------------------------
8 * License
9 * This file is part of bitpit.
10 *
11 * bitpit is free software: you can redistribute it and/or modify it
12 * under the terms of the GNU Lesser General Public License v3 (LGPL)
13 * as published by the Free Software Foundation.
14 *
15 * bitpit is distributed in the hope that it will be useful, but WITHOUT
16 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
18 * License for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public License
21 * along with bitpit. If not, see <http://www.gnu.org/licenses/>.
22 *
23\*---------------------------------------------------------------------------*/
24
25// ================================================================================== //
26// OPERATORS - EXAMPLES OF USAGE - //
27// //
28// Examples of Operators usage. //
29// ================================================================================== //
30// INFO //
31// ================================================================================== //
32// Author : Alessandro Alaia //
33// Version : v3.0 //
34// //
35// All rights reserved. //
36// ================================================================================== //
37# ifndef __BITPIT_OPERATORS_EXAMPLE_HPP__
38# define __BITPIT_OPERATORS_EXAMPLE_HPP__
39
40// ================================================================================== //
41// INCLUDES //
42// ================================================================================== //
43
44// Standard Template Library
45# include <cmath>
46# include <array>
47# include <vector>
48# include <iostream>
49
50// bitpit Library
51# include "bitpit_operators.hpp"
52
53// ================================================================================== //
54// NAMESPACES //
55// ================================================================================== //
56using namespace std;
57
58// ================================================================================== //
59// TYPES DEFINITIONS //
60// ================================================================================== //
61
62// boolean vectors
63typedef vector< bool > bvector1D;
64typedef vector< bvector1D > bvector2D;
65typedef vector< bvector2D > bvector3D;
66typedef vector< bvector3D > bvector4D;
67
68// characters vectors
69typedef vector< char > cvector1D;
70typedef vector< cvector1D > cvector2D;
71typedef vector< cvector2D > cvector3D;
72typedef vector< cvector3D > cvector4D;
73
74// integer vectors
75typedef vector< int > ivector1D;
76typedef vector< ivector1D > ivector2D;
77typedef vector< ivector2D > ivector3D;
78typedef vector< ivector3D > ivector4D;
79
80// double vectors
81typedef vector< double > dvector1D;
82typedef vector< dvector1D > dvector2D;
83typedef vector< dvector2D > dvector3D;
84typedef vector< dvector3D > dvector4D;
85
86// ================================================================================== //
87// FUNCTIONS PROTOTYPES //
88// ================================================================================== //
89void vectorOperators_Ex( // Demo for operators between vectors
90 void // (input) none
91);
92void vectorMathFunct_Ex( // Demo for math operators between vectors
93 void // (input) none
94);
95void arrayOperators_Ex( // Demo for operators between vectors
96 void // (input) none
97);
98void arrayMathFunct_Ex( // Demo for operators between vectors
99 void // (input) none
100);
101void stringOperators_Ex( // Demo for operators between strings
102 void // (input) none
103);
104
105// ================================================================================== //
106// TEMPLATES //
107// ================================================================================== //
108// none
109
110# endif
--- layout: doxygen_footer ---