CartoType C++ API 7.8.2, 2022-03-25
for Windows, Linux, Qt and other platforms supporting C++ development
Classes | Public Member Functions | List of all members
CartoType::CList< T > Class Template Reference

#include <cartotype_list.h>

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

Classes

class  TConstIter
 
class  TIter
 

Public Member Functions

void Clear ()
 
int32_t Count () const
 
void Prefix (const T &aT)
 
void Append (const T &aT)
 
void Delete (TIter &aIter)
 
TIter First ()
 
TIter Last ()
 
TConstIter First () const
 
TConstIter Last () const
 
TIter Iter (TListLink *aLink)
 
TConstIter Iter (const TListLink *aLink)
 

Detailed Description

template<class T>
class CartoType::CList< T >

A list class designed to hold small objects directly.

Member Function Documentation

◆ Append()

template<class T >
void CartoType::CList< T >::Append ( const T &  aT)
inline

Inserts a new element at the end of the list.

◆ Clear()

template<class T >
void CartoType::CList< T >::Clear ( )
inline

Deletes all objects from the list.

◆ Count()

template<class T >
int32_t CartoType::CList< T >::Count ( ) const
inline

Returns the number of elements in the list.

◆ Delete()

template<class T >
void CartoType::CList< T >::Delete ( TIter aIter)
inline

Deletes the element referred to by the iterator aIter.

◆ First() [1/2]

template<class T >
TIter CartoType::CList< T >::First ( )
inline

Returns a non-constant iterator referring to the first element of the list.

◆ First() [2/2]

template<class T >
TConstIter CartoType::CList< T >::First ( ) const
inline

Returns a constant iterator referring to the first element of the list.

◆ Iter() [1/2]

template<class T >
TConstIter CartoType::CList< T >::Iter ( const TListLink aLink)
inline

Returns a constant iterator referring to a specified link.

◆ Iter() [2/2]

template<class T >
TIter CartoType::CList< T >::Iter ( TListLink aLink)
inline

Returns a non-constant iterator referring to a specified link.

◆ Last() [1/2]

template<class T >
TIter CartoType::CList< T >::Last ( )
inline

Returns a non-constant iterator referring to the last element of the list.

◆ Last() [2/2]

template<class T >
TConstIter CartoType::CList< T >::Last ( ) const
inline

Returns a constant iterator referring to the last element of the list.

◆ Prefix()

template<class T >
void CartoType::CList< T >::Prefix ( const T &  aT)
inline

Inserts a new element at the start of the list.


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