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::NestedInfoCollection Class Reference

#include <nestedinfocollection.hpp>

Inheritance diagram for CSMWorld::NestedInfoCollection:
Collaboration diagram for CSMWorld::NestedInfoCollection:

Public Member Functions

 NestedInfoCollection ()
 
 ~NestedInfoCollection ()
 
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< Info > * > adapter)
 
- Public Member Functions inherited from CSMWorld::InfoCollection
virtual int getAppendIndex (const std::string &id, UniversalId::Type type=UniversalId::Type_None) const
 
virtual bool reorderRows (int baseIndex, const std::vector< int > &newOrder)
 
void load (ESM::ESMReader &reader, bool base, const ESM::Dialogue &dialogue)
 
Range getTopicRange (const std::string &topic) const
 
void removeDialogueInfos (const std::string &dialogueId)
 
- Public Member Functions inherited from CSMWorld::Collection< Info, IdAccessor< Info > >
 Collection ()
 
virtual ~Collection ()
 
void add (const Info &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< Info > & getRecord (const std::string &id) const
 
virtual const Record< Info > & getRecord (int index) 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)
 
void addColumn (Column< Info > *column)
 
void setRecord (int index, const Record< Info > &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< Info > & getAdapter (const ColumnBase &column) const
 

Private Attributes

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

Additional Inherited Members

- Public Types inherited from CSMWorld::InfoCollection
typedef std::vector< Record
< Info > >::const_iterator 
RecordConstIterator
 
typedef std::pair
< RecordConstIterator,
RecordConstIterator
Range
 
- Public Types inherited from CSMWorld::Collection< Info, IdAccessor< Info > >
typedef Info ESXRecord
 
- Protected Member Functions inherited from CSMWorld::Collection< Info, IdAccessor< Info > >
const std::map< std::string,
int > & 
getIdMap () const
 
const std::vector< Record
< Info > > & 
getRecords () const
 
bool reorderRowsImp (int baseIndex, const std::vector< int > &newOrder)
 

Constructor & Destructor Documentation

CSMWorld::NestedInfoCollection::NestedInfoCollection ( )
CSMWorld::NestedInfoCollection::~NestedInfoCollection ( )

Member Function Documentation

void CSMWorld::NestedInfoCollection::addAdapter ( std::pair< const ColumnBase *, NestedColumnAdapter< Info > * >  adapter)

Here is the caller graph for this function:

void CSMWorld::NestedInfoCollection::addNestedRow ( int  row,
int  column,
int  position 
)
virtual

Implements CSMWorld::NestedCollection.

Here is the call graph for this function:

const NestedColumnAdapter< Info > & CSMWorld::NestedInfoCollection::getAdapter ( const ColumnBase column) const
private

Here is the caller graph for this function:

CSMWorld::NestableColumn * CSMWorld::NestedInfoCollection::getNestableColumn ( int  column)
virtual

Implements CSMWorld::NestedCollection.

Here is the caller graph for this function:

int CSMWorld::NestedInfoCollection::getNestedColumnsCount ( int  row,
int  column 
) const
virtual

Reimplemented from CSMWorld::NestedCollection.

Here is the call graph for this function:

QVariant CSMWorld::NestedInfoCollection::getNestedData ( int  row,
int  column,
int  subRow,
int  subColumn 
) const
virtual

Implements CSMWorld::NestedCollection.

Here is the call graph for this function:

int CSMWorld::NestedInfoCollection::getNestedRowsCount ( int  row,
int  column 
) const
virtual

Reimplemented from CSMWorld::NestedCollection.

Here is the call graph for this function:

CSMWorld::NestedTableWrapperBase * CSMWorld::NestedInfoCollection::nestedTable ( int  row,
int  column 
) const
virtual

Implements CSMWorld::NestedCollection.

Here is the call graph for this function:

void CSMWorld::NestedInfoCollection::removeNestedRows ( int  row,
int  column,
int  subRow 
)
virtual

Implements CSMWorld::NestedCollection.

Here is the call graph for this function:

void CSMWorld::NestedInfoCollection::setNestedData ( int  row,
int  column,
const QVariant &  data,
int  subRow,
int  subColumn 
)
virtual

Implements CSMWorld::NestedCollection.

Here is the call graph for this function:

void CSMWorld::NestedInfoCollection::setNestedTable ( int  row,
int  column,
const NestedTableWrapperBase nestedTable 
)
virtual

Implements CSMWorld::NestedCollection.

Here is the call graph for this function:

Member Data Documentation

std::map<const ColumnBase*, NestedColumnAdapter<Info>* > CSMWorld::NestedInfoCollection::mAdapters
private

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