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

#include <Coordinates.h>

Classes

class  const_iterator
 
class  iterator
 

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
 

Subtypes

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

Detailed Description

Definition at line 38 of file Coordinates.h.

Member Typedef Documentation

◆ ConstIterator

Definition at line 50 of file Coordinates.h.

◆ difference_type

Definition at line 57 of file Coordinates.h.

◆ Iterator

Definition at line 48 of file Coordinates.h.

◆ pointer

Definition at line 55 of file Coordinates.h.

◆ reference

Definition at line 56 of file Coordinates.h.

◆ size_type

Definition at line 58 of file Coordinates.h.

◆ value_type

Definition at line 52 of file Coordinates.h.

Constructor & Destructor Documentation

◆ Coordinates() [1/3]

orgQhull::Coordinates::Coordinates ( )
inline

Definition at line 61 of file Coordinates.h.

◆ Coordinates() [2/3]

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

Definition at line 62 of file Coordinates.h.

◆ Coordinates() [3/3]

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

Definition at line 63 of file Coordinates.h.

◆ ~Coordinates()

orgQhull::Coordinates::~Coordinates ( )
inline

Definition at line 66 of file Coordinates.h.

Member Function Documentation

◆ append() [1/2]

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

Definition at line 115 of file Coordinates.h.

◆ append() [2/2]

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

Definition at line 81 of file Coordinates.cpp.

◆ at() [1/2]

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

Definition at line 87 of file Coordinates.h.

◆ at() [2/2]

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

Definition at line 88 of file Coordinates.h.

◆ back() [1/2]

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

Definition at line 89 of file Coordinates.h.

◆ back() [2/2]

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

Definition at line 90 of file Coordinates.h.

◆ begin() [1/2]

iterator orgQhull::Coordinates::begin ( )
inline

Definition at line 103 of file Coordinates.h.

◆ begin() [2/2]

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

Definition at line 104 of file Coordinates.h.

◆ clear()

void orgQhull::Coordinates::clear ( )
inline

Definition at line 116 of file Coordinates.h.

◆ constBegin()

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

Definition at line 105 of file Coordinates.h.

◆ constEnd()

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

Definition at line 106 of file Coordinates.h.

◆ contains()

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

Definition at line 118 of file Coordinates.cpp.

◆ count() [1/2]

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

Definition at line 78 of file Coordinates.h.

◆ count() [2/2]

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

Definition at line 125 of file Coordinates.cpp.

◆ data() [1/2]

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

Definition at line 79 of file Coordinates.h.

◆ data() [2/2]

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

Definition at line 80 of file Coordinates.h.

◆ end() [1/2]

iterator orgQhull::Coordinates::end ( )
inline

Definition at line 107 of file Coordinates.h.

◆ end() [2/2]

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

Definition at line 108 of file Coordinates.h.

◆ erase() [1/2]

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

Definition at line 118 of file Coordinates.h.

◆ erase() [2/2]

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

Definition at line 117 of file Coordinates.h.

◆ first() [1/2]

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

Definition at line 91 of file Coordinates.h.

◆ first() [2/2]

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

Definition at line 92 of file Coordinates.h.

◆ front() [1/2]

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

Definition at line 93 of file Coordinates.h.

◆ front() [2/2]

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

Definition at line 94 of file Coordinates.h.

◆ indexOf()

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

Definition at line 136 of file Coordinates.cpp.

◆ insert() [1/2]

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

Definition at line 119 of file Coordinates.h.

◆ insert() [2/2]

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

Definition at line 120 of file Coordinates.h.

◆ isEmpty()

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

Definition at line 81 of file Coordinates.h.

◆ last() [1/2]

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

Definition at line 95 of file Coordinates.h.

◆ last() [2/2]

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

Definition at line 96 of file Coordinates.h.

◆ lastIndexOf()

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

Definition at line 157 of file Coordinates.cpp.

◆ mid()

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

Definition at line 37 of file Coordinates.cpp.

◆ move()

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

Definition at line 121 of file Coordinates.h.

◆ operator!=()

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

Definition at line 83 of file Coordinates.h.

◆ operator+()

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

Definition at line 59 of file Coordinates.cpp.

◆ operator+=() [1/2]

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

Definition at line 67 of file Coordinates.cpp.

◆ operator+=() [2/2]

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

Definition at line 123 of file Coordinates.h.

◆ operator<<() [1/2]

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

Definition at line 124 of file Coordinates.h.

◆ operator<<() [2/2]

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

Definition at line 125 of file Coordinates.h.

◆ operator=() [1/2]

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

Definition at line 64 of file Coordinates.h.

◆ operator=() [2/2]

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

Definition at line 65 of file Coordinates.h.

◆ operator==()

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

Definition at line 82 of file Coordinates.h.

◆ operator[]() [1/2]

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

Definition at line 98 of file Coordinates.h.

◆ operator[]() [2/2]

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

Definition at line 99 of file Coordinates.h.

◆ pop_back()

void orgQhull::Coordinates::pop_back ( )
inline

Definition at line 126 of file Coordinates.h.

◆ pop_front()

void orgQhull::Coordinates::pop_front ( )
inline

Definition at line 127 of file Coordinates.h.

◆ prepend()

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

Definition at line 128 of file Coordinates.h.

◆ push_back()

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

Definition at line 129 of file Coordinates.h.

◆ push_front()

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

Definition at line 130 of file Coordinates.h.

◆ removeAll()

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

Definition at line 176 of file Coordinates.cpp.

◆ removeAt()

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

Definition at line 132 of file Coordinates.h.

◆ removeFirst()

void orgQhull::Coordinates::removeFirst ( )
inline

Definition at line 133 of file Coordinates.h.

◆ removeLast()

void orgQhull::Coordinates::removeLast ( )
inline

Definition at line 134 of file Coordinates.h.

◆ replace()

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

Definition at line 135 of file Coordinates.h.

◆ reserve()

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

Definition at line 136 of file Coordinates.h.

◆ size()

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

Definition at line 84 of file Coordinates.h.

◆ swap()

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

Definition at line 108 of file Coordinates.cpp.

◆ takeAt()

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

Definition at line 92 of file Coordinates.cpp.

◆ takeFirst()

coordT orgQhull::Coordinates::takeFirst ( )
inline

Definition at line 139 of file Coordinates.h.

◆ takeLast()

coordT orgQhull::Coordinates::takeLast ( )

Definition at line 100 of file Coordinates.cpp.

◆ toStdVector()

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

Definition at line 71 of file Coordinates.h.

◆ value()

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

Definition at line 51 of file Coordinates.cpp.

Member Data Documentation

◆ const_pointer

const typedef value_type* orgQhull::Coordinates::const_pointer

Definition at line 53 of file Coordinates.h.

◆ const_reference

const typedef value_type& orgQhull::Coordinates::const_reference

Definition at line 54 of file Coordinates.h.

◆ coordinate_array

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

Definition at line 42 of file Coordinates.h.


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


hpp-fcl
Author(s):
autogenerated on Fri Aug 2 2024 02:45:17