OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CSMWorld::NestedIdCollection< ESXRecordT, IdAccessorT > Class Template Reference

#include <nestedidcollection.hpp>

Inheritance diagram for CSMWorld::NestedIdCollection< ESXRecordT, IdAccessorT >:
Collaboration diagram for CSMWorld::NestedIdCollection< ESXRecordT, IdAccessorT >:

Public Member Functions

 NestedIdCollection ()
 
 ~NestedIdCollection ()
 
virtual void addNestedRow (int row, int column, int position)
 
virtual void removeNestedRows (int row, int column, int subRow)
 
virtual QVariant getNestedData (int row, int column, int subRow, int subColumn) const
 
virtual void setNestedData (int row, int column, const QVariant &data, int subRow, int subColumn)
 
virtual NestedTableWrapperBasenestedTable (int row, int column) const
 
virtual void setNestedTable (int row, int column, const NestedTableWrapperBase &nestedTable)
 
virtual int getNestedRowsCount (int row, int column) const
 
virtual int getNestedColumnsCount (int row, int column) const
 
virtual NestableColumngetNestableColumn (int column)
 
void addAdapter (std::pair< const ColumnBase *, NestedColumnAdapter< ESXRecordT > * > adapter)
 
- Public Member Functions inherited from CSMWorld::IdCollection< ESXRecordT, IdAccessorT >
int load (ESM::ESMReader &reader, bool base)
 
int load (const ESXRecordT &record, bool base, int index=-2)
 
bool tryDelete (const std::string &id)
 
- Public Member Functions inherited from CSMWorld::Collection< ESXRecordT, IdAccessorT >
 Collection ()
 
virtual ~Collection ()
 
void add (const ESXRecordT &record)
 Add a new record (modified) More...
 
virtual int getSize () const
 
virtual std::string getId (int index) const
 
virtual int getIndex (const std::string &id) const
 
virtual int getColumns () const
 
virtual QVariant getData (int index, int column) const
 
virtual void setData (int index, int column, const QVariant &data)
 
virtual const ColumnBasegetColumn (int column) const
 
virtual void merge ()
 Merge modified into base. More...
 
virtual void purge ()
 Remove records that are flagged as erased. More...
 
virtual void removeRows (int index, int count)
 < Merge modified into base. More...
 
virtual void appendBlankRecord (const std::string &id, UniversalId::Type type=UniversalId::Type_None)
 
virtual void cloneRecord (const std::string &origin, const std::string &destination, const UniversalId::Type type)
 
virtual int searchId (const std::string &id) const
 
virtual void replace (int index, const RecordBase &record)
 
virtual void appendRecord (const RecordBase &record, UniversalId::Type type=UniversalId::Type_None)
 
virtual const Record
< ESXRecordT > & 
getRecord (const std::string &id) const
 
virtual const Record
< ESXRecordT > & 
getRecord (int index) const
 
virtual int getAppendIndex (const std::string &id, UniversalId::Type type=UniversalId::Type_None) const
 
virtual std::vector< std::string > getIds (bool listDeleted=true) const
 
virtual void insertRecord (const RecordBase &record, int index, UniversalId::Type type=UniversalId::Type_None)
 
virtual bool reorderRows (int baseIndex, const std::vector< int > &newOrder)
 
void addColumn (Column< ESXRecordT > *column)
 
void setRecord (int index, const Record< ESXRecordT > &record)
 
NestableColumngetNestableColumn (int column) const
 
- Public Member Functions inherited from CSMWorld::CollectionBase
 CollectionBase ()
 
virtual ~CollectionBase ()
 
int searchColumnIndex (Columns::ColumnId id) const
 Return index of column with the given id. If no such column exists, -1 is returned. More...
 
int findColumnIndex (Columns::ColumnId id) const
 
- Public Member Functions inherited from CSMWorld::NestedCollection
 NestedCollection ()
 
virtual ~NestedCollection ()
 
virtual int searchNestedColumnIndex (int parentColumn, Columns::ColumnId id)
 
virtual int findNestedColumnIndex (int parentColumn, Columns::ColumnId id)
 

Private Member Functions

const NestedColumnAdapter
< ESXRecordT > & 
getAdapter (const ColumnBase &column) const
 

Private Attributes

std::map< const ColumnBase
*, NestedColumnAdapter
< ESXRecordT > * > 
mAdapters
 

Additional Inherited Members

- Public Types inherited from CSMWorld::Collection< ESXRecordT, IdAccessorT >
typedef ESXRecordT ESXRecord
 
- Protected Member Functions inherited from CSMWorld::Collection< ESXRecordT, IdAccessorT >
const std::map< std::string,
int > & 
getIdMap () const
 
const std::vector< Record
< ESXRecordT > > & 
getRecords () const
 
bool reorderRowsImp (int baseIndex, const std::vector< int > &newOrder)
 

Constructor & Destructor Documentation

template<typename ESXRecordT , typename IdAccessorT >
CSMWorld::NestedIdCollection< ESXRecordT, IdAccessorT >::NestedIdCollection ( )
template<typename ESXRecordT , typename IdAccessorT >
CSMWorld::NestedIdCollection< ESXRecordT, IdAccessorT >::~NestedIdCollection ( )

Member Function Documentation

template<typename ESXRecordT, typename IdAccessorT >
void CSMWorld::NestedIdCollection< ESXRecordT, IdAccessorT >::addAdapter ( std::pair< const ColumnBase *, NestedColumnAdapter< ESXRecordT > * >  adapter)

Here is the caller graph for this function:

template<typename ESXRecordT , typename IdAccessorT >
void CSMWorld::NestedIdCollection< ESXRecordT, IdAccessorT >::addNestedRow ( int  row,
int  column,
int  position 
)
virtual

Implements CSMWorld::NestedCollection.

Here is the call graph for this function:

template<typename ESXRecordT , typename IdAccessorT >
const NestedColumnAdapter< ESXRecordT > & CSMWorld::NestedIdCollection< ESXRecordT, IdAccessorT >::getAdapter ( const ColumnBase column) const
private
template<typename ESXRecordT , typename IdAccessorT >
CSMWorld::NestableColumn * CSMWorld::NestedIdCollection< ESXRecordT, IdAccessorT >::getNestableColumn ( int  column)
virtual

Implements CSMWorld::NestedCollection.

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename ESXRecordT , typename IdAccessorT >
int CSMWorld::NestedIdCollection< ESXRecordT, IdAccessorT >::getNestedColumnsCount ( int  row,
int  column 
) const
virtual

Reimplemented from CSMWorld::NestedCollection.

Here is the call graph for this function:

template<typename ESXRecordT , typename IdAccessorT >
QVariant CSMWorld::NestedIdCollection< ESXRecordT, IdAccessorT >::getNestedData ( int  row,
int  column,
int  subRow,
int  subColumn 
) const
virtual
template<typename ESXRecordT , typename IdAccessorT >
int CSMWorld::NestedIdCollection< ESXRecordT, IdAccessorT >::getNestedRowsCount ( int  row,
int  column 
) const
virtual

Reimplemented from CSMWorld::NestedCollection.

template<typename ESXRecordT , typename IdAccessorT >
CSMWorld::NestedTableWrapperBase * CSMWorld::NestedIdCollection< ESXRecordT, IdAccessorT >::nestedTable ( int  row,
int  column 
) const
virtual
template<typename ESXRecordT , typename IdAccessorT >
void CSMWorld::NestedIdCollection< ESXRecordT, IdAccessorT >::removeNestedRows ( int  row,
int  column,
int  subRow 
)
virtual

Implements CSMWorld::NestedCollection.

Here is the call graph for this function:

template<typename ESXRecordT , typename IdAccessorT >
void CSMWorld::NestedIdCollection< ESXRecordT, IdAccessorT >::setNestedData ( int  row,
int  column,
const QVariant &  data,
int  subRow,
int  subColumn 
)
virtual

Implements CSMWorld::NestedCollection.

Here is the call graph for this function:

template<typename ESXRecordT , typename IdAccessorT >
void CSMWorld::NestedIdCollection< ESXRecordT, IdAccessorT >::setNestedTable ( int  row,
int  column,
const NestedTableWrapperBase nestedTable 
)
virtual

Implements CSMWorld::NestedCollection.

Here is the call graph for this function:

Member Data Documentation

template<typename ESXRecordT, typename IdAccessorT = IdAccessor<ESXRecordT>>
std::map<const ColumnBase*, NestedColumnAdapter<ESXRecordT>* > CSMWorld::NestedIdCollection< ESXRecordT, IdAccessorT >::mAdapters
private

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