Vita
Classes | Namespaces | Functions
individual.h File Reference

Go to the source code of this file.

Classes

struct  vita::has_introns< T >
 The SFINAE way of recognizing if an individual has introns. More...
 
class  vita::individual< Derived >
 A single member of a population. More...
 
class  vita::out::print_format
 

Namespaces

namespace  vita
 The main namespace for the project.
 

Functions

std::ostream & vita::out::c_language (std::ostream &o)
 Used to print the content of an individual in c-language format. More...
 
std::ostream & vita::out::cpp_language (std::ostream &o)
 Used to print the content of an individual in cpp-language format. More...
 
std::ostream & vita::out::dump (std::ostream &o)
 Used to print the complete content of an individual. More...
 
std::ostream & vita::out::graphviz (std::ostream &o)
 Used to print a graph, in dot language, representing the individual. More...
 
std::ostream & vita::out::in_line (std::ostream &o)
 Used to print the individual on a single line. More...
 
std::ostream & vita::out::list (std::ostream &o)
 Used to print a human readable representation of the individual. More...
 
std::ostream & vita::out::long_form (std::ostream &o)
 Enable printing of every detail of the individual. More...
 
bool vita::out::long_form_flag (std::ostream &o)
 
std::ostream & vita::out::mql_language (std::ostream &o)
 Used to print the content of an individual in MQL-language format. More...
 
print_format_t vita::out::print_format_flag (std::ostream &o)
 
std::ostream & vita::out::python_language (std::ostream &o)
 Used to print the content of an individual in python-language format. More...
 
std::ostream & vita::out::short_form (std::ostream &o)
 Hide secondary details of the individual. More...
 
std::ostream & vita::out::tree (std::ostream &o)
 Used to print the individual as a tree structure. More...
 

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 individual.h.

Function Documentation

◆ c_language()

std::ostream & vita::out::c_language ( std::ostream &  o)

Used to print the content of an individual in c-language format.

Remarks
Sticky manipulator.
Examples
titanic04.cc.

Definition at line 67 of file individual.cc.

◆ cpp_language()

std::ostream & vita::out::cpp_language ( std::ostream &  o)

Used to print the content of an individual in cpp-language format.

Remarks
Sticky manipulator.

Definition at line 78 of file individual.cc.

◆ dump()

std::ostream & vita::out::dump ( std::ostream &  o)

Used to print the complete content of an individual.

Note
Mostly used during debugging.
Remarks
Sticky manipulator.

Definition at line 112 of file individual.cc.

◆ graphviz()

std::ostream & vita::out::graphviz ( std::ostream &  o)

Used to print a graph, in dot language, representing the individual.

See also
http://www.graphviz.org/
Remarks
Sticky manipulator.
Examples
titanic04.cc.

Definition at line 124 of file individual.cc.

◆ in_line()

std::ostream & vita::out::in_line ( std::ostream &  o)

Used to print the individual on a single line.

Not at all human readable, but a compact representation for import/export.

Remarks
Sticky manipulator.

Definition at line 137 of file individual.cc.

◆ list()

std::ostream & vita::out::list ( std::ostream &  o)

Used to print a human readable representation of the individual.

Do you remember C=64's LIST? :-)

10 PRINT "HOME"
20 PRINT "SWEET"
30 GOTO 10
Remarks
Sticky manipulator.
Examples
titanic04.cc.

Definition at line 154 of file individual.cc.

◆ long_form()

std::ostream & vita::out::long_form ( std::ostream &  o)

Enable printing of every detail of the individual.

Remarks
Sticky manipulator.

Definition at line 176 of file individual.cc.

◆ long_form_flag()

bool vita::out::long_form_flag ( std::ostream &  o)
Parameters
[in]oan output stream
Returns
the current value of the long format flag for the o stream

Definition at line 42 of file individual.cc.

◆ mql_language()

std::ostream & vita::out::mql_language ( std::ostream &  o)

Used to print the content of an individual in MQL-language format.

Remarks
Sticky manipulator.

Definition at line 89 of file individual.cc.

◆ print_format_flag()

print_format_t vita::out::print_format_flag ( std::ostream &  o)
Parameters
[in]oan output stream
Returns
the current value of the print format flag for the o stream

Definition at line 51 of file individual.cc.

◆ python_language()

std::ostream & vita::out::python_language ( std::ostream &  o)

Used to print the content of an individual in python-language format.

Remarks
Sticky manipulator.
Examples
titanic04.cc.

Definition at line 100 of file individual.cc.

◆ short_form()

std::ostream & vita::out::short_form ( std::ostream &  o)

Hide secondary details of the individual.

Remarks
Sticky manipulator.

Definition at line 187 of file individual.cc.

◆ tree()

std::ostream & vita::out::tree ( std::ostream &  o)

Used to print the individual as a tree structure.

Remarks
Sticky manipulator.

Definition at line 165 of file individual.cc.