JX Application Framework
Loading...
Searching...
No Matches
Public Member Functions | List of all members
JObjTableData< T > Class Template Reference

#include <JObjTableData.h>

Inheritance diagram for JObjTableData< T >:
[legend]

Public Member Functions

 JObjTableData ()
 
 JObjTableData (const JObjTableData< T > &source)
 
 ~JObjTableData () override
 
const T & GetItem (const JIndex row, const JIndex col) const
 
const T & GetItem (const JPoint &cell) const
 
void SetItem (const JIndex row, const JIndex col, const T &data)
 
void SetItem (const JPoint &cell, const T &data)
 
void GetRow (const JIndex index, JPtrArray< T > *rowData) const
 
void SetRow (const JIndex index, const JPtrArray< T > &rowData)
 
void GetCol (const JIndex index, JPtrArray< T > *colData) const
 
void SetCol (const JIndex index, const JPtrArray< T > &colData)
 
void InsertRows (const JIndex index, const JSize count, const JPtrArray< T > *initData=nullptr)
 
void PrependRows (const JSize count, const JPtrArray< T > *initData=nullptr)
 
void AppendRows (const JSize count, const JPtrArray< T > *initData=nullptr)
 
void DuplicateRow (const JIndex origIndex, const JIndex newIndex)
 
void RemoveRow (const JIndex index)
 
void RemoveNextRows (const JIndex firstIndex, const JSize count)
 
void RemovePrevRows (const JIndex lastIndex, const JSize count)
 
void RemoveAllRows ()
 
void MoveRow (const JIndex origIndex, const JIndex newIndex)
 
void InsertCols (const JIndex index, const JSize count, const JPtrArray< T > *initData=nullptr)
 
void PrependCols (const JSize count, const JPtrArray< T > *initData=nullptr)
 
void AppendCols (const JSize count, const JPtrArray< T > *initData=nullptr)
 
void DuplicateCol (const JIndex origIndex, const JIndex newIndex)
 
void RemoveCol (const JIndex index)
 
void RemoveNextCols (const JIndex firstIndex, const JSize count)
 
void RemovePrevCols (const JIndex lastIndex, const JSize count)
 
void RemoveAllCols ()
 
void MoveCol (const JIndex origIndex, const JIndex newIndex)
 
- Public Member Functions inherited from JTableData
 JTableData ()
 
 JTableData (const JTableData &source)
 
 ~JTableData () override
 
JTableDataoperator= (const JTableData &source)
 
bool IsEmpty () const
 
JSize GetRowCount () const
 
bool RowIndexValid (const JIndex index) const
 
JSize GetColCount () const
 
bool ColIndexValid (const JIndex index) const
 
bool CellValid (const JPoint &cell) const
 
- Public Member Functions inherited from JBroadcaster
 JBroadcaster ()
 
virtual ~JBroadcaster ()
 
JBroadcasteroperator= (const JBroadcaster &source)
 
bool HasSenders () const
 
JSize GetSenderCount () const
 
bool HasRecipients () const
 
JSize GetRecipientCount () const
 
virtual JString ToString () const
 
template<class T >
void ListenTo (const JBroadcaster *sender, const std::function< void(const T &)> &f)
 

Additional Inherited Members

- Static Public Attributes inherited from JTableData
static const JUtf8BytekRowsInserted = "RowsInserted::JTableData"
 
static const JUtf8BytekRowDuplicated = "RowDuplicated::JTableData"
 
static const JUtf8BytekRowsRemoved = "RowsRemoved::JTableData"
 
static const JUtf8BytekRowMoved = "RowMoved::JTableData"
 
static const JUtf8BytekColsInserted = "ColsInserted::JTableData"
 
static const JUtf8BytekColDuplicated = "ColDuplicated::JTableData"
 
static const JUtf8BytekColsRemoved = "ColsRemoved::JTableData"
 
static const JUtf8BytekColMoved = "ColMoved::JTableData"
 
static const JUtf8BytekRectChanged = "RectChanged::JTableData"
 
- Protected Member Functions inherited from JTableData
void RowsAdded (const JSize count)
 
void RowsDeleted (const JSize count)
 
void SetRowCount (const JSize newRowCount)
 
void ColsAdded (const JSize count)
 
void ColsDeleted (const JSize count)
 
void SetColCount (const JSize newColCount)
 
- Protected Member Functions inherited from JBroadcaster
 JBroadcaster (const JBroadcaster &source)
 
void ListenTo (const JBroadcaster *sender)
 
void StopListening (const JBroadcaster *sender)
 
void ClearWhenGoingAway (const JBroadcaster *sender, void *pointerToMember)
 
void StopListening (const JBroadcaster *sender, const std::type_info &messageType)
 
template<class T >
void Send (JBroadcaster *recipient, const T &message)
 
template<class T >
void Broadcast (const T &message)
 
virtual void Receive (JBroadcaster *sender, const Message &message)
 
void SendWithFeedback (JBroadcaster *recipient, Message *message)
 
void BroadcastWithFeedback (Message *message)
 
virtual void ReceiveWithFeedback (JBroadcaster *sender, Message *message)
 
virtual void ReceiveGoingAway (JBroadcaster *sender)
 

Detailed Description

template<class T>
class JObjTableData< T >

Interface for the JObjTableData Class

Constructor & Destructor Documentation

◆ JObjTableData() [1/2]

template<class T >
JObjTableData< T >::JObjTableData ( )

Template for storing objects in a table.

Since PtrArray is used to store the data, this is best for objects.
To store structs, use JValueTableData or JPackedTableData instead.

◆ JObjTableData() [2/2]

template<class T >
JObjTableData< T >::JObjTableData ( const JObjTableData< T > &  source)

◆ ~JObjTableData()

template<class T >
JObjTableData< T >::~JObjTableData ( )
override

Member Function Documentation

◆ AppendCols()

template<class T >
void JObjTableData< T >::AppendCols ( const JSize  count,
const JPtrArray< T > *  initData = nullptr 
)

◆ AppendRows()

template<class T >
void JObjTableData< T >::AppendRows ( const JSize  count,
const JPtrArray< T > *  initData = nullptr 
)

◆ DuplicateCol()

template<class T >
void JObjTableData< T >::DuplicateCol ( const JIndex  origIndex,
const JIndex  newIndex 
)

◆ DuplicateRow()

template<class T >
void JObjTableData< T >::DuplicateRow ( const JIndex  origIndex,
const JIndex  newIndex 
)

◆ GetCol()

template<class T >
void JObjTableData< T >::GetCol ( const JIndex  index,
JPtrArray< T > *  colData 
) const

◆ GetItem() [1/2]

template<class T >
const T & JObjTableData< T >::GetItem ( const JIndex  row,
const JIndex  col 
) const

◆ GetItem() [2/2]

template<class T >
const T & JObjTableData< T >::GetItem ( const JPoint cell) const

◆ GetRow()

template<class T >
void JObjTableData< T >::GetRow ( const JIndex  index,
JPtrArray< T > *  rowData 
) const

◆ InsertCols()

template<class T >
void JObjTableData< T >::InsertCols ( const JIndex  index,
const JSize  count,
const JPtrArray< T > *  initData = nullptr 
)

◆ InsertRows()

template<class T >
void JObjTableData< T >::InsertRows ( const JIndex  index,
const JSize  count,
const JPtrArray< T > *  initData = nullptr 
)

◆ MoveCol()

template<class T >
void JObjTableData< T >::MoveCol ( const JIndex  origIndex,
const JIndex  newIndex 
)

◆ MoveRow()

template<class T >
void JObjTableData< T >::MoveRow ( const JIndex  origIndex,
const JIndex  newIndex 
)

◆ PrependCols()

template<class T >
void JObjTableData< T >::PrependCols ( const JSize  count,
const JPtrArray< T > *  initData = nullptr 
)

◆ PrependRows()

template<class T >
void JObjTableData< T >::PrependRows ( const JSize  count,
const JPtrArray< T > *  initData = nullptr 
)

◆ RemoveAllCols()

template<class T >
void JObjTableData< T >::RemoveAllCols ( )

◆ RemoveAllRows()

template<class T >
void JObjTableData< T >::RemoveAllRows ( )

◆ RemoveCol()

template<class T >
void JObjTableData< T >::RemoveCol ( const JIndex  index)

◆ RemoveNextCols()

template<class T >
void JObjTableData< T >::RemoveNextCols ( const JIndex  firstIndex,
const JSize  count 
)

◆ RemoveNextRows()

template<class T >
void JObjTableData< T >::RemoveNextRows ( const JIndex  firstIndex,
const JSize  count 
)

◆ RemovePrevCols()

template<class T >
void JObjTableData< T >::RemovePrevCols ( const JIndex  lastIndex,
const JSize  count 
)

◆ RemovePrevRows()

template<class T >
void JObjTableData< T >::RemovePrevRows ( const JIndex  lastIndex,
const JSize  count 
)

◆ RemoveRow()

template<class T >
void JObjTableData< T >::RemoveRow ( const JIndex  index)

◆ SetCol()

template<class T >
void JObjTableData< T >::SetCol ( const JIndex  index,
const JPtrArray< T > &  colData 
)

◆ SetItem() [1/2]

template<class T >
void JObjTableData< T >::SetItem ( const JIndex  row,
const JIndex  col,
const T &  data 
)

◆ SetItem() [2/2]

template<class T >
void JObjTableData< T >::SetItem ( const JPoint cell,
const T &  data 
)

◆ SetRow()

template<class T >
void JObjTableData< T >::SetRow ( const JIndex  index,
const JPtrArray< T > &  rowData 
)

The documentation for this class was generated from the following files: