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:
parent
be3c716f79
commit
f1ecb27e2c
13
yateclass.h
13
yateclass.h
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue