feat: signle displayFlag
This commit is contained in:
@@ -38,6 +38,15 @@ bool enzo::nt::NetworkManager::isValidOp(nt::OpId opId)
|
||||
return true;
|
||||
}
|
||||
|
||||
void enzo::nt::NetworkManager::setDisplayOp(OpId opId)
|
||||
{
|
||||
displayOp_=opId;
|
||||
}
|
||||
|
||||
std::optional<enzo::nt::OpId> enzo::nt::NetworkManager::getDisplayOp()
|
||||
{
|
||||
return displayOp_;
|
||||
}
|
||||
|
||||
enzo::nt::NetworkManager* enzo::nt::NetworkManager::instancePtr_ = nullptr;
|
||||
|
||||
|
||||
@@ -9,6 +9,8 @@ class NetworkManager
|
||||
{
|
||||
public:
|
||||
OpId addOperator();
|
||||
void setDisplayOp(OpId opId);
|
||||
std::optional<OpId> getDisplayOp();
|
||||
// delete copy constructor
|
||||
NetworkManager(const NetworkManager& obj) = delete;
|
||||
|
||||
@@ -22,7 +24,11 @@ private:
|
||||
NetworkManager() {};
|
||||
|
||||
std::unordered_map<enzo::nt::OpId, std::unique_ptr<enzo::nt::GeometryOperator>> gopStore_;
|
||||
|
||||
// the highest operator id currently stored
|
||||
enzo::nt::OpId maxOpId_=0;
|
||||
|
||||
std::optional<OpId> displayOp_=std::nullopt;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user