48 const std::string& label=
"\0"
57 const std::string& label=
"\0"
83 double at(std::size_t at_)
const;
90 double&
at(std::size_t at_);
111 void resize(std::size_t new_size) { data.resize(new_size); }
116 size_t size()
const {
return data.size(); }
168 std::string section_description;
177 std::size_t firstAnnotationPos, lastAnnotationPos;
178 std::vector<Annotation> AnnotationsList;
Describes the attributes of an annotation.
Lightweight core definitions shared by libstfio model classes.
std::vector< double > Vector_double
#define StfioDll
Defines dll export or import functions for Windows.
void SetSectionDescription(const std::string &value)
Sets a section description.
std::size_t GetSectionSize()
Range-checked access. Returns a non-const reference.
std::size_t GetLastAnnotationPosition()
void MoveAnnotation(size_t index, int new_position)
size_t size() const
Retrieve the number of data points.
void EraseAllAnnotations()
std::size_t GetFirstAnnotationPosition()
void SetXScale(double value)
Sets the x scaling.
Vector_double & get_w()
Low-level access to the valarray (read and write).
double & at(std::size_t at_)
Range-checked access. Returns a non-const reference.
double GetXScale() const
Retrieves the x scaling.
double operator[](std::size_t at) const
Unchecked access. Returns a copy.
void resize(std::size_t new_size)
Resize the Section to a new number of data points; deletes all previously stored data when gcc is use...
const Vector_double & get() const
Low-level access to the valarray (read-only).
Section()
Default constructor.
Section(std::size_t size, const std::string &label="\0")
Yet another constructor.
std::vector< Annotation > GetAnnotationList()
void AddAnnotation(Annotation annotation)
Section(const Vector_double &valA, const std::string &label="\0")
Constructor.
double at(std::size_t at_) const
Range-checked access. Returns a copy.
double & operator[](std::size_t at)
Unchecked access. Returns a non-const reference.
void RemoveAnnotation(size_t index)
const std::string & GetSectionDescription() const
Retrieves a section description.