PPoint2DfList Class Reference

Detailed Description

The PPoint2DfList class represents a list of PPoint2Df.


PPoint2DfList pl; // ... fill up pl ... for (int32 idx = 0, sz = pl.Size(); idx < sz; ++idx) { PPoint2Df pt = pl.Get(idx); //... use pt ... }

Definition at line 37 of file PPoint2DfList.h.

#include <PPoint2DfList.h>

Constructor & Destructor Documentation

◆ PPoint2DfList() [1/2]

PPoint2DfList::PPoint2DfList ( )

Constructs an empty list of points.

◆ PPoint2DfList() [2/2]

PPoint2DfList::PPoint2DfList ( const PPoint2DfList other)

Constructs a shared copy of other.

See also

◆ ~PPoint2DfList()

virtual PPoint2DfList::~PPoint2DfList ( )

Destroys this object.

Member Function Documentation

◆ Add()

void PPoint2DfList::Add ( const PPoint2Df p)

Adds the specified point to this list.

◆ Clear()

void PPoint2DfList::Clear ( )

Removes all the points stored in this set.

◆ Get()

PPoint2Df PPoint2DfList::Get ( papillon::int32  n) const

Returns the nth point of this example set, or PPoint2Df::Bad() (see PPoint2Df::IsValid()) if n is not a valid index.

◆ IsEmpty()

bool PPoint2DfList::IsEmpty ( ) const

Returns true if this list is empty, false otherwise.

◆ operator=()

PPoint2DfList& PPoint2DfList::operator= ( const PPoint2DfList other)

Performs a shared copy of other to this object.

◆ Size()

papillon::int32 PPoint2DfList::Size ( ) const

Returns the number of points in this list.