Added method used to retrieve an Array's column list.

git-svn-id: http://voip.null.ro/svn/yate@4442 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2011-06-07 11:45:18 +00:00
parent be3c716f79
commit f1ecb27e2c
1 changed files with 13 additions and 0 deletions

View File

@ -1352,6 +1352,19 @@ public:
inline int getColumns() const
{ return m_columns; }
/**
* Retrieve a column.
* Note: Use the returned list only to get or set data.
* List items must not be removed or appended
* @param column Column to retrieve
* @return Pointer to column list, NULL for out of bound indexes
*/
inline ObjList* getColumn(int column) const {
if (column >= 0 || column < m_columns)
return static_cast<ObjList*>(m_obj[column]);
return 0;
}
private:
int m_rows;
int m_columns;