Files
geant4/source/global/management/src/G4VStateDependent.cc
T
2016-06-09 14:36:02 +02:00

71 lines
2.6 KiB
C++

//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. *
// * *
// * This code implementation is the intellectual property of the *
// * GEANT4 collaboration. *
// * By copying, distributing or modifying the Program (or any work *
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
//
// $Id: G4VStateDependent.cc,v 1.4 2005/03/15 19:11:36 gcosmo Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ------------------------------------------------------------
// GEANT 4 class implementation file
//
// ---------------- G4VStateDependent ----------------
// by Gabriele Cosmo, November 1996
// ------------------------------------------------------------
#include "G4VStateDependent.hh"
#include "G4StateManager.hh"
G4VStateDependent::G4VStateDependent(G4bool bottom)
{
G4StateManager * stateManager = G4StateManager::GetStateManager();
stateManager->RegisterDependent(this,bottom);
}
G4VStateDependent::~G4VStateDependent()
{
G4StateManager * stateManager = G4StateManager::GetStateManager();
stateManager->DeregisterDependent(this);
}
G4VStateDependent::G4VStateDependent(const G4VStateDependent &right)
{
*this = right;
}
G4VStateDependent& G4VStateDependent::operator=(const G4VStateDependent &right)
{
if (&right == this) { return *this; }
*this = right;
return *this;
}
G4int G4VStateDependent::operator==(const G4VStateDependent &right) const
{
return (this == &right);
}
G4int G4VStateDependent::operator!=(const G4VStateDependent &right) const
{
return (this != &right);
}