CppTemplate 1.0.5.0
C++ Template Library
Loading...
Searching...
No Matches
class.h
Go to the documentation of this file.
1
9#ifndef CPPTEMPLATE_TEMPLATE_CLASS_H
10#define CPPTEMPLATE_TEMPLATE_CLASS_H
11
12namespace CppTemplate {
13
15
21{
22public:
24
27 explicit Template(int filed) noexcept : _field(filed) {}
28 Template(const Template&) noexcept = default;
29 Template(Template&&) noexcept = default;
30 ~Template() noexcept = default;
31
32 Template& operator=(const Template&) noexcept = default;
33 Template& operator=(Template&&) noexcept = default;
34
36 int field() const noexcept { return _field; }
37
39
43 int Method(int parameter) const noexcept;
44
46
50 static int StaticMethod(int parameter) noexcept;
51
52private:
53 int _field;
54};
55
58} // namespace CppTemplate
59
60#include "class.inl"
61
62#endif // CPPTEMPLATE_TEMPLATE_CLASS_H
Template class inline implementation.
Template class.
Definition class.h:21
Template(int filed) noexcept
Default class constructor.
Definition class.h:27
int field() const noexcept
Get field value.
Definition class.h:36
static int StaticMethod(int parameter) noexcept
Some static method.
Definition class.inl:11
Template(Template &&) noexcept=default
int Method(int parameter) const noexcept
Some method.
Definition class.cpp:15
Template(const Template &) noexcept=default
C++ Template project definitions.
Definition class.h:12