TBTK
Public Member Functions | List of all members
TBTK::StateSet Class Reference
Inheritance diagram for TBTK::StateSet:
TBTK::UnitCell

Public Member Functions

 StateSet (bool isOwner=true)
 
 ~StateSet ()
 
void addState (AbstractState *state)
 
const std::vector< AbstractState * > & getStates () const
 

Constructor & Destructor Documentation

TBTK::StateSet::StateSet ( bool  isOwner = true)

Constructor.

Parameters
isOwnerFlag indicating whether the StateSet is considered to be an owner of the states or not. If it is an owner, states added to it will be delete when the StateSet is destructed.
TBTK::StateSet::~StateSet ( )

Destructor.

Member Function Documentation

void TBTK::StateSet::addState ( AbstractState state)
inline

Add state. Note: The StateSet assumes ownership of the pointers and will delete them when it is destroyed.

const std::vector< AbstractState * > & TBTK::StateSet::getStates ( ) const
inline

Get states.


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