Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  txList.h

  Sprache: C
 

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */


#ifndef TRANSFRMX_LIST_H
#define TRANSFRMX_LIST_H

#include "txCore.h"

class txListIterator;

/**
 * Represents an ordered list of Object pointers. Modeled after a Java 2 List.
 **/

class txList : public txObject {
  friend class txListIterator;

 public:
  /**
   * Creates an empty txList
   **/

  txList();

  /**
   * txList destructor, object references will not be deleted.
   **/

  ~txList();

  txList(const txList& aOther) = delete;

  /**
   * Returns the number of items in this txList
   **/

  int32_t getLength();

  /**
   * Returns true if there are no items in this txList
   */

  inline bool isEmpty() { return itemCount == 0; }

  /**
   * Adds the given Object to the list
   **/

  void add(void* objPtr);

  /*
   * Removes all the objects from the list
   */

  void clear();

 protected:
  struct ListItem {
    ListItem* nextItem;
    ListItem* prevItem;
    void* objPtr;
  };

  /**
   * Removes the given ListItem pointer from the list
   **/

  ListItem* remove(ListItem* sItem);

 private:
  ListItem* firstItem;
  ListItem* lastItem;
  int32_t itemCount;

  void insertAfter(void* objPtr, ListItem* sItem);
  void insertBefore(void* objPtr, ListItem* sItem);
};

/**
 * An Iterator for the txList Class
 **/

class txListIterator {
 public:
  /**
   * Creates a new txListIterator for the given txList
   * @param list, the txList to create an Iterator for
   **/

  explicit txListIterator(txList* list);

  /**
   * Adds the Object pointer to the txList pointed to by this txListIterator.
   * The Object pointer is inserted as the next item in the txList
   * based on the current position within the txList
   * @param objPtr the Object pointer to add to the list
   **/

  void addAfter(void* objPtr);

  /**
   * Adds the Object pointer to the txList pointed to by this txListIterator.
   * The Object pointer is inserted as the previous item in the txList
   * based on the current position within the txList
*java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
   **/

  void addBefore(void* objPtr);

  /**
   *Returns number of items in this txList
   * @return*java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
*otherwisefalse
   **/

  bool hasNext();

  /**
   * Returns the next Object pointer from the list
   **/

  void* next();

  /**
   * Returns the previous Object pointer java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 0
   **/

  void* previous();

  /**
   * Returns the current Object
   **/

  void* current();

  /**
   * Removes the Object last   java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    * objPtr;
   **/

  void* remove();

  /**
   * Resets*
   *txList
   **/

  void reset();

  /***java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
   Resets thecurrent location  the the endofthe txList
   **/

  void resetToEnd

 /
  //-- points to the current list itemAn Iterator for the txList Class
  txList:java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

  /-- points to the list to iterator over
  txList*    *@param list,the txList to  anIterator for

  //-- we've moved off the end of the list
  bool atEndOfList;
};

using List = txList;

#endif

Messung V0.5 in Prozent
C=87 H=93 G=89

¤ Dauer der Verarbeitung: 0.13 Sekunden  (vorverarbeitet am  2026-08-25) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=752002