Vita
Namespaces | Macros | Typedefs | Variables
common.h File Reference

Go to the source code of this file.

Namespaces

namespace  vita
 The main namespace for the project.
 

Macros

#define DISALLOW_COPY_AND_ASSIGN(Class)
 A macro to disallow the copy constructor and operator= functions. More...
 

Typedefs

using vita::category_t = std::size_t
 A category provide operations which supplement or supersede those of the domain but which are restricted to values lying in the (sub)domain by which is parametrized. More...
 
using vita::cvect = std::vector< category_t >
 
using vita::terminal_param_t = double
 

Variables

constexpr category_t vita::undefined_category = static_cast<category_t>(-1)
 

Detailed Description

Remarks
This file is part of VITA.
License\n
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/

Definition in file common.h.

Macro Definition Documentation

◆ DISALLOW_COPY_AND_ASSIGN

#define DISALLOW_COPY_AND_ASSIGN (   Class)
Value:
Class(const Class &) = delete; \
Class &operator=(const Class &) = delete

A macro to disallow the copy constructor and operator= functions.

A good alternative is boost::noncopyable but that gives some false positive with g++ -Weffc++ so, for now, we keep the macro.

See also
Further details:

Definition at line 57 of file common.h.