LatNet Builder Manual 2.1.3-6
Software Package for Constructing Highly Uniform Point Sets
Loading...
Searching...
No Matches
NetBuilder::FigureOfMerit::Coordinates Class Reference

This is basically a std::set<std::size_t>. More...

#include <Coordinates.h>

Inherits std::set< K >.

Public Member Functions

 Coordinates ()
 Constructs an empty set of coordinates.
 Coordinates (const Coordinates &other)
 Copy-constructor.
 Coordinates (const std::vector< std::size_t > &coord)
 Builds a set of coordinates by adding all the elements of coord in it.
template<typename InputIterator>
 Coordinates (InputIterator first, InputIterator last)
 Constructs a coordinate set populated with the values from first (inclusively) to last (exclusively).

(Note that these are not member symbols.)

std::ostream & operator<< (std::ostream &os, const Coordinates &coords)
 Formats the coordinate set coords and outputs it to os.
std::istream & operator>> (std::istream &is, Coordinates &coords)
 Reads a formatted coordinate set from is.

Detailed Description

This is basically a std::set<std::size_t>.

It also implements an output and an input operator, but it is useless to have a class for that. This class is used to store the vector of coordinates used when computing the projections with lacunary indices. Objects of this class are created and returned by the classes in the CoordinateSets namespace.

◆ operator>>()

std::istream & operator>> ( std::istream & is,
Coordinates & coords )
related

Reads a formatted coordinate set from is.

The input must consist of positive integers separated by whitespace and/or by commas, and optionally enclosed in braces. The ordering is not important. Repeated values are ignored. For example, the following strings are valid input that would produce equivalent Coordinates objects:

  • 1 2 5
  • 1, 2, 5
  • {1 2 5}
  • {1,2,5}
  • {1, 2, 5}
  • 2 5 1
  • 2 1 5 1

The documentation for this class was generated from the following file:
  • latticetester/include/latticetester/Coordinates.h