-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic Gravel Functionality Defined but not extensively tested
- Loading branch information
1 parent
df25033
commit 6afc470
Showing
37 changed files
with
2,395 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#include <gravel/private/Actor.h> | ||
|
||
void Gravel::GraphNode::connect(boost::weak_ptr<Gravel::GraphNode> na, boost::weak_ptr<Gravel::GraphNode> nb) { | ||
|
||
} | ||
|
||
Gravel::GraphNode::GraphNode() { | ||
|
||
} | ||
|
||
Gravel::GraphNode::~GraphNode() { | ||
|
||
} | ||
|
||
Gravel::GraphNode::BackMap Gravel::GraphNode::back; | ||
Gravel::GraphNode::ParentMap Gravel::GraphNode::parent; | ||
|
||
boost::weak_ptr<Gravel::GraphNode> Gravel::Actor::getOutput() const { | ||
|
||
Gravel::GraphNode::NodeMap::const_iterator nit = nodes.find(Gravel::Output); | ||
if (nit == nodes.end()) { | ||
assert(false); | ||
} else { | ||
return boost::weak_ptr<Gravel::GraphNode>(nit->second); | ||
} | ||
|
||
|
||
} | ||
|
||
Gravel::GraphNode::BackMapRange Gravel::GraphNode::getConnections(NodePtr np) { | ||
return Gravel::GraphNode::back.equal_range(np); | ||
} | ||
|
||
Gravel::GraphNode::ConstNodeRange Gravel::Actor::getInputs() const { | ||
|
||
return nodes.equal_range(Gravel::Input); | ||
|
||
|
||
} | ||
|
||
void Gravel::Actor::setWidth(Gravel::GraphNode::NodePtr node, unsigned width) { | ||
|
||
} | ||
|
||
Gravel::Pointer::Actor Gravel::GraphNode::getParent(Gravel::GraphNode::NodePtr np) { | ||
|
||
std::map<Gravel::GraphNode::NodePtr, Gravel::Pointer::Actor>::iterator nit = parent.find(np); | ||
|
||
if(nit == parent.end()) { | ||
// throw exception | ||
} else { | ||
return nit->second; | ||
} | ||
|
||
|
||
|
||
}; | ||
|
||
void Gravel::GraphNode::setParents(Gravel::Pointer::Actor ptr) { | ||
|
||
Gravel::GraphNode::ConstNodeRange inputs = ptr->getInputs(); | ||
Gravel::GraphNode::NodePtr output = ptr->getOutput(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.