tgen
Loading...
Searching...
No Matches
tgen::sequence< T >::instance Struct Reference

Sequence instance. More...

Public Member Functions

 instance (const std::vector< T > &vec)
 Creates a sequence instance from a std::vector.
int size () const
 Returns the size of the sequence instance.
const T & operator[] (int idx) const
 Returns the value at some position of the instance.
instancesort ()
 Sorts the instance in non-decreasing order.
instancereverse ()
 Reverses the instance.
instance operator+ (const instance &rhs)
 Concatenates two instances.
std::vector< T > to_std () const
 Converts the instance to a std::vector.

Friends

std::ostream & operator<< (std::ostream &out, const instance &inst)
 Prints the instance to a std::ostream.

Detailed Description

template<typename T>
struct tgen::sequence< T >::instance

Sequence instance.

See also
Sequence instances.

Definition at line 721 of file tgen.h.


The documentation for this struct was generated from the following files:
  • /home/runner/work/tgen/tgen/single_include/tgen.h
  • sequence.dox