CargoDestEntry Struct Reference

List of cargo for either one next hop or one destination. More...

Public Types

enum  Type { FINAL_DEST, NEXT_HOP, TRANSFER_HOP }
 

Enum for type of stored data.

More...
typedef std::list< CargoDestEntryList

Public Member Functions

 CargoDestEntry (Type type, StationID station, uint count, SourceType st=ST_INDUSTRY)
void Zero ()
 Zero out this entry and all child entries.
void RemoveEmpty ()
 Remove all empty child entries.
int UpdateRowCount (int row)
 Update header row number.

Data Fields

List children
 Child entries of this entry.
CargoData data
 Stores the info for the current item.
Type type
 Type of the data stored in entry.
uint16 start_row
 Row number of the header line.
bool expanded
 Is this entry expanded?

Detailed Description

List of cargo for either one next hop or one destination.

Definition at line 891 of file station_gui.cpp.


Member Enumeration Documentation

Enum for type of stored data.

Enumerator:
FINAL_DEST 

Data is the final destination.

NEXT_HOP 

Data is the next hop.

TRANSFER_HOP 

Data is the transfer station.

Definition at line 895 of file station_gui.cpp.


Member Function Documentation

void CargoDestEntry::RemoveEmpty (  )  [inline]

Remove all empty child entries.

Definition at line 925 of file station_gui.cpp.

References children.

int CargoDestEntry::UpdateRowCount ( int  row  )  [inline]

Update header row number.

Definition at line 938 of file station_gui.cpp.

References children, expanded, and start_row.

void CargoDestEntry::Zero (  )  [inline]

Zero out this entry and all child entries.

Definition at line 915 of file station_gui.cpp.

References children, data, and start_row.


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

Generated on Mon May 9 05:19:41 2011 for OpenTTD by  doxygen 1.6.1