// // $Id: SiBaseGeometry.icc,v 1.7 2005/11/29 23:46:28 snyder Exp $ // // File: SiBaseGeometry.icc // Purpose: Inline member implementations for class SiBaseGeometry // Created: 05-NOV-1997 John Hobbs // // Jan 31, 2005 by Shaohua Fu // added Layer0 // SFL0_Jan_2005 // // $Revision: 1.7 $ // // inline int SiBaseGeometry::get_center_count() const { return( _centers.size() ); } inline int SiBaseGeometry::get_end_count() const { return( _ends.size() ); } inline int SiBaseGeometry::get_l0_count() const // added SFL0_Jan_2005 { return( _l0s.size() ); } // added SFL0_Jan_2005 inline const SiCenter* SiBaseGeometry::get_center(int ice) const { if( ice<1 || ice>_centers.size() ) abort(); return &_centers[ice-1]; } inline const SiEnd* SiBaseGeometry::get_end(int ie) const { if( ie<1 || ie>_ends.size() ) abort(); return &_ends[ie-1]; } inline const SiL0* SiBaseGeometry::get_l0(int il0) const // added SFL0_Jan_2005 { if( il0<1 || il0>_l0s.size() ) return 0; // added SFL0_Jan_2005 return &_l0s[il0-1]; // added SFL0_Jan_2005 } inline SiCenter* SiBaseGeometry::get_mutable_center(int ice) { if( ice<1 || ice>_centers.size() ) abort(); return &_centers[ice-1]; } inline SiEnd* SiBaseGeometry::get_mutable_end(int ie) { if( ie<1 || ie>_ends.size() ) abort(); return &_ends[ie-1]; } inline SiL0* SiBaseGeometry::get_mutable_l0(int il0) // added SFL0_Jan_2005 { if( il0<1 || il0>_l0s.size() ) abort(); // added SFL0_Jan_2005 return &_l0s[il0-1]; // added SFL0_Jan_2005 }