Main Page | Class List | File List | Class Members

Tstdb::TAction Class Reference

Class TAction to contain an action to be done. More...

Collaboration diagram for Tstdb::TAction:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAction ()
 TAction (TFunction f, string k, string d)
 TAction (const TAction &arg)
 ~TAction ()
void operator= (const TAction &copy)
bool operator== (const TAction &arg) const
bool operator< (const TAction &arg) const
TFunction GetFunction ()
string & GetKey ()
string & GetData ()

Private Attributes

TFunction Function
string Key
string Data

Detailed Description

TAction class is designed to contain actions to be stored into the RollBack stack or into the RedoLog queue.

Definition at line 174 of file stdb.h.


Constructor & Destructor Documentation

Tstdb::TAction::TAction  )  [inline]
 

Default constructor for TAction.

Definition at line 189 of file stdb.h.

References Data, Function, and Key.

00189 : Function(UPDATE), Key(""), Data("") { }

Tstdb::TAction::TAction TFunction  f,
string  k,
string  d
[inline]
 

Parametrized constructor for TAction.

Definition at line 192 of file stdb.h.

References Data, Function, and Key.

00192                                                 : Function(f), Key(k), Data(d) 
00193         { }

Tstdb::TAction::TAction const TAction arg  )  [inline]
 

Copy constructor for TAction.

Definition at line 196 of file stdb.h.

References Data, Function, and Key.

00196                                    {
00197             Function=arg.Function;
00198             Key=arg.Key;
00199             Data=arg.Data;
00200         }

Tstdb::TAction::~TAction  )  [inline]
 

Destructor for TAction.

Definition at line 203 of file stdb.h.

00203 { }


Member Function Documentation

string& Tstdb::TAction::GetData  )  [inline]
 

GetData returns actual TAction Data.

Definition at line 234 of file stdb.h.

References Data.

Referenced by Tstdb::Initialize(), Tstdb::ParserLineOut(), and Tstdb::Rollback().

00234 { return Data;}

TFunction Tstdb::TAction::GetFunction  )  [inline]
 

Getfunction returns actual TAction Function.

Definition at line 228 of file stdb.h.

References Function.

Referenced by Tstdb::Commit(), Tstdb::Initialize(), and Tstdb::Rollback().

00228 { return Function;}

string& Tstdb::TAction::GetKey  )  [inline]
 

GetKey returns actual TAction Key.

Definition at line 231 of file stdb.h.

References Key.

Referenced by Tstdb::Initialize(), Tstdb::ParserLineDeleteOut(), Tstdb::ParserLineOut(), and Tstdb::Rollback().

00231 { return Key;}

bool Tstdb::TAction::operator< const TAction arg  )  const [inline]
 

Less than... operator.

Definition at line 221 of file stdb.h.

References Data, Function, and Key.

00221                                                  {
00222             return (Function < arg.Function) && 
00223                         (Key < arg.Key) && 
00224                         (Data < arg.Data);
00225         }

void Tstdb::TAction::operator= const TAction copy  )  [inline]
 

Assignment operator.

Definition at line 206 of file stdb.h.

References Data, Function, and Key.

00206                                            {
00207             if (this == &copy) return;
00208             Function=copy.Function;
00209             Key=copy.Key;
00210             Data=copy.Data;
00211         }

bool Tstdb::TAction::operator== const TAction arg  )  const [inline]
 

Equality operator.

Definition at line 214 of file stdb.h.

References Data, Function, and Key.

00214                                                   {
00215             return (Function == arg.Function) && 
00216                         (Key == arg.Key) && 
00217                         (Data == arg.Data);
00218         }


Member Data Documentation

string Tstdb::TAction::Data [private]
 

Data to apply the action.

Definition at line 184 of file stdb.h.

Referenced by GetData(), operator<(), operator=(), operator==(), and TAction().

TFunction Tstdb::TAction::Function [private]
 

The type of action it stores.

Definition at line 178 of file stdb.h.

Referenced by GetFunction(), operator<(), operator=(), operator==(), and TAction().

string Tstdb::TAction::Key [private]
 

The key to apply the action.

Definition at line 181 of file stdb.h.

Referenced by GetKey(), operator<(), operator=(), operator==(), and TAction().


Generated on Thu May 12 17:58:12 2005 for SimpleTransactionalDatabase by  doxygen 1.4.0