Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
BCCellBorders Struct Reference
Collaboration diagram for BCCellBorders:
Collaboration graph

List of all members.

Public Member Functions

 BCCellBorders (PRInt32 aNumBorders, PRInt32 aStartIndex)
 ~BCCellBorders ()
BCCellBorderoperator[] (PRInt32 i) const

Public Attributes

PRInt32 startIndex
PRInt32 endIndex

Detailed Description

Definition at line 5629 of file nsTableFrame.cpp.

Constructor & Destructor Documentation

BCCellBorders::BCCellBorders ( PRInt32  aNumBorders,
PRInt32  aStartIndex 

Definition at line 5645 of file nsTableFrame.cpp.

  NS_ASSERTION((aNumBorders > 0) && (aStartIndex >= 0), "program error");
  startIndex = aStartIndex;
  endIndex   = aStartIndex + aNumBorders - 1;
  borders    = new BCCellBorder[aNumBorders]; 

Definition at line 5634 of file nsTableFrame.cpp.

{ delete [] borders; }

Member Function Documentation

BCCellBorder& BCCellBorders::operator[] ( PRInt32  i) const [inline]

Definition at line 5636 of file nsTableFrame.cpp.

  { NS_ASSERTION((i >= startIndex) && (i <= endIndex), "program error");
    return borders[PR_MAX(PR_MIN(i, endIndex), startIndex) - startIndex]; }

Member Data Documentation

Definition at line 5642 of file nsTableFrame.cpp.

Definition at line 5641 of file nsTableFrame.cpp.

Definition at line 5640 of file nsTableFrame.cpp.

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