Back to index

salome-smesh  6.5.0
Public Types | Public Member Functions | Private Attributes
LayerDistributionStates Class Reference

#include <SMESH_NoteBook.hxx>

Inheritance diagram for LayerDistributionStates:
Inheritance graph
[legend]
Collaboration diagram for LayerDistributionStates:
Collaboration graph
[legend]

List of all members.

Public Types

typedef std::map
< TCollection_AsciiString,
TCollection_AsciiString > 
TDistributionMap

Public Member Functions

 LayerDistributionStates ()
 Constructor.
virtual ~LayerDistributionStates ()
 Destructor.
void AddDistribution (const TCollection_AsciiString &theDistribution)
 AddDistribution.
bool HasDistribution (const TCollection_AsciiString &theDistribution) const
 HasDistribution.
bool SetDistributionType (const TCollection_AsciiString &theDistribution, const TCollection_AsciiString &theType)
 SetDistributionType.
TCollection_AsciiString GetDistributionType (const TCollection_AsciiString &theDistribution) const
 GetDistributionType.
void AddState (const TState &theState)
 Add new object state.
TState GetCurrectState () const
 Return current object state \retval state - Object state (vector of notebook variable)
TAllStates GetAllStates () const
void IncrementState ()
TCollection_AsciiString GetObjectType () const

Private Attributes

TDistributionMap _distributions

Detailed Description

Definition at line 64 of file SMESH_NoteBook.hxx.


Member Typedef Documentation

typedef std::map<TCollection_AsciiString,TCollection_AsciiString> LayerDistributionStates::TDistributionMap

Definition at line 67 of file SMESH_NoteBook.hxx.


Constructor & Destructor Documentation

Constructor.

Definition at line 142 of file SMESH_NoteBook.cxx.

                                                :
  SMESH_ObjectStates("LayerDistribution")
{
}

Destructor.

Definition at line 151 of file SMESH_NoteBook.cxx.

{
}

Member Function Documentation

void LayerDistributionStates::AddDistribution ( const TCollection_AsciiString &  theDistribution)

AddDistribution.

Definition at line 161 of file SMESH_NoteBook.cxx.

{
  _distributions.insert(pair<TCollection_AsciiString,TCollection_AsciiString>(theDistribution,""));
}

Here is the caller graph for this function:

void SMESH_ObjectStates::AddState ( const TState theState) [inherited]

Add new object state.

Parameters:
theState- Object state (vector of notebook variable)

Definition at line 87 of file SMESH_NoteBook.cxx.

{
  _states.push_back(theState);
}

Here is the caller graph for this function:

Definition at line 112 of file SMESH_NoteBook.cxx.

{
  return _states;
}

Here is the caller graph for this function:

Return current object state \retval state - Object state (vector of notebook variable)

Definition at line 98 of file SMESH_NoteBook.cxx.

{
  if(_states.size() > _dumpstate)
    return _states[_dumpstate];
  TState empty;
  return empty;
}

Here is the caller graph for this function:

TCollection_AsciiString LayerDistributionStates::GetDistributionType ( const TCollection_AsciiString &  theDistribution) const

GetDistributionType.

Definition at line 197 of file SMESH_NoteBook.cxx.

{
  TDistributionMap::const_iterator it = _distributions.find(theDistribution);
  return (it == _distributions.end()) ? TCollection_AsciiString() : (*it).second;
}
TCollection_AsciiString SMESH_ObjectStates::GetObjectType ( ) const [inherited]

Definition at line 132 of file SMESH_NoteBook.cxx.

                                                               {
  return _type;
}

Here is the caller graph for this function:

bool LayerDistributionStates::HasDistribution ( const TCollection_AsciiString &  theDistribution) const

HasDistribution.

Definition at line 171 of file SMESH_NoteBook.cxx.

{
  return _distributions.find(theDistribution) != _distributions.end();
}
void SMESH_ObjectStates::IncrementState ( ) [inherited]

Definition at line 122 of file SMESH_NoteBook.cxx.

{
  _dumpstate++;
}

Here is the caller graph for this function:

bool LayerDistributionStates::SetDistributionType ( const TCollection_AsciiString &  theDistribution,
const TCollection_AsciiString &  theType 
)

SetDistributionType.

Definition at line 181 of file SMESH_NoteBook.cxx.

{
  TDistributionMap::iterator it = _distributions.find(theDistribution);
  if(it == _distributions.end())
    return false;
  (*it).second = theType;
  return true;
}

Member Data Documentation

Definition at line 80 of file SMESH_NoteBook.hxx.


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