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

#include <JValueTableData.h>

Inheritance diagram for JValueTableData< S, T >:
[legend]

Public Member Functions

 JValueTableData (const T &defValue)
 
 JValueTableData (const JValueTableData< S, T > &source)
 
 ~JValueTableData () override
 
GetItem (const JIndex row, const JIndex col) const
 
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, JList< T > *rowData) const
 
void SetRow (const JIndex index, const JList< T > &rowData)
 
void GetCol (const JIndex index, JList< T > *colData) const
 
void SetCol (const JIndex index, const JList< T > &colData)
 
void InsertRows (const JIndex index, const JSize count, const JList< T > *initData=nullptr)
 
void PrependRows (const JSize count, const JList< T > *initData=nullptr)
 
void AppendRows (const JSize count, const JList< 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 JList< T > *initData=nullptr)
 
void PrependCols (const JSize count, const JList< T > *initData=nullptr)
 
void AppendCols (const JSize count, const JList< 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)
 
const T GetDefaultValue () const
 
void SetDefaultValue (const T &data)
 
- 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 S, class T>
class JValueTableData< S, T >

Interface for JValueTableData class

Constructor & Destructor Documentation

◆ JValueTableData() [1/2]

template<class S , class T >
JValueTableData< S, T >::JValueTableData ( const T &  defValue)

Template for storing values and structs in a table.

It is assumed that the class used to store each column of data
is a direct descendant of JList, so JPtrArray can't be used.
In this case, use JObjTableData instead.

◆ JValueTableData() [2/2]

template<class S , class T >
JValueTableData< S, T >::JValueTableData ( const JValueTableData< S, T > &  source)

◆ ~JValueTableData()

template<class S , class T >
JValueTableData< S, T >::~JValueTableData ( )
override

Member Function Documentation

◆ AppendCols()

template<class S , class T >
void JValueTableData< S, T >::AppendCols ( const JSize  count,
const JList< T > *  initData = nullptr 
)

◆ AppendRows()

template<class S , class T >
void JValueTableData< S, T >::AppendRows ( const JSize  count,
const JList< T > *  initData = nullptr 
)

◆ DuplicateCol()

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

◆ DuplicateRow()

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

◆ GetCol()

template<class S , class T >
void JValueTableData< S, T >::GetCol ( const JIndex  index,
JList< T > *  colData 
) const

operator= doesn't work because it could be -any- class derived from JList.

◆ GetDefaultValue()

template<class S , class T >
const T JValueTableData< S, T >::GetDefaultValue ( ) const

◆ GetItem() [1/2]

template<class S , class T >
T JValueTableData< S, T >::GetItem ( const JIndex  row,
const JIndex  col 
) const

◆ GetItem() [2/2]

template<class S , class T >
T JValueTableData< S, T >::GetItem ( const JPoint cell) const

◆ GetRow()

template<class S , class T >
void JValueTableData< S, T >::GetRow ( const JIndex  index,
JList< T > *  rowData 
) const

◆ InsertCols()

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

◆ InsertRows()

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

◆ MoveCol()

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

◆ MoveRow()

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

◆ PrependCols()

template<class S , class T >
void JValueTableData< S, T >::PrependCols ( const JSize  count,
const JList< T > *  initData = nullptr 
)

◆ PrependRows()

template<class S , class T >
void JValueTableData< S, T >::PrependRows ( const JSize  count,
const JList< T > *  initData = nullptr 
)

◆ RemoveAllCols()

template<class S , class T >
void JValueTableData< S, T >::RemoveAllCols ( )

◆ RemoveAllRows()

template<class S , class T >
void JValueTableData< S, T >::RemoveAllRows ( )

◆ RemoveCol()

template<class S , class T >
void JValueTableData< S, T >::RemoveCol ( const JIndex  index)

◆ RemoveNextCols()

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

◆ RemoveNextRows()

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

◆ RemovePrevCols()

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

◆ RemovePrevRows()

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

◆ RemoveRow()

template<class S , class T >
void JValueTableData< S, T >::RemoveRow ( const JIndex  index)

◆ SetCol()

template<class S , class T >
void JValueTableData< S, T >::SetCol ( const JIndex  index,
const JList< T > &  colData 
)

operator= doesn't work because it could be -any- class derived from JList.

◆ SetDefaultValue()

template<class S , class T >
void JValueTableData< S, T >::SetDefaultValue ( const T &  data)

◆ SetItem() [1/2]

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

◆ SetItem() [2/2]

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

◆ SetRow()

template<class S , class T >
void JValueTableData< S, T >::SetRow ( const JIndex  index,
const JList< T > &  rowData 
)

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