Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
Model::NodeIdMap Class Reference

Public Member Functions

NodeIdType id (const Node *node)
 
NodeIdType idIfExists (Node *node)
 
const Nodenode (NodeIdType id)
 
void remove (const Node *node)
 
void setId (const Node *node, NodeIdType id)
 
int size () const
 

Static Public Member Functions

static NodeIdType generateNewId ()
 

Private Attributes

QHash< NodeIdType, const Node * > idToNode
 
QHash< const Node *, NodeIdTypenodeToId
 

Member Function Documentation

◆ generateNewId()

NodeIdType Model::NodeIdMap::generateNewId ( )
inlinestatic

◆ id()

NodeIdType Model::NodeIdMap::id ( const Node node)

◆ idIfExists()

NodeIdType Model::NodeIdMap::idIfExists ( Node node)
inline

◆ node()

const Node * Model::NodeIdMap::node ( NodeIdType  id)
inline

◆ remove()

void Model::NodeIdMap::remove ( const Node node)

◆ setId()

void Model::NodeIdMap::setId ( const Node node,
NodeIdType  id 
)

◆ size()

int Model::NodeIdMap::size ( ) const
inline

Member Data Documentation

◆ idToNode

QHash<NodeIdType, const Node*> Model::NodeIdMap::idToNode
private

◆ nodeToId

QHash<const Node*, NodeIdType> Model::NodeIdMap::nodeToId
private