CartoType C++ API 7.8.2, 2022-03-25
for Windows, Linux, Qt and other platforms supporting C++ development
Public Member Functions | Protected Attributes | List of all members
CartoType::CListBase Class Reference

#include <cartotype_list.h>

Inheritance diagram for CartoType::CListBase:
CartoType::CList< CBuffer > CartoType::CList< T > CartoType::CPointerList< T >

Public Member Functions

void Link (TListLink *aLink, TListLink *aNext)
 
void Insert (TListLink *aLink, TListLink *aNext)
 
void Delete (TListLink *aLink)
 
void MoveToStart (TListLink *aLink)
 
void MoveTo (TListLink *aLink, TListLink *aNext)
 
const TListLinkStart () const
 
TListLinkStart ()
 

Protected Attributes

TListLinkiStart = nullptr
 
int32_t iElements = 0
 

Detailed Description

The base class for the CList and CPointerList template classes.

Member Function Documentation

◆ Delete()

void CartoType::CListBase::Delete ( TListLink aLink)

Deletes aLink, which must not be null.

◆ Insert()

void CartoType::CListBase::Insert ( TListLink aLink,
TListLink aNext 
)

Inserts aLink, which must not be null, into the list before aNext.

◆ Link()

void CartoType::CListBase::Link ( TListLink aLink,
TListLink aNext 
)

Links aLink, which must not be null, into the list before aNext, or at the end of the list if aNext is null. Does not change the start item.

◆ MoveTo()

void CartoType::CListBase::MoveTo ( TListLink aLink,
TListLink aNext 
)
inline

Moves aLink to the position before aNext.

◆ MoveToStart()

void CartoType::CListBase::MoveToStart ( TListLink aLink)
inline

Moves aLink to the start of the list.

◆ Start() [1/2]

TListLink * CartoType::CListBase::Start ( )
inline

Returns a non-const pointer to the first item in the list, or null if the list is empty.

◆ Start() [2/2]

const TListLink * CartoType::CListBase::Start ( ) const
inline

Returns the first item in the list, or null if the list is empty.

Member Data Documentation

◆ iElements

int32_t CartoType::CListBase::iElements = 0
protected

The number of elements in the list.

◆ iStart

TListLink* CartoType::CListBase::iStart = nullptr
protected

The first link in the list. If the list is empty it is null.


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