Envision
A visual programming IDE for object-oriented languages
|
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< TextToNodeMap > | map (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_ |
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.
std::shared_ptr< TextToNodeMap > Export::ExportMapContainer::map | ( | Model::Node * | node | ) | const |
void Export::ExportMapContainer::remove | ( | Model::Node * | node | ) |
int Export::ExportMapContainer::storedRevision | ( | Model::Node * | node | ) | const |
Returns the stored revision for node, if none is stored -1 is returned.
|
private |