Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
BCCorners Struct Reference
Collaboration diagram for BCCorners:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 BCCorners (PRInt32 aNumCorners, PRInt32 aStartIndex)
 ~BCCorners ()
BCCornerInfooperator[] (PRInt32 i) const

Public Attributes

PRInt32 startIndex
PRInt32 endIndex
BCCornerInfocorners

Detailed Description

Definition at line 5603 of file nsTableFrame.cpp.


Constructor & Destructor Documentation

BCCorners::BCCorners ( PRInt32  aNumCorners,
PRInt32  aStartIndex 
)

Definition at line 5619 of file nsTableFrame.cpp.

{
  NS_ASSERTION((aNumCorners > 0) && (aStartIndex >= 0), "program error");
  startIndex = aStartIndex;
  endIndex   = aStartIndex + aNumCorners - 1;
  corners    = new BCCornerInfo[aNumCorners]; 
}
BCCorners::~BCCorners ( ) [inline]

Definition at line 5608 of file nsTableFrame.cpp.

{ delete [] corners; }

Member Function Documentation

BCCornerInfo& BCCorners::operator[] ( PRInt32  i) const [inline]

Definition at line 5610 of file nsTableFrame.cpp.

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

Member Data Documentation

Definition at line 5616 of file nsTableFrame.cpp.

Definition at line 5615 of file nsTableFrame.cpp.

Definition at line 5614 of file nsTableFrame.cpp.


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