Container of free polygons. More...

#include <rfreepolygons.h>

Inheritance diagram for RFreePolygons:
[legend]
Collaboration diagram for RFreePolygons:
[legend]

Public Member Functions

 RFreePolygons (void)
 
 RFreePolygons (const RFreePolygons &cont)
 
RPoint CanPlace (RGeoInfo *info)
 
virtual ~RFreePolygons (void)
 
- Public Member Functions inherited from RContainer< RFreePolygon, true, false >
 RContainer (size_t m, size_t i=0)
 
 RContainer (const RContainer< RFreePolygon, true, false > &src)
 
 RContainer (const RContainer< RFreePolygon, false, false > &src)
 
int Compare (const RContainer< RFreePolygon, true, false > &) const
 
size_t GetNb (void) const
 
size_t GetMaxPos (void) const
 
size_t GetMaxNb (void) const
 
size_t GetIncNb (void) const
 
bool VerifyIndex (size_t idx) const
 
void VerifyTab (size_t max=0)
 
void Clear (size_t m=0, size_t i=0, bool force=false)
 
void ReOrder (int sortOrder(const void *, const void *), size_t min, size_t max)
 
void ReOrder (int sortOrder(const void *, const void *))
 
void ReOrder (void)
 
void Exchange (size_t pos1, size_t pos2)
 
void Shift (size_t idx, bool reverse)
 
void Transfer (RContainer< RFreePolygon, a, o > &src)
 
RContaineroperator= (const RContainer< RFreePolygon, true, false > &src)
 
RContaineroperator= (const RContainer< RFreePolygon, false, false > &src)
 
void Copy (const RContainer< RFreePolygon, a, false > &src)
 
RContaineroperator+= (const RContainer< RFreePolygon, a, o > &src)
 
size_t GetIndex (const TUse &tag, bool &find, size_t min=0, size_t max=0) const
 
bool IsIn (const TUse &tag, bool sortkey, size_t min=0, size_t max=0) const
 
bool IsIn (const TUse &tag, size_t min=0, size_t max=0) const
 
const RFreePolygonoperator[] (size_t idx) const
 
RFreePolygonoperator[] (size_t idx)
 
const RFreePolygonGetPtrAt (size_t idx) const
 
RFreePolygonGetPtrAt (size_t idx)
 
RFreePolygonGetPtr (const TUse &tag, bool sortkey, size_t min=0, size_t max=0) const
 
RFreePolygonGetPtr (const TUse &tag, size_t min=0, size_t max=0) const
 
RFreePolygonGetInsertPtr (const TUse &tag, bool sortkey, size_t min=0, size_t max=0)
 
RFreePolygonGetInsertPtr (const TUse &tag, size_t min=0, size_t max=0)
 
RFreePolygonGetInsertPtrAt (const TUse &tag, size_t pos)
 
RContainer< RFreePolygon,
false, false > * 
GetPtrs (const TUse &tag, size_t min=0, size_t max=0) const
 
size_t GetTab (const void **tab, size_t min=0, size_t max=0) const
 
size_t GetTab (void **tab, size_t min=0, size_t max=0)
 
size_t GetTab (const RFreePolygon **tab, size_t min=0, size_t max=0) const
 
size_t GetTab (RFreePolygon **tab, size_t min=0, size_t max=0)
 
void InsertPtrAt (RFreePolygon *ins, size_t pos, bool del)
 
void InsertPtrAt (RFreePolygon *ins, size_t pos)
 
void InsertPtr (RFreePolygon *ins, bool del=false, size_t min=0, size_t max=0)
 
void DeletePtrAt (size_t pos, bool shift, bool del)
 
void DeletePtrAt (size_t pos, bool shift)
 
void DeletePtrAt (size_t pos)
 
void DeletePtr (const TUse &tag, bool sortkey, bool del, size_t min=0, size_t max=0)
 
void DeletePtr (const TUse &tag, bool sortkey, size_t min=0, size_t max=0)
 
void DeletePtr (const TUse &tag, size_t min=0, size_t max=0)
 
void Inter (const iRContainer< RFreePolygon > &src1, const iRContainer< RFreePolygon > &src2)
 
void Union (const iRContainer< RFreePolygon > &src1, const iRContainer< RFreePolygon > &src2)
 
virtual ~RContainer (void)
 
- Public Member Functions inherited from iRContainer< C >
size_t GetNb (void) const
 
size_t GetMaxPos (void) const
 
size_t GetMaxNb (void) const
 
size_t GetIncNb (void) const
 
bool VerifyIndex (size_t idx) const
 
void VerifyTab (size_t max=0)
 
void Clear (size_t m=0, size_t i=0, bool force=false)
 
void ReOrder (int sortOrder(const void *, const void *), size_t min, size_t max)
 
void ReOrder (int sortOrder(const void *, const void *))
 
void ReOrder (void)
 
void Exchange (size_t pos1, size_t pos2)
 
void Shift (size_t idx, bool reverse)
 
void Transfer (iRContainer< C > &src)
 
iRContaineroperator= (const iRContainer< C > &src)
 
void Copy (const iRContainer< C > &src)
 
iRContaineroperator+= (const iRContainer< C > &src)
 
size_t GetIndex (bool order, const TUse &tag, bool &find, size_t min=0, size_t max=0) const
 
size_t GetIndex (const TUse &tag, bool &find, size_t min=0, size_t max=0) const
 
bool IsIn (const TUse &tag, bool sortkey, size_t min=0, size_t max=0) const
 
bool IsIn (const TUse &tag, size_t min=0, size_t max=0) const
 
const C * operator[] (size_t idx) const
 
C * operator[] (size_t idx)
 
const C * GetPtrAt (size_t idx) const
 
C * GetPtrAt (size_t idx)
 
C * GetPtr (const TUse &tag, bool sortkey, size_t min=0, size_t max=0) const
 
C * GetPtr (const TUse &tag, size_t min=0, size_t max=0) const
 
C * GetInsertPtr (const TUse &tag, bool sortkey, size_t min=0, size_t max=0)
 
C * GetInsertPtr (const TUse &tag, size_t min=0, size_t max=0)
 
C * GetInsertPtrAt (const TUse &tag, size_t pos)
 
size_t GetTab (const void **tab, size_t min=0, size_t max=0) const
 
size_t GetTab (void **tab, size_t min=0, size_t max=0)
 
size_t GetTab (const C **tab, size_t min=0, size_t max=0) const
 
size_t GetTab (C **tab, size_t min=0, size_t max=0)
 
void InsertPtrAt (C *ins, size_t pos, bool del)
 
void InsertPtrAt (C *ins, size_t pos)
 
void InsertPtr (C *ins, bool del=false, size_t min=0, size_t max=0)
 
void DeletePtrAt (size_t pos, bool shift, bool del)
 
void DeletePtrAt (size_t pos, bool shift)
 
void DeletePtrAt (size_t pos)
 
void DeletePtr (const TUse &tag, bool sortkey, bool del, size_t min=0, size_t max=0)
 
void DeletePtr (const TUse &tag, bool sortkey, size_t min=0, size_t max=0)
 
void DeletePtr (const TUse &tag, size_t min=0, size_t max=0)
 
void Inter (const iRContainer< C > &src1, const iRContainer< C > &src2)
 
void Union (const iRContainer< C > &src1, const iRContainer< C > &src2)
 
virtual ~iRContainer (void)
 

Additional Inherited Members

- Static Public Member Functions inherited from RContainer< RFreePolygon, true, false >
static int SortOrder (const void *a, const void *b)
 
- Static Public Member Functions inherited from iRContainer< C >
static int SortOrder (const void *a, const void *b)
 
- Protected Member Functions inherited from iRContainer< C >
void Create (const iRContainer< C > &src)
 
iRContainerNormalCopy (const iRContainer< C > &src)
 
void DeepCopy (const iRContainer< C > &src)
 
iRContainerAdd (const iRContainer< C > &src)
 
- Protected Attributes inherited from iRContainer< C >
C ** Tab
 
size_t NbPtr
 
size_t MaxPtr
 
size_t LastPtr
 
size_t IncPtr
 

Detailed Description

Container of free polygons.

The RFreePolygons provides a representation for a container of polygons.

Constructor & Destructor Documentation

RFreePolygons ( void  )

Construct the container.

RFreePolygons ( const RFreePolygons cont)

Construct the container from another one.

virtual ~RFreePolygons ( void  )
virtual

Destruct the container.

Member Function Documentation

RPoint CanPlace ( RGeoInfo info)

Calculate a position for the given geometric information.

Parameters
infoThe object to place.
Returns
The function returns a valid position the object could be placed.