Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Concepts
DataType.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <ostream>
9
10namespace example {
11
15class DataType {
16 int m_a;
17
18public:
19 DataType ( int a ) : m_a ( a ) {
20 }
21
22 int getA ( ) const {
23 return m_a;
24 }
25
26 /* For ValuePrinter (see cpp) */
27 friend std::ostream & operator << ( std::ostream & out, const DataType & type ) {
28 return out << "(DataType " << type.getA ( ) << ")";
29 }
30};
31
32} /* namespace example */
33
Definition: DataType.h:15
friend std::ostream & operator<<(std::ostream &out, const DataType &type)
Definition: DataType.h:27
int getA() const
Definition: DataType.h:22
DataType(int a)
Definition: DataType.h:19
Definition: CreateDataType.cpp:11