xoreos  0.0.5
Public Member Functions | Protected Attributes | List of all members
Common::ChangeID Class Reference

A class representing an undoable change. More...

#include <changeid.h>

Collaboration diagram for Common::ChangeID:
Collaboration graph
[legend]

Public Member Functions

 ChangeID ()
 
 ChangeID (const ChangeID &change)
 
 ~ChangeID ()
 
ChangeIDoperator= (const ChangeID &change)
 
bool empty () const
 
void clear ()
 
ChangeContentgetContent () const
 
void setContent (ChangeContent *content)
 

Protected Attributes

ScopedPtr< ChangeContent_content
 

Detailed Description

A class representing an undoable change.

Definition at line 35 of file changeid.h.

Constructor & Destructor Documentation

◆ ChangeID() [1/2]

Common::ChangeID::ChangeID ( )

Definition at line 29 of file changeid.cpp.

◆ ChangeID() [2/2]

Common::ChangeID::ChangeID ( const ChangeID change)

Definition at line 32 of file changeid.cpp.

◆ ~ChangeID()

Common::ChangeID::~ChangeID ( )

Definition at line 36 of file changeid.cpp.

Member Function Documentation

◆ clear()

void Common::ChangeID::clear ( )

Definition at line 52 of file changeid.cpp.

References _content.

Referenced by Aurora::TalkManager::removeTable(), and Aurora::ResourceManager::undo().

Here is the caller graph for this function:

◆ empty()

bool Common::ChangeID::empty ( ) const

Definition at line 48 of file changeid.cpp.

References _content.

◆ getContent()

ChangeContent * Common::ChangeID::getContent ( ) const

Definition at line 56 of file changeid.cpp.

References _content.

Referenced by Aurora::ResourceManager::newChangeSet(), Aurora::TalkManager::removeTable(), and Aurora::ResourceManager::undo().

Here is the caller graph for this function:

◆ operator=()

ChangeID & Common::ChangeID::operator= ( const ChangeID change)

Definition at line 39 of file changeid.cpp.

References _content.

◆ setContent()

void Common::ChangeID::setContent ( ChangeContent content)

Definition at line 60 of file changeid.cpp.

References _content.

Referenced by Aurora::TalkManager::addTable(), and Aurora::ResourceManager::newChangeSet().

Here is the caller graph for this function:

Member Data Documentation

◆ _content

ScopedPtr<ChangeContent> Common::ChangeID::_content
protected

Definition at line 51 of file changeid.h.

Referenced by clear(), empty(), getContent(), operator=(), and setContent().


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