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

Public Member Functions

bool insert (Model::Node *node, std::shared_ptr< TextToNodeMap > map)
 Replaces the map for the node, if node has a newer revision, and returns true on success. More...
 
std::shared_ptr< TextToNodeMapmap (Model::Node *node) const
 
void remove (Model::Node *node)
 
int storedRevision (Model::Node *node) const
 Returns the stored revision for node, if none is stored -1 is returned. More...
 

Private Attributes

QHash< Model::Node *, QPair< int, std::shared_ptr< TextToNodeMap > > > map_
 

Member Function Documentation

◆ insert()

bool Export::ExportMapContainer::insert ( Model::Node node,
std::shared_ptr< TextToNodeMap map 
)

Replaces the map for the node, if node has a newer revision, and returns true on success.

If there is already a newer revision stored the map will not be inserted and false is returned.

◆ map()

std::shared_ptr< TextToNodeMap > Export::ExportMapContainer::map ( Model::Node node) const

◆ remove()

void Export::ExportMapContainer::remove ( Model::Node node)

◆ storedRevision()

int Export::ExportMapContainer::storedRevision ( Model::Node node) const

Returns the stored revision for node, if none is stored -1 is returned.

Member Data Documentation

◆ map_

QHash<Model::Node*, QPair<int, std::shared_ptr<TextToNodeMap> > > Export::ExportMapContainer::map_
private