3D Forest
Software for analysis of Lidar data from forest environment.
Segments Class Reference

#include <Segments.hpp>

Public Member Functions

 Segments ()
 
void clear ()
 
void setDefault ()
 
size_t size () const
 
Segmentoperator[] (size_t index)
 
const Segmentoperator[] (size_t index) const
 
void push_back (const Segment &segment)
 
void erase (size_t pos)
 
size_t id (size_t pos) const
 
size_t index (size_t id) const
 
bool contains (size_t id) const
 
size_t unusedId () const
 

Protected Attributes

std::vector< Segmentsegments_
 
std::unordered_map< size_t, size_t > hashTableId_
 

Friends

void fromJson (Segments &out, const Json &in)
 
void toJson (Json &out, const Segments &in)
 

Constructor & Destructor Documentation

◆ Segments()

Segments::Segments ( )

Member Function Documentation

◆ clear()

void Segments::clear ( )

◆ contains()

bool Segments::contains ( size_t id) const
inline

Referenced by Page::queryWhereSegment().

◆ erase()

void Segments::erase ( size_t pos)

◆ id()

size_t Segments::id ( size_t pos) const
inline

◆ index()

◆ operator[]() [1/2]

Segment & Segments::operator[] ( size_t index)
inline

◆ operator[]() [2/2]

const Segment & Segments::operator[] ( size_t index) const
inline

◆ push_back()

void Segments::push_back ( const Segment & segment)

◆ setDefault()

◆ size()

◆ unusedId()

size_t Segments::unusedId ( ) const

Friends And Related Symbol Documentation

◆ fromJson

void fromJson ( Segments & out,
const Json & in )
friend

◆ toJson

void toJson ( Json & out,
const Segments & in )
friend

Member Data Documentation

◆ hashTableId_

std::unordered_map<size_t, size_t> Segments::hashTableId_
protected

◆ segments_

std::vector<Segment> Segments::segments_
protected

Referenced by clear(), erase(), push_back(), and setDefault().


The documentation for this class was generated from the following files: