Ultra 0.9.4
Loading...
Searching...
No Matches
individual_format.cc File Reference
#include "kernel/individual_format.h"
#include <ostream>

Namespaces

namespace  ultra

Functions

std::ostream & ultra::operator<< (std::ostream &os, const ultra::individual &ind)
print_format_t ultra::out::print_format_flag (std::ostream &o)
std::ostream & ultra::out::operator<< (std::ostream &o, print_format pf)
std::ostream & ultra::out::c_language (std::ostream &o)
std::ostream & ultra::out::cpp_language (std::ostream &o)
std::ostream & ultra::out::python_language (std::ostream &o)
std::ostream & ultra::out::dump (std::ostream &o)
std::ostream & ultra::out::graphviz (std::ostream &o)
std::ostream & ultra::out::in_line (std::ostream &o)
std::ostream & ultra::out::list (std::ostream &o)
std::ostream & ultra::out::tree (std::ostream &o)

Detailed Description

Remarks
This file is part of ULTRA.
License

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/

Function Documentation

◆ c_language()

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

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

Remarks
Sticky manipulator.
Examples
sonar.cc, symbolic_regression.cc, symbolic_regression01.cc, symbolic_regression02.cc, and symbolic_regression03.cc.

◆ cpp_language()

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

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

Remarks
Sticky manipulator.

◆ dump()

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

Used to print the complete content of an individual.

Note
Mostly used during debugging.
Remarks
Sticky manipulator.

◆ graphviz()

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

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

See also
https://www.graphviz.org/
Remarks
Sticky manipulator.

◆ in_line()

std::ostream & ultra::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.

◆ list()

std::ostream & ultra::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.

◆ print_format_flag()

print_format_t ultra::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

◆ python_language()

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

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

Remarks
Sticky manipulator.
Examples
symbolic_regression02.cc.

◆ tree()

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

Used to print the individual as a tree structure.

Remarks
Sticky manipulator.