Classes | List of all members
orgQhull::Coordinates Class Reference

#include <Coordinates.h>

Classes

class  const_iterator
 
class  iterator
 

Public Types

Subtypes
typedef iterator Iterator
 
typedef const_iterator ConstIterator
 
typedef coordT value_type
 
typedef const value_typeconst_pointer
 
typedef const value_typeconst_reference
 
typedef value_typepointer
 
typedef value_typereference
 
typedef ptrdiff_t difference_type
 
typedef countT size_type
 

Public Member Functions

Construct
 Coordinates ()
 
 Coordinates (const std::vector< coordT > &other)
 
 Coordinates (const Coordinates &other)
 
Coordinatesoperator= (const Coordinates &other)
 
Coordinatesoperator= (const std::vector< coordT > &other)
 
 ~Coordinates ()
 
Conversion
std::vector< coordTtoStdVector () const
 
GetSet
countT count () const
 
coordTdata ()
 
const coordTdata () const
 
bool isEmpty () const
 
bool operator== (const Coordinates &other) const
 
bool operator!= (const Coordinates &other) const
 
size_t size () const
 
Coordinates operator+ (const Coordinates &other) const
 
Element access
coordTat (countT idx)
 
const coordTat (countT idx) const
 
coordTback ()
 
const coordTback () const
 
coordTfirst ()
 
const coordTfirst () const
 
coordTfront ()
 
const coordTfront () const
 
coordTlast ()
 
const coordTlast () const
 
Coordinates mid (countT idx, countT length=-1) const
 
coordToperator[] (countT idx)
 
const coordToperator[] (countT idx) const
 
coordT value (countT idx, const coordT &defaultValue) const
 
Iterator
iterator begin ()
 
const_iterator begin () const
 
const_iterator constBegin () const
 
const_iterator constEnd () const
 
iterator end ()
 
const_iterator end () const
 
Modify
void append (int pointDimension, coordT *c)
 
void append (const coordT &c)
 
void clear ()
 
iterator erase (iterator idx)
 
iterator erase (iterator beginIterator, iterator endIterator)
 
void insert (countT before, const coordT &c)
 
iterator insert (iterator before, const coordT &c)
 
void move (countT from, countT to)
 
Coordinatesoperator+= (const Coordinates &other)
 
Coordinatesoperator+= (const coordT &c)
 
Coordinatesoperator<< (const Coordinates &other)
 
Coordinatesoperator<< (const coordT &c)
 
void pop_back ()
 
void pop_front ()
 
void prepend (const coordT &c)
 
void push_back (const coordT &c)
 
void push_front (const coordT &c)
 
void removeAt (countT idx)
 
void removeFirst ()
 
void removeLast ()
 
void replace (countT idx, const coordT &c)
 
void reserve (countT i)
 
void swap (countT idx, countT other)
 
coordT takeAt (countT idx)
 
coordT takeFirst ()
 
coordT takeLast ()
 
Search
bool contains (const coordT &t) const
 
countT count (const coordT &t) const
 
countT indexOf (const coordT &t, countT from=0) const
 
countT lastIndexOf (const coordT &t, countT from=-1) const
 
void removeAll (const coordT &t)
 

Private Attributes

Fields
std::vector< coordTcoordinate_array
 

Detailed Description

Definition at line 32 of file Coordinates.h.

Member Typedef Documentation

◆ const_pointer

Definition at line 47 of file Coordinates.h.

◆ const_reference

Definition at line 48 of file Coordinates.h.

◆ ConstIterator

Definition at line 44 of file Coordinates.h.

◆ difference_type

Definition at line 51 of file Coordinates.h.

◆ Iterator

Definition at line 42 of file Coordinates.h.

◆ pointer

Definition at line 49 of file Coordinates.h.

◆ reference

Definition at line 50 of file Coordinates.h.

◆ size_type

Definition at line 52 of file Coordinates.h.

◆ value_type

Definition at line 46 of file Coordinates.h.

Constructor & Destructor Documentation

◆ Coordinates() [1/3]

orgQhull::Coordinates::Coordinates ( )
inline

Definition at line 55 of file Coordinates.h.

◆ Coordinates() [2/3]

orgQhull::Coordinates::Coordinates ( const std::vector< coordT > &  other)
inlineexplicit

Definition at line 56 of file Coordinates.h.

◆ Coordinates() [3/3]

orgQhull::Coordinates::Coordinates ( const Coordinates other)
inline

Definition at line 57 of file Coordinates.h.

◆ ~Coordinates()

orgQhull::Coordinates::~Coordinates ( )
inline

Definition at line 60 of file Coordinates.h.

Member Function Documentation

◆ append() [1/2]

void orgQhull::Coordinates::append ( int  pointDimension,
coordT c 
)

Definition at line 75 of file Coordinates.cpp.

◆ append() [2/2]

void orgQhull::Coordinates::append ( const coordT c)
inline

Definition at line 109 of file Coordinates.h.

◆ at() [1/2]

coordT& orgQhull::Coordinates::at ( countT  idx)
inline

Definition at line 81 of file Coordinates.h.

◆ at() [2/2]

const coordT& orgQhull::Coordinates::at ( countT  idx) const
inline

Definition at line 82 of file Coordinates.h.

◆ back() [1/2]

coordT& orgQhull::Coordinates::back ( )
inline

Definition at line 83 of file Coordinates.h.

◆ back() [2/2]

const coordT& orgQhull::Coordinates::back ( ) const
inline

Definition at line 84 of file Coordinates.h.

◆ begin() [1/2]

iterator orgQhull::Coordinates::begin ( )
inline

Definition at line 97 of file Coordinates.h.

◆ begin() [2/2]

const_iterator orgQhull::Coordinates::begin ( ) const
inline

Definition at line 98 of file Coordinates.h.

◆ clear()

void orgQhull::Coordinates::clear ( )
inline

Definition at line 110 of file Coordinates.h.

◆ constBegin()

const_iterator orgQhull::Coordinates::constBegin ( ) const
inline

Definition at line 99 of file Coordinates.h.

◆ constEnd()

const_iterator orgQhull::Coordinates::constEnd ( ) const
inline

Definition at line 100 of file Coordinates.h.

◆ contains()

bool orgQhull::Coordinates::contains ( const coordT t) const

Definition at line 112 of file Coordinates.cpp.

◆ count() [1/2]

countT orgQhull::Coordinates::count ( ) const
inline

Definition at line 72 of file Coordinates.h.

◆ count() [2/2]

countT orgQhull::Coordinates::count ( const coordT t) const

Definition at line 119 of file Coordinates.cpp.

◆ data() [1/2]

coordT* orgQhull::Coordinates::data ( )
inline

Definition at line 73 of file Coordinates.h.

◆ data() [2/2]

const coordT* orgQhull::Coordinates::data ( ) const
inline

Definition at line 74 of file Coordinates.h.

◆ end() [1/2]

iterator orgQhull::Coordinates::end ( )
inline

Definition at line 101 of file Coordinates.h.

◆ end() [2/2]

const_iterator orgQhull::Coordinates::end ( ) const
inline

Definition at line 102 of file Coordinates.h.

◆ erase() [1/2]

iterator orgQhull::Coordinates::erase ( iterator  idx)
inline

Definition at line 111 of file Coordinates.h.

◆ erase() [2/2]

iterator orgQhull::Coordinates::erase ( iterator  beginIterator,
iterator  endIterator 
)
inline

Definition at line 112 of file Coordinates.h.

◆ first() [1/2]

coordT& orgQhull::Coordinates::first ( )
inline

Definition at line 85 of file Coordinates.h.

◆ first() [2/2]

const coordT& orgQhull::Coordinates::first ( ) const
inline

Definition at line 86 of file Coordinates.h.

◆ front() [1/2]

coordT& orgQhull::Coordinates::front ( )
inline

Definition at line 87 of file Coordinates.h.

◆ front() [2/2]

const coordT& orgQhull::Coordinates::front ( ) const
inline

Definition at line 88 of file Coordinates.h.

◆ indexOf()

countT orgQhull::Coordinates::indexOf ( const coordT t,
countT  from = 0 
) const

Definition at line 130 of file Coordinates.cpp.

◆ insert() [1/2]

void orgQhull::Coordinates::insert ( countT  before,
const coordT c 
)
inline

Definition at line 113 of file Coordinates.h.

◆ insert() [2/2]

iterator orgQhull::Coordinates::insert ( iterator  before,
const coordT c 
)
inline

Definition at line 114 of file Coordinates.h.

◆ isEmpty()

bool orgQhull::Coordinates::isEmpty ( ) const
inline

Definition at line 75 of file Coordinates.h.

◆ last() [1/2]

coordT& orgQhull::Coordinates::last ( )
inline

Definition at line 89 of file Coordinates.h.

◆ last() [2/2]

const coordT& orgQhull::Coordinates::last ( ) const
inline

Definition at line 90 of file Coordinates.h.

◆ lastIndexOf()

countT orgQhull::Coordinates::lastIndexOf ( const coordT t,
countT  from = -1 
) const

Definition at line 151 of file Coordinates.cpp.

◆ mid()

Coordinates orgQhull::Coordinates::mid ( countT  idx,
countT  length = -1 
) const
Todo:
countT -1 indicates

Definition at line 31 of file Coordinates.cpp.

◆ move()

void orgQhull::Coordinates::move ( countT  from,
countT  to 
)
inline

Definition at line 115 of file Coordinates.h.

◆ operator!=()

bool orgQhull::Coordinates::operator!= ( const Coordinates other) const
inline

Definition at line 77 of file Coordinates.h.

◆ operator+()

Coordinates orgQhull::Coordinates::operator+ ( const Coordinates other) const

Definition at line 53 of file Coordinates.cpp.

◆ operator+=() [1/2]

Coordinates & orgQhull::Coordinates::operator+= ( const Coordinates other)

Definition at line 61 of file Coordinates.cpp.

◆ operator+=() [2/2]

Coordinates& orgQhull::Coordinates::operator+= ( const coordT c)
inline

Definition at line 117 of file Coordinates.h.

◆ operator<<() [1/2]

Coordinates& orgQhull::Coordinates::operator<< ( const Coordinates other)
inline

Definition at line 118 of file Coordinates.h.

◆ operator<<() [2/2]

Coordinates& orgQhull::Coordinates::operator<< ( const coordT c)
inline

Definition at line 119 of file Coordinates.h.

◆ operator=() [1/2]

Coordinates& orgQhull::Coordinates::operator= ( const Coordinates other)
inline

Definition at line 58 of file Coordinates.h.

◆ operator=() [2/2]

Coordinates& orgQhull::Coordinates::operator= ( const std::vector< coordT > &  other)
inline

Definition at line 59 of file Coordinates.h.

◆ operator==()

bool orgQhull::Coordinates::operator== ( const Coordinates other) const
inline

Definition at line 76 of file Coordinates.h.

◆ operator[]() [1/2]

coordT& orgQhull::Coordinates::operator[] ( countT  idx)
inline

Definition at line 92 of file Coordinates.h.

◆ operator[]() [2/2]

const coordT& orgQhull::Coordinates::operator[] ( countT  idx) const
inline

Definition at line 93 of file Coordinates.h.

◆ pop_back()

void orgQhull::Coordinates::pop_back ( )
inline

Definition at line 120 of file Coordinates.h.

◆ pop_front()

void orgQhull::Coordinates::pop_front ( )
inline

Definition at line 121 of file Coordinates.h.

◆ prepend()

void orgQhull::Coordinates::prepend ( const coordT c)
inline

Definition at line 122 of file Coordinates.h.

◆ push_back()

void orgQhull::Coordinates::push_back ( const coordT c)
inline

Definition at line 123 of file Coordinates.h.

◆ push_front()

void orgQhull::Coordinates::push_front ( const coordT c)
inline

Definition at line 124 of file Coordinates.h.

◆ removeAll()

void orgQhull::Coordinates::removeAll ( const coordT t)

Definition at line 170 of file Coordinates.cpp.

◆ removeAt()

void orgQhull::Coordinates::removeAt ( countT  idx)
inline

Definition at line 126 of file Coordinates.h.

◆ removeFirst()

void orgQhull::Coordinates::removeFirst ( )
inline

Definition at line 127 of file Coordinates.h.

◆ removeLast()

void orgQhull::Coordinates::removeLast ( )
inline

Definition at line 128 of file Coordinates.h.

◆ replace()

void orgQhull::Coordinates::replace ( countT  idx,
const coordT c 
)
inline

Definition at line 129 of file Coordinates.h.

◆ reserve()

void orgQhull::Coordinates::reserve ( countT  i)
inline

Definition at line 130 of file Coordinates.h.

◆ size()

size_t orgQhull::Coordinates::size ( ) const
inline

Definition at line 78 of file Coordinates.h.

◆ swap()

void orgQhull::Coordinates::swap ( countT  idx,
countT  other 
)

Definition at line 102 of file Coordinates.cpp.

◆ takeAt()

coordT orgQhull::Coordinates::takeAt ( countT  idx)

Definition at line 86 of file Coordinates.cpp.

◆ takeFirst()

coordT orgQhull::Coordinates::takeFirst ( )
inline

Definition at line 133 of file Coordinates.h.

◆ takeLast()

coordT orgQhull::Coordinates::takeLast ( )

Definition at line 94 of file Coordinates.cpp.

◆ toStdVector()

std::vector<coordT> orgQhull::Coordinates::toStdVector ( ) const
inline

Definition at line 65 of file Coordinates.h.

◆ value()

coordT orgQhull::Coordinates::value ( countT  idx,
const coordT defaultValue 
) const

Definition at line 45 of file Coordinates.cpp.

Member Data Documentation

◆ coordinate_array

std::vector<coordT> orgQhull::Coordinates::coordinate_array
private

Definition at line 36 of file Coordinates.h.


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


hpp-fcl
Author(s):
autogenerated on Fri Jun 2 2023 02:39:03