Jpp 19.3.0-rc.3
the software that should make you happy
Loading...
Searching...
No Matches
Waveform< T > Struct Template Reference

#include <parser.h>

Public Member Functions

bool operator== (const Waveform< T > &rhs) const
 
bool operator!= (const Waveform< T > &rhs) const
 

Public Attributes

int id
 
std::vector< T > samples
 

Friends

std::ostream & operator<< (std::ostream &out, const Waveform< T > &waveform)
 

Detailed Description

template<typename T>
struct Waveform< T >

Definition at line 27 of file parser.h.

Member Function Documentation

◆ operator==()

template<typename T >
bool Waveform< T >::operator== ( const Waveform< T > & rhs) const
inline

Definition at line 32 of file parser.h.

33 {
34 return rhs.id == id && samples == rhs.samples;
35 }
std::vector< T > samples
Definition parser.h:30
int id
Definition parser.h:29

◆ operator!=()

template<typename T >
bool Waveform< T >::operator!= ( const Waveform< T > & rhs) const
inline

Definition at line 36 of file parser.h.

37 {
38 return !(*this == rhs);
39 }

Friends And Related Symbol Documentation

◆ operator<<

template<typename T >
std::ostream & operator<< ( std::ostream & out,
const Waveform< T > & waveform )
friend

Definition at line 41 of file parser.h.

42 {
43 out << waveform.id << " " << waveform.samples.size() << " ";
44 for (const auto& sample : waveform.samples) {
45 out << sample << " ";
46 }
47 return out;
48 }

Member Data Documentation

◆ id

template<typename T >
int Waveform< T >::id

Definition at line 29 of file parser.h.

◆ samples

template<typename T >
std::vector<T> Waveform< T >::samples

Definition at line 30 of file parser.h.


The documentation for this struct was generated from the following file: