| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- // Filename: nodeAttributes.I
- // Created by: drose (21Mar00)
- //
- ////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////
- // Function: NodeAttributes::size
- // Access: Public
- // Description:
- ////////////////////////////////////////////////////////////////////
- INLINE_GRAPH NodeAttributes::size_type NodeAttributes::
- size() const {
- return _attributes.size();
- }
- ////////////////////////////////////////////////////////////////////
- // Function: NodeAttributes::begin
- // Access: Public
- // Description:
- ////////////////////////////////////////////////////////////////////
- INLINE_GRAPH NodeAttributes::iterator NodeAttributes::
- begin() {
- return _attributes.begin();
- }
- ////////////////////////////////////////////////////////////////////
- // Function: NodeAttributes::end
- // Access: Public
- // Description:
- ////////////////////////////////////////////////////////////////////
- INLINE_GRAPH NodeAttributes::iterator NodeAttributes::
- end() {
- return _attributes.end();
- }
- ////////////////////////////////////////////////////////////////////
- // Function: NodeAttributes::begin
- // Access: Public
- // Description:
- ////////////////////////////////////////////////////////////////////
- INLINE_GRAPH NodeAttributes::const_iterator NodeAttributes::
- begin() const {
- return _attributes.begin();
- }
- ////////////////////////////////////////////////////////////////////
- // Function: NodeAttributes::end
- // Access: Public
- // Description:
- ////////////////////////////////////////////////////////////////////
- INLINE_GRAPH NodeAttributes::const_iterator NodeAttributes::
- end() const {
- return _attributes.end();
- }
- ////////////////////////////////////////////////////////////////////
- // Function: NodeAttributes::insert
- // Access: Public
- // Description:
- ////////////////////////////////////////////////////////////////////
- INLINE_GRAPH NodeAttributes::iterator NodeAttributes::
- insert(NodeAttributes::iterator position,
- const NodeAttributes::value_type &x) {
- return _attributes.insert(position, x);
- }
- ////////////////////////////////////////////////////////////////////
- // Function: NodeAttributes::erase
- // Access: Public
- // Description:
- ////////////////////////////////////////////////////////////////////
- INLINE_GRAPH void NodeAttributes::
- erase(NodeAttributes::iterator position) {
- _attributes.erase(position);
- }
- ////////////////////////////////////////////////////////////////////
- // Function: NodeAttributes::apply_in_place
- // Access: Public
- // Description: Modifies the current NodeAttributes object to reflect
- // the application of the indicated transitions.
- ////////////////////////////////////////////////////////////////////
- INLINE_GRAPH void NodeAttributes::
- apply_in_place(const NodeTransitionCache &trans) {
- apply_from(*this, trans);
- }
- ////////////////////////////////////////////////////////////////////
- // Function: NodeAttributes::apply
- // Access: Public
- // Description: Allocates and returns a new NodeAttributes object
- // that represents the application of this
- // NodeAttributes to the indicated transition cache.
- // This NodeAttributes object is not changed.
- ////////////////////////////////////////////////////////////////////
- INLINE_GRAPH NodeAttributes *NodeAttributes::
- apply(const NodeTransitionCache &trans) const {
- NodeAttributes *na = new NodeAttributes;
- na->apply_from(*this, trans);
- return na;
- }
- INLINE_GRAPH ostream &operator << (ostream &out, const NodeAttributes &nas) {
- nas.output(out);
- return out;
- }
|